-
-
Notifications
You must be signed in to change notification settings - Fork 225
/
.eslintrc
58 lines (58 loc) · 1.54 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
{
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"env": {
"node": true,
"es6": true,
"jest": true
},
"plugins": ["eslint-plugin-import", "import", "jest"],
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["./", "node_modules"]
}
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
}
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"rules": {
"comma-spacing": [1, { "before": false, "after": true }],
"eol-last": 1,
"import/extensions": 1,
"import/order": ["warn", { "groups": ["builtin", "external", "internal", "parent", "sibling", "index"] }],
"import/no-unresolved": ["error", { "commonjs": true, "caseSensitive": true }],
"indent": ["warn", 2],
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"key-spacing": 1,
"no-multi-spaces": 1,
"keyword-spacing": 1,
"no-unused-vars": 1,
"no-trailing-spaces": 1,
"object-curly-spacing": [1, "always"],
"quotes": ["warn", "single", { "avoidEscape": true }]
},
"overrides": [
{
"files": "src/matchers/*/index.js",
"rules": {
"import/no-default-export": "error"
}
},
{
"files": "**/*.ts",
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/array-type": "error"
}
}
]
}