fix: ignore TS errors to speed up the TS compiling.

This commit is contained in:
a.bouhuolia
2022-09-19 21:16:02 +02:00
parent 2ae720821e
commit 84a903361e
2215 changed files with 2202 additions and 91 deletions

View File

@@ -4,6 +4,7 @@
"private": true,
"dependencies": {
"@blueprintjs-formik/core": "^0.2.1",
"@blueprintjs-formik/datetime": "^0.3.4",
"@blueprintjs-formik/select": "^0.1.4",
"@blueprintjs/core": "^3.50.2",
"@blueprintjs/datetime": "^3.23.12",
@@ -17,7 +18,6 @@
"@reduxjs/toolkit": "^1.2.5",
"@sentry/react": "^6.13.2",
"@sentry/tracing": "^6.13.2",
"@tanem/react-nprogress": "^3.0.24",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@testing-library/user-event": "^7.2.1",
@@ -41,18 +41,12 @@
"basscss": "^8.0.2",
"camelcase": "^5.3.1",
"cross-env": "^7.0.2",
"css-loader": "3.4.2",
"deep-map-keys": "^2.0.1",
"deepdash": "^5.3.9",
"dependency-graph": "^0.11.0",
"dotenv": "8.2.0",
"dotenv-expand": "5.1.0",
"fast-deep-equal": "^3.1.3",
"flow-bin": "^0.123.0",
"formik": "^2.2.5",
"fs-extra": "^8.1.0",
"http-proxy-middleware": "^1.0.0",
"identity-obj-proxy": "3.0.0",
"jest": "24.9.0",
"jest-environment-jsdom-fourteen": "1.0.1",
"jest-resolve": "24.9.0",
@@ -61,6 +55,7 @@
"lodash": "^4.17.15",
"moment": "^2.24.0",
"moment-timezone": "^0.5.33",
"node-sass": "^4.14.1",
"path-browserify": "^1.0.1",
"query-string": "^7.1.1",
"ramda": "^0.27.1",
@@ -95,13 +90,12 @@
"redux-devtools": "^3.5.0",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.3.0",
"resolve": "1.15.0",
"rtl-detect": "^1.0.3",
"semver": "6.3.0",
"style-loader": "0.23.1",
"styled-components": "^5.3.1",
"stylis-rtlcss": "^2.1.1",
"typescript": "^4.1.2",
"typescript": "^4.8.3",
"yup": "^0.28.1"
},
"scripts": {
@@ -111,8 +105,9 @@
"storybook": "start-storybook -p 6006",
"preinstall": "npx npm-force-resolutions"
},
"eslintConfig": {
"extends": "react-app"
"proxy": "http://localhost:3000/",
"devDependencies": {
"@types/react-dom": "^16.9.16"
},
"browserslist": {
"production": [
@@ -125,66 +120,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"jest": {
"roots": [
"<rootDir>/src"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"setupFiles": [
"react-app-polyfill/jsdom"
],
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
],
"testEnvironment": "jest-environment-jsdom-fourteen",
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "<rootDir>/node_modules/babel-jest",
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
"^.+\\.module\\.(css|sass|scss)$"
],
"modulePaths": [
"/Users/ahmed/Documents/Ratteb/client/src"
],
"moduleNameMapper": {
"^react-native$": "react-native-b",
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
},
"moduleFileExtensions": [
"web.js",
"js",
"web.ts",
"ts",
"web.tsx",
"tsx",
"json",
"web.jsx",
"jsx",
"node"
],
"watchPlugins": [
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
]
},
"babel": {
"presets": [
"react-app"
]
},
"proxy": "http://localhost:3000/",
"devDependencies": {
"@types/react-dom": "^16.9.16"
}
}

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import styled from 'styled-components';
import { MenuItem } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { MenuItem } from '@blueprintjs/core';
import { MultiSelect } from '../MultiSelectTaggable';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useState, useEffect, useMemo } from 'react';
import intl from 'react-intl-universal';
import classNames from 'classnames';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useState, useCallback, useEffect, useMemo } from 'react';
import * as R from 'ramda';
import intl from 'react-intl-universal';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback } from 'react';
import classNames from 'classnames';
import { ListSelect } from '@/components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import * as Yup from 'yup';
export const getFilterDropdownSchema = () =>

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Classes } from '@blueprintjs/core';
import { ListSelect } from '../Select';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Formik, FastField, FieldArray, useFormikContext } from 'formik';
import {

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { createContext, useContext } from 'react';
import { get, keyBy } from 'lodash';
import { useFormikContext } from 'formik';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Popover, PopoverInteractionKind, Position } from '@blueprintjs/core';
import { AdvancedFilterDropdown } from './AdvancedFilterDropdown';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Position, Checkbox, InputGroup } from '@blueprintjs/core';
import { DateInput } from '@blueprintjs/datetime';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { useFormikContext } from 'formik';
import { debounce } from 'lodash';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import { ArrayHelpers } from 'formik';
import { IPopoverProps } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import intl from 'react-intl-universal';
import {
defaultFastFieldShouldUpdate,

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import clsx from 'classnames';
import styled from 'styled-components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Router, Switch, Route } from 'react-router';
import { createBrowserHistory } from 'history';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import moment from 'moment';
import { setLocale } from 'yup';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { createContext } from 'react';
const AppIntlContext = createContext();

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import { Position, Toaster, Intent } from '@blueprintjs/core';
export const AppToaster = Toaster.create({

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Redirect, Route, Switch, Link, useLocation } from 'react-router-dom';
import BodyClassName from 'react-body-classname';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { firstLettersArgs } from '@/utils';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import intl from 'react-intl-universal';
import styled from 'styled-components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import intl from 'react-intl-universal';
import { MenuItem } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { MenuItem, Button } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import intl from 'react-intl-universal';
import { MenuItem } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
export * from './BranchSelect';
export * from './BranchMultiSelect';
export * from './BranchSuggestField';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import styled from 'styled-components';
export const ButtonLink = styled.button`

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import styled from 'styled-components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useState, useEffect, useMemo } from 'react';
import { FormattedMessage as T } from '@/components';
import intl from 'react-intl-universal';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useState, useEffect, useMemo } from 'react';
import { FormattedMessage as T } from '@/components';
import intl from 'react-intl-universal';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback } from 'react';
import { MenuItem } from '@blueprintjs/core';
import { MultiSelect } from '../MultiSelectTaggable';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useState, useEffect, useMemo } from 'react';
import { MenuItem } from '@blueprintjs/core';
import { Suggest } from '@blueprintjs/select';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
export * from './ContactSelectField';
export * from './ContactsSuggestField';
export * from './ContactSelecetList';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import intl from 'react-intl-universal';
import { MenuItem } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { memo } from 'react';
import { Popover, Position, Classes } from '@blueprintjs/core';
import { saveInvoke } from '@/utils';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { CurrencyTag } from '@/components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback } from 'react';
import { MenuItem, Button } from '@blueprintjs/core';
import { Select } from '@blueprintjs/select';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import intl from 'react-intl-universal';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useEffect, useState } from 'react';
import { FormattedMessage as T } from '@/components';
import { CLASSES } from '@/constants/classes';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
export * from './CurrencySelect';
export * from './BaseCurrency';
export * from './CurrenciesSelectList';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import * as R from 'ramda';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useState, useEffect, useMemo } from 'react';
import { FormattedMessage as T } from '@/components';
import intl from 'react-intl-universal';

View File

@@ -1,2 +1,3 @@
// @ts-nocheck
export * from './CustomerSelectField';
export * from './CustomerDrawerLink';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import intl from 'react-intl-universal';
import { MenuItem } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import classNames from 'classnames';
import { Icon } from '@/components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Switch, Route } from 'react-router';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Ability } from '@casl/ability';
import { createContextualCan } from '@casl/react';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useMemo, useState } from 'react';
import classNames from 'classnames';
import {

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import clsx from 'classnames';
import { Navbar } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import withBreadcrumbs from 'react-router-breadcrumbs-hoc';
import { useHistory } from 'react-router-dom';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import {
useAuthenticatedAccount,

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import {
CollapsibleList,

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import classNames from 'classnames';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { ErrorBoundary } from 'react-error-boundary';
import DashboardTopbar from '@/components/Dashboard/DashboardTopbar';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Route, Switch } from 'react-router-dom';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import classNames from 'classnames';
import { CLASSES } from '@/constants/classes';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { FormattedMessage as T, Icon } from '@/components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import classNames from 'classnames';
import intl from "react-intl-universal";

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { getFooterLinks } from '@/constants/footerLinks';
import { For } from '@/components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import classnames from 'classnames';
import { LoadingIndicator } from '../Indicator';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Choose } from '@/components';
import BigcapitalLoading from './BigcapitalLoading';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useEffect, Suspense } from 'react';
import { CLASSES } from '@/constants/classes';
import withDashboardActions from '@/containers/Dashboard/withDashboardActions';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
/**

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { DashboardAbilityProvider } from '../../components';
import { useDashboardMetaBoot } from './DashboardBoot';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import {
Button,

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useState, useRef } from 'react';
import SplitPane from 'react-split-pane';
import { debounce } from 'lodash';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { ThemeProvider, StyleSheetManager } from 'styled-components';
import rtlcss from 'stylis-rtlcss';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { useHistory } from 'react-router';
import {

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useRef, useState, useEffect } from 'react';
import { FormattedMessage as T } from '@/components';
import PropTypes from 'prop-types';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { useHotkeys } from 'react-hotkeys-hook';
import { useHistory } from 'react-router-dom';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Switch, Route } from 'react-router';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { useApplicationBoot } from '@/components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import * as R from 'ramda';
import BigcapitalLoading from './BigcapitalLoading';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { useHistory } from 'react-router-dom';
import {

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
export * from './SplashScreen';
export * from './DashboardBoot';
export * from './DashboardThemeProvider';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useRef, useCallback, useMemo } from 'react';
import classNames from 'classnames';
import { FormGroup, Classes, Intent } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { FormGroup, Intent, Classes } from '@blueprintjs/core';
import classNames from 'classnames';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import classNames from 'classnames';
import { get } from 'lodash';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback } from 'react';
import { FormGroup, Intent, Classes } from '@blueprintjs/core';
import classNames from 'classnames';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useState, useEffect } from 'react';
export const DivFieldCell = ({ cell: { value: initialValue } }) => {

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useState, useEffect } from 'react';
import classNames from 'classnames';
import { Classes, InputGroup, FormGroup, Intent } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useRef } from 'react';
import classNames from 'classnames';
import { FormGroup, Classes, Intent } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useState, useEffect } from 'react';
import { FormGroup, Intent } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useState, useEffect } from 'react';
import { FormGroup, NumericInput, Intent } from '@blueprintjs/core';
import classNames from 'classnames';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback } from 'react';
import classNames from 'classnames';
import { FormGroup, Classes, Intent } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback, useState, useEffect } from 'react';
import { FormGroup, Intent } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import styled from 'styled-components';
import { Popover2 } from '@blueprintjs/popover2';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useCallback } from 'react';
import { FormGroup, Intent, Classes } from '@blueprintjs/core';
import classNames from 'classnames';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import classNames from 'classnames';
import { Classes, Switch, FormGroup, Intent } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useState, useEffect } from 'react';
import classNames from 'classnames';
import { Classes, TextArea, FormGroup, Intent } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { Tooltip, Position } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import AccountsListFieldCell from './AccountsListFieldCell';
import MoneyFieldCell from './MoneyFieldCell';
import InputGroupCell from './InputGroupCell';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import { get } from 'lodash';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
export function CellTextSpan({ cell: { value } }) {

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useEffect, useRef } from 'react';
import {
useTable,

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React from 'react';
import styled from 'styled-components';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useReducer, useEffect } from 'react';
import classNames from 'classnames';
import { Button, ButtonGroup, Intent, HTMLSelect } from '@blueprintjs/core';

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
export default function TableBody({}) {

View File

@@ -1,3 +1,4 @@
// @ts-nocheck
import React, { useContext } from 'react';
import classNames from 'classnames';
import { camelCase} from 'lodash';

Some files were not shown because too many files have changed in this diff Show More