-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
93 lines (93 loc) · 2.3 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"root": true,
"ignorePatterns": [
"!**/*",
"**/.next/**/*",
"**/dist/**/*",
"*.glsl",
"*.scss",
"*.json",
".gitkeep"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.base.json"
],
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"@nrwl/nx",
"@typescript-eslint/eslint-plugin"
],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
],
"indent": ["error", "tab"],
"@typescript-eslint/semi": "error",
"no-var": "error",
"prefer-const": "warn",
"keyword-spacing": "warn",
"semi-spacing": "error",
"space-before-function-paren": [2, "never"],
"prefer-template": "warn",
"no-dupe-class-members": "error",
"no-const-assign": "error",
"no-new-require": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-non-null-assertion": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"yoda": "warn",
"radix": [2, "as-needed"],
"no-shadow": "error",
"no-void": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-new-func": "error",
"no-new": "off",
"curly": "error",
"dot-notation": "warn",
"eqeqeq": "error",
"no-else-return": "error",
"no-empty-pattern": "error",
"no-eq-null": "error",
"no-floating-decimal": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-lone-blocks": "error",
"no-multi-spaces": "error",
"no-native-reassign": "error",
"no-throw-literal": "error",
"no-unused-expressions": "error",
"no-useless-concat": "error",
"no-unmodified-loop-condition": "error",
"no-multiple-empty-lines": ["error", {"max": 1}],
"no-implied-eval": "error",
"semi": "error",
"global-require": "error"
},
"overrides": [
{
"files": ["*.json", "*.config.ts", "*.config.js"],
"rules": {
"indent": ["error", 2]
}
}
]
}