generated from MerlinMason/NextProject
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
63 lines (63 loc) · 1.58 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
62
63
{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es2021": true,
"jest/globals": true,
"cypress/globals": true
},
"extends": [
"plugin:react/recommended",
"airbnb",
"next",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:cypress/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint/eslint-plugin",
"prettier",
"import",
"jsx-a11y",
"jest",
"cypress"
],
"rules": {
"import/extensions": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [2, { "extensions": [".jsx", ".tsx"] }],
"jsx-a11y/label-has-associated-control": [
2,
{
"labelComponents": ["label"],
"labelAttributes": ["htmlFor"],
"controlComponents": ["input"]
}
],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-console": 0
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
}
}