forked from kawalcovid19/wargabantuwarga.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
61 lines (59 loc) · 1.49 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
{
"extends": [
"plugin:prettier/recommended",
"prettier",
"kentcdodds",
"kentcdodds/react",
"kentcdodds/jsx-a11y",
"plugin:@next/next/recommended",
"plugin:cypress/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"plugins": ["prettier", "cypress", "chai-friendly"],
"rules": {
"@babel/new-cap": "off",
"@typescript-eslint/no-explicit-any": "warn",
"import/extensions": [
"warn",
"never",
{
"css": "ignorePackages",
"json": "ignorePackages",
"md": "ignorePackages"
}
],
"import/default": 2,
"import/export": 2,
"import/namespace": 2,
"import/named": 2,
"import/newline-after-import": 2,
"import/no-unresolved": [2, { "commonjs": true, "amd": true }],
"import/no-extraneous-dependencies": 2,
"import/order": "error",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/accessible-emoji": "off",
"react/jsx-sort-props": ["warn", { "reservedFirst": ["key"] }],
"react/react-in-jsx-scope": ["off"],
"cypress/no-unnecessary-waiting": "warn",
"@babel/no-unused-expressions": 0,
"chai-friendly/no-unused-expressions": 2
},
"settings": {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
}
}
},
"overrides": [
{
"files": ["**/*.(d.)?ts(x)?"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {}
}
]
}