diff --git a/.eslintignore b/.eslintignore index 26a4091..7e7d590 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,4 +4,5 @@ node_modules .next # don't lint nyc coverage output coverage -next-env.d.ts \ No newline at end of file +next-env.d.ts +.eslintrc.js \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.js similarity index 67% rename from .eslintrc.json rename to .eslintrc.js index 5025ea2..5336804 100644 --- a/.eslintrc.json +++ b/.eslintrc.js @@ -1,14 +1,14 @@ -{ - "parserOptions": { - "project": "./tsconfig.json" +module.exports = { + parserOptions: { + project: "./tsconfig.json" }, - "extends": [ + extends: [ "plugin:@typescript-eslint/recommended", "airbnb-typescript", "next", "next/core-web-vitals" ], - "rules": { + rules: { "max-len": [ "warn", 240 @@ -20,11 +20,14 @@ "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", "jsx-a11y/no-noninteractive-element-interactions": "off", - "jsx-a11y/no-static-element-interactions": "off" + "jsx-a11y/no-static-element-interactions": "off", } }