Fix ESLint configuration for Account Console
This commit is contained in:
parent
146e9e669d
commit
5dcd436fe3
3 changed files with 3231 additions and 2265 deletions
|
@ -1,32 +1,21 @@
|
|||
/** @type {import('eslint').Linter.Config } */
|
||||
module.exports = {
|
||||
parser: '@typescript-eslint/parser',
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
},
|
||||
extends: ['plugin:@typescript-eslint/recommended', 'react-app'],
|
||||
globals: {
|
||||
Atomics: 'readonly',
|
||||
SharedArrayBuffer: 'readonly',
|
||||
},
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
impliedStrict: true
|
||||
},
|
||||
ecmaVersion: 2019,
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: [
|
||||
'react',
|
||||
extends: [
|
||||
'react-app',
|
||||
'plugin:jsx-a11y/recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
],
|
||||
rules: {
|
||||
"no-useless-constructor": "off",
|
||||
"@typescript-eslint/indent": "off",
|
||||
"@typescript-eslint/no-empty-interface": "off",
|
||||
"@typescript-eslint/no-non-null-assertion": "off",
|
||||
"@typescript-eslint/no-parameter-properties": "off",
|
||||
"@typescript-eslint/explicit-member-accessibility": "off",
|
||||
"no-restricted-properties": "off"
|
||||
settings: {
|
||||
react: {
|
||||
version: '16',
|
||||
}
|
||||
},
|
||||
rules: {
|
||||
'@typescript-eslint/ban-types': 'warn',
|
||||
'@typescript-eslint/no-empty-interface': 'warn',
|
||||
'@typescript-eslint/no-extra-semi': 'warn',
|
||||
'prefer-const': 'warn',
|
||||
'react/prop-types': 'warn',
|
||||
}
|
||||
};
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -41,14 +41,11 @@
|
|||
"@types/react": "^16.9.23",
|
||||
"@types/react-dom": "^16.9.5",
|
||||
"@types/react-router-dom": "^4.3.1",
|
||||
"@typescript-eslint/eslint-plugin": "^1.4.2",
|
||||
"@typescript-eslint/parser": "^1.4.2",
|
||||
"babel-eslint": "^9.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
||||
"@typescript-eslint/parser": "^5.30.6",
|
||||
"chokidar": "^3.5.3",
|
||||
"eslint": "^5.15.1",
|
||||
"eslint-config-react-app": "^3.0.8",
|
||||
"eslint-plugin-flowtype": "^2.50.3",
|
||||
"eslint-plugin-import": "^2.26.0",
|
||||
"eslint": "^8.20.0",
|
||||
"eslint-config-react-app": "^7.0.1",
|
||||
"eslint-plugin-jsx-a11y": "^6.6.0",
|
||||
"eslint-plugin-react": "^7.30.1",
|
||||
"rollup-plugin-postcss": "^2.5.0",
|
||||
|
|
Loading…
Reference in a new issue