Update deps, eslint rules

This commit is contained in:
Aarni Halinen
2020-12-31 00:13:52 +02:00
parent 66c3b1991d
commit bfd598f461
3 changed files with 405 additions and 1039 deletions
+32 -65
View File
@@ -2,10 +2,12 @@
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"extends": [
"eslint:recommended",
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
@@ -32,73 +34,38 @@
}
},
"rules": {
"arrow-parens": ["off", "always"],
"comma-dangle": [
"error",
{
"arrays": "ignore",
"objects": "ignore",
"imports": "ignore",
"exports": "ignore",
"functions": "ignore"
}
],
"consistent-return": "warn",
"global-require": "warn",
"linebreak-style": "off",
"camelcase": "off",
"max-len": [
"off",
"warn",
160
],
"no-console": "warn",
"no-extra-boolean-cast": "warn",
"no-param-reassign": "error",
"no-shadow": "warn",
"no-unused-vars": "off",
"no-useless-constructor": "warn",
"object-curly-newline": "error",
"prefer-destructuring": "warn",
"prefer-template": "error",
"quote-props": ["error", "consistent"],
"quotes": [
],
"no-mixed-operators": "off",
"no-shadow": "off",
"no-use-before-define": "off",
"quotes": [
"error",
"double"
],
"import/no-unresolved": "off",
"import/first": "off",
"import/order": "off",
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": "off",
"import/prefer-default-export": "off",
"indent": ["error", 2],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/alt-text": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/iframe-has-title": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "off",
"react/display-name": "off",
"react/destructuring-assignment": "off",
"react/jsx-closing-bracket-location": "off",
"react/jsx-closing-tag-location": "off",
"react/jsx-curly-brace-presence": "off",
"react/jsx-first-prop-new-line": "off",
"react/jsx-filename-extension": "off",
"react/jsx-indent-props": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": "off",
"react/no-access-state-in-setstate": "warn",
"react/prop-types": "off",
"react/prefer-stateless-function": "off",
"react/self-closing-comp": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/indent": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "warn"
],
"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",
"react-hooks/exhaustive-deps": "warn",
"jsx-a11y/no-static-element-interactions": "off"
}
}