-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.json
70 lines (68 loc) · 2.39 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
64
65
66
67
68
69
70
{
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
"extends": ["plugin:jest/recommended"],
"parserOptions": {
"ecmaVersion": 12
},
"plugins": ["jest", "@nrwl/nx"],
"rules": {
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx", "*.ts"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {
"@typescript-eslint/no-empty-function": "off",
"no-case-declarations": "off",
"linebreak-style": [ "error", "unix" ],
"quotes": [ "error", "single" ],
"semi": [ "error", "never" ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"space-before-function-paren": [ "error", "never" ],
"space-before-blocks": [ "error", "always" ],
"eqeqeq": [ "error", "always" ],
"quote-props": [ "error", "as-needed" ],
"key-spacing": [ "error", { "afterColon": true } ],
"object-curly-spacing": [ "error", "always" ],
"arrow-spacing": [ "error", { "before": true, "after": true } ],
"jest/no-standalone-expect": [ "off", { "additionalTestBlockFunctions": ["each.test"] } ],
"jest/no-conditional-expect": [ "off" ],
"jest/no-identical-title": [ "off" ],
"@typescript-eslint/no-unused-vars": [ "error", { "ignoreRestSiblings": true, "argsIgnorePattern": "^_" } ],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "warn",
"eol-last": [ "error", "always" ],
"@typescript-eslint/no-empty-interface": "off",
"object-shorthand": ["warn", "always"]
}
}
]
}