You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
2.6 KiB
JSON
97 lines
2.6 KiB
JSON
{
|
|
"parserOptions": {
|
|
"sourceType": "module"
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@next/next/recommended",
|
|
"plugin:@next/next/core-web-vitals",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:react/jsx-runtime",
|
|
"plugin:react-hooks/recommended",
|
|
"plugin:jsx-a11y/recommended",
|
|
"plugin:unicorn/recommended",
|
|
"plugin:compat/recommended",
|
|
"plugin:import/warnings",
|
|
"plugin:import/typescript",
|
|
"plugin:prettier/recommended"
|
|
],
|
|
"settings": {
|
|
"env": {
|
|
"browser": true,
|
|
"node": true,
|
|
"jest": true,
|
|
"es2021": true
|
|
},
|
|
"react": {
|
|
"version": "detect"
|
|
},
|
|
"import/resolver": {
|
|
"typescript": {},
|
|
"node": {}
|
|
}
|
|
},
|
|
"rules": {
|
|
"semi": [
|
|
"error",
|
|
"never"
|
|
],
|
|
"max-len": [
|
|
"error",
|
|
{
|
|
"code": 130
|
|
}
|
|
],
|
|
"no-case-declarations": "off",
|
|
"comma-spacing": "warn",
|
|
"eol-last": "warn",
|
|
"space-before-blocks": "warn",
|
|
"prefer-const": "warn",
|
|
"linebreak-style": "off",
|
|
"arrow-body-style": "off",
|
|
"prefer-arrow-callback": "off",
|
|
"indent": "off",
|
|
"object-curly-spacing": "off",
|
|
"keyword-spacing": "off",
|
|
"quotes": "off",
|
|
"no-console": "error",
|
|
"@typescript-eslint/keyword-spacing": [
|
|
"warn"
|
|
],
|
|
"@typescript-eslint/indent": "off",
|
|
"@typescript-eslint/type-annotation-spacing": [
|
|
"warn"
|
|
],
|
|
"@typescript-eslint/object-curly-spacing": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"@typescript-eslint/explicit-module-boundary-types": "warn",
|
|
"@typescript-eslint/ban-types": "warn",
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"import/order": "warn",
|
|
"import/namespace": "off",
|
|
"react/function-component-definition": "warn",
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/prop-types": "off",
|
|
"react/no-unknown-property": "off",
|
|
"unicorn/prefer-module": "warn",
|
|
"unicorn/prevent-abbreviations": "off",
|
|
"unicorn/no-zero-fractions": "off",
|
|
"unicorn/filename-case": "off",
|
|
"unicorn/no-null": "off",
|
|
"unicorn/prefer-node-protocol": "off",
|
|
"unicorn/numeric-separators-style": "off",
|
|
"unicorn/no-array-reduce": "off",
|
|
"unicorn/no-array-for-each": "off",
|
|
"unicorn/prefer-logical-operator-over-ternary": "warn",
|
|
"@next/next/no-img-element": "off",
|
|
"jsx-a11y/anchor-is-valid": "off",
|
|
"jsx-a11y/click-events-have-key-events": "warn",
|
|
"jsx-a11y/no-static-element-interactions": "warn",
|
|
"jsx-a11y/no-noninteractive-element-interactions": "warn"
|
|
}
|
|
}
|