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"
}
}