-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
61 lines (61 loc) · 1.7 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"next/core-web-vitals",
"plugin:react/recommended",
"airbnb",
"plugin:prettier/recommended"
],
"ignorePatterns": ["./src/features"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"rules": {
"react/jsx-filename-extension": "off",
"react/react-in-jsx-scope": "off",
"react/function-component-definition": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"react/jsx-no-useless-fragment": "off",
"react/no-array-index-key": "off",
"import/extensions": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/interactive-supports-focus": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off",
"jsx-a11y/click-events-have-key-events": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default": "off",
"no-use-before-define": [
"error",
{
"functions": false,
"classes": true,
"variables": true,
"allowNamedExports": false
}
],
"import/no-unresolved": "warn",
"no-unused-expressions": "off",
"no-unused-vars": "warn",
"no-param-reassign": "warn",
"no-void": "off",
"no-undef": "warn",
"vars-on-top": "warn",
"no-plusplus": "off",
"no-continue": "off",
"no-restricted-syntax": "off",
"default-case": "off",
"consistent-return": "off"
}
}