-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
50 lines (50 loc) · 1.27 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
{
"root": true,
"env": {
"browser": true,
"amd": true,
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:jsx-a11y/recommended",
"airbnb",
"plugin:prettier/recommended",
"next/core-web-vitals",
"next",
"prettier"
],
"plugins": ["prettier"],
"rules": {
"semi": "warn",
"no-unused-vars": "warn",
"no-unused-expressions": "warn",
"no-use-before-define": "warn",
"jsx-a11y/anchor-is-valid": 0,
"react/jsx-props-no-spreading": 0,
"jsx-a11y/click-events-have-key-events": "off",
"no-console": "off",
"react/no-unstable-nested-components": "off",
"import/no-unresolved": [1, { "caseSensitive": false }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"prettier/prettier": 2
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["@pages", "./src/pages"],
["@components", "./src/components"],
["@assets", "./public/assets"],
["@constants", "./src/constants"],
["@helpers", "./src/helpers"],
["@services", "./src/services"],
["@styles", "./src/styles"]
],
"extensions": [".js", ".ts", ".tsx", ".jsx", ".json"]
}
}
}
}