This repository has been archived by the owner on Oct 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc
61 lines (60 loc) · 1.52 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:import/recommended",
"plugin:import/typescript",
"plugin:@next/next/recommended",
"plugin:cypress/recommended"
],
"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",
"sort-imports": "off",
"jsx-a11y/accessible-emoji": "off",
"react/jsx-sort-props": ["warn", { "reservedFirst": ["key"] }],
"react/react-in-jsx-scope": ["off"],
"cypress/no-unnecessary-waiting": "warn",
"chai-friendly/no-unused-expressions": 2,
"@babel/no-unused-expressions": 0
},
"settings": {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json"
}
}
},
"overrides": [
{
"files": ["**/*.(d.)?ts(x)?"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {}
}
]
}