Update ESLint

This commit is contained in:
Aarni Halinen
2021-02-11 10:16:44 +02:00
parent 6eeaec0f71
commit 5622296337
3 changed files with 316 additions and 1480 deletions
+28 -32
View File
@@ -5,10 +5,15 @@
"node": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
"airbnb-typescript",
"airbnb/hooks"
],
"globals": {
"Atomics": "readonly",
@@ -33,37 +38,28 @@
}
},
"rules": {
"camelcase": "off",
"@typescript-eslint/naming-convention": "off",
"max-len": [
"warn",
160
],
"no-mixed-operators": "off",
"no-shadow": "off",
"no-use-before-define": "off",
"quotes": [
"error",
"double"
],
"import/extensions": "off",
"import/no-unresolved": "off",
"import/order": "off",
"import/prefer-default-export": "warn",
"operator-linebreak": "off",
"no-unused-vars": "off",
"react/jsx-filename-extension": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"@typescript-eslint/no-shadow": "error",
// Temp
"react/no-array-index-key": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/iframe-has-title": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off"
],
"@typescript-eslint/quotes": [
"error",
"double"
],
"import/prefer-default-export": "warn",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
// Temp
"react/jsx-one-expression-per-line": "off",
"react/no-array-index-key": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/iframe-has-title": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off"
}
}
+283 -1443
View File
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -49,14 +49,14 @@
"@types/react-jsonschema-form": "1.7.3",
"@types/shortid": "0.0.29",
"@types/styled-components": "5.1.1",
"@typescript-eslint/eslint-plugin": "4.8.2",
"@typescript-eslint/parser": "4.8.2",
"@typescript-eslint/eslint-plugin": "4.15.0",
"@typescript-eslint/parser": "4.15.0",
"babel-plugin-styled-components": "1.10.7",
"eslint": "7.14.0",
"eslint-config-airbnb": "18.2.1",
"eslint": "7.19.0",
"eslint-config-airbnb-typescript": "12.3.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.4.1",
"eslint-plugin-react": "7.21.5",
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "1.3.1",
"npm-run-all": "4.1.5",