fix eslint on js files

This commit is contained in:
Aarni Halinen
2021-08-22 19:17:26 +03:00
parent b4a3cd8f44
commit 897faf8f47
8 changed files with 28 additions and 17 deletions
+15 -9
View File
@@ -1,12 +1,23 @@
module.exports = {
parserOptions: {
project: "./tsconfig.json"
},
extends: [
"plugin:@typescript-eslint/recommended",
"airbnb-typescript",
"next",
"next/core-web-vitals"
"next/core-web-vitals",
],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
rules: {
"max-len": [
@@ -17,13 +28,8 @@ module.exports = {
"error",
"double"
],
"import/prefer-default-export": "warn",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/jsx-one-expression-per-line": "off",
"eslintreact/jsx-one-expression-per-line": "off",
// Temp
"import/no-cycle": "warn",
"react/no-array-index-key": "warn",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/click-events-have-key-events": "off",