update eslint

This commit is contained in:
Aarni Halinen
2022-04-10 23:47:38 +03:00
parent 3d98ff1b06
commit 88c7a5593c
4 changed files with 455 additions and 387 deletions
+5 -1
View File
@@ -3,7 +3,7 @@ module.exports = {
"eslint:recommended",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
// "airbnb/hooks",
"plugin:import/recommended",
"plugin:@typescript-eslint/recommended",
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
@@ -36,6 +36,10 @@ module.exports = {
"react/jsx-one-expression-per-line": "off",
"react/require-default-props": "off",
"react/default-props-match-prop-types": "off",
"react/function-component-definition": ["error", {
namedComponents: "arrow-function",
unnamedComponents: "arrow-function",
}],
// Temp
"react/no-array-index-key": "warn",
"jsx-a11y/label-has-associated-control": "off",