-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
163 lines (163 loc) · 4.98 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
{
"root": true,
"extends": [
"prettier"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": [
"tsconfig.json"
],
"createDefaultProgram": true
},
"rules": {
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/member-ordering": [
"off"
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
},
{
"selector": "enum",
"format": ["UPPER_CASE"]
}
],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"accessibility": "explicit",
"overrides": {
"constructors": "off"
}
}
],
"@typescript-eslint/no-invalid-this": ["error"],
"@typescript-eslint/array-type": [
"error", { "default": "array-simple" }
],
"@typescript-eslint/ban-ts-comment": "error",
"@typescript-eslint/ban-tslint-comment": "error",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/method-signature-style": ["error", "method"],
"@typescript-eslint/no-unused-vars": ["warn", {"args": "none"}],
"@typescript-eslint/no-useless-constructor": ["error"],
"import/order": "off",
"no-console": ["error", { "allow": ["error"] }],
"no-alert": "error",
"no-debugger": "error",
"no-array-constructor": "error",
"no-caller": "error",
"no-constant-condition": "error",
"no-duplicate-case": "error",
"no-empty": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-irregular-whitespace": "error",
"no-import-assign": "error",
"no-misleading-character-class": "error",
"no-obj-calls": "error",
"getter-return": "error",
"no-setter-return": "error",
"no-sparse-arrays": "error",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unsafe-negation": "error",
"valid-typeof": "error",
"array-callback-return": "error",
"no-var": "error",
"class-methods-use-this": "off",
"consistent-return": "error",
"curly": "error",
"default-case": "error",
"default-case-last": "error",
"default-param-last": "error",
"dot-location": ["error", "property"],
"eqeqeq": "error",
"no-eval": "error",
"no-extend-native": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-implied-eval": "error",
"no-invalid-this": "off",
"no-iterator": "error",
"no-lone-blocks": "error",
"no-multi-spaces": "error",
"no-multi-str": "error",
"no-new-wrappers": "error",
"no-script-url": "error",
"no-sequences": "error",
"no-throw-literal": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-unused-vars": "off",
"no-useless-return": "error",
"no-with": "error",
"radix": "error",
"require-await": "error",
"vars-on-top": "warn",
"yoda": "error",
"no-use-before-define": "error",
"camelcase": "error",
"capitalized-comments": "off",
"func-name-matching": "error",
"keyword-spacing": "error",
"max-depth": "error",
"no-multi-assign": "error",
"no-new-object": "error",
"no-plusplus": "error",
"no-underscore-dangle": "off",
"no-unneeded-ternary": "error",
"one-var": ["error", "never"],
"prefer-object-spread": "warn",
"sort-keys": "off",
"sort-vars": "off",
"arrow-body-style": "error",
"constructor-super": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-new-symbol": "error",
"no-this-before-super": "error",
"no-useless-computed-key": "error",
"no-useless-constructor": "off",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-yield": "error",
"sort-imports": "off",
"symbol-description": "error"
},
"extends": [
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
]
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended"
],
"rules": {}
}
]
}