-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
75 lines (75 loc) · 1.71 KB
/
.eslintrc
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"plugins": ["react", "react-hooks", "import"],
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@next/next/recommended"
],
"parserOptions": {
"ecmaVersion": 2022,
"parser": "@babel/eslint-parser",
"requireConfigFile": false,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["@components", "./components/"]
],
"extensions": [".js", ".jsx"]
}
},
"import/extensions": [".js", ".jsx"],
"react": {
"version": "detect"
}
},
"rules": {
"arrow-parens": [2, "always"],
"arrow-spacing": [1, { "before": true, "after": true }],
"jsx-quotes": 1,
"keyword-spacing": [1, { "before": true, "after": true }],
"no-alert": 0,
"no-console": 1,
"no-debugger": 1,
"no-empty-function": [1, { "allow": ["arrowFunctions"] }],
"no-lone-blocks": 1,
"no-param-reassign": 0,
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"no-underscore-dangle": 0,
"no-unexpected-multiline": 1,
"no-unreachable": 1,
"no-unused-vars": 1,
"no-useless-escape": 0,
"no-var": 1,
"prefer-const": 1,
"prettier/prettier": 0,
"quotes": [
2,
"single",
{ "avoidEscape": true, "allowTemplateLiterals": true }
],
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": "warn",
"strict": 0,
"react/jsx-props-no-spreading": 0,
"react/react-in-jsx-scope": 0,
"import/default": 1,
"import/export": 1,
"import/named": 1,
"import/namespace": 1,
"import/no-named-as-default": 1,
"import/no-unresolved": 1,
"react/prop-types": 0
}
}