fix eslint on js files
This commit is contained in:
+15
-9
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user