minor eslint fixes
This commit is contained in:
+2
-1
@@ -4,4 +4,5 @@ node_modules
|
|||||||
.next
|
.next
|
||||||
# don't lint nyc coverage output
|
# don't lint nyc coverage output
|
||||||
coverage
|
coverage
|
||||||
next-env.d.ts
|
next-env.d.ts
|
||||||
|
.eslintrc.js
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
{
|
module.exports = {
|
||||||
"parserOptions": {
|
parserOptions: {
|
||||||
"project": "./tsconfig.json"
|
project: "./tsconfig.json"
|
||||||
},
|
},
|
||||||
"extends": [
|
extends: [
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"airbnb-typescript",
|
"airbnb-typescript",
|
||||||
"next",
|
"next",
|
||||||
"next/core-web-vitals"
|
"next/core-web-vitals"
|
||||||
],
|
],
|
||||||
"rules": {
|
rules: {
|
||||||
"max-len": [
|
"max-len": [
|
||||||
"warn",
|
"warn",
|
||||||
240
|
240
|
||||||
@@ -20,11 +20,14 @@
|
|||||||
"import/prefer-default-export": "warn",
|
"import/prefer-default-export": "warn",
|
||||||
"react/jsx-props-no-spreading": "off",
|
"react/jsx-props-no-spreading": "off",
|
||||||
"react/prop-types": "off",
|
"react/prop-types": "off",
|
||||||
|
"react/jsx-one-expression-per-line": "off",
|
||||||
|
"eslintreact/jsx-one-expression-per-line": "off",
|
||||||
// Temp
|
// Temp
|
||||||
|
"import/no-cycle": "warn",
|
||||||
"react/no-array-index-key": "warn",
|
"react/no-array-index-key": "warn",
|
||||||
"jsx-a11y/label-has-associated-control": "off",
|
"jsx-a11y/label-has-associated-control": "off",
|
||||||
"jsx-a11y/click-events-have-key-events": "off",
|
"jsx-a11y/click-events-have-key-events": "off",
|
||||||
"jsx-a11y/no-noninteractive-element-interactions": "off",
|
"jsx-a11y/no-noninteractive-element-interactions": "off",
|
||||||
"jsx-a11y/no-static-element-interactions": "off"
|
"jsx-a11y/no-static-element-interactions": "off",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user