-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
33 lines (33 loc) · 1.12 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier", "jsx-a11y", "react", "react-hooks", "sonarjs"],
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:sonarjs/recommended",
"next/core-web-vitals"
],
"rules": {
"no-var": "error",
"max-lines-per-function": ["warn", 100],
"no-param-reassign": "off",
"no-useless-constructor": "off",
"import/prefer-default-export": "off",
"import/extensions": "off",
"prettier/prettier": "error",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/ban-types": "warn",
"react/jsx-filename-extension": ["error", { "extensions": [".tsx"] }],
"react/function-component-definition": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"jsx-a11y/anchor-is-valid": "off"
}
}