Skip to content

Commit b8230c9

Browse files
committed
misc/ upgrade angular-eslint to 2.0.2
1 parent 982cbac commit b8230c9

File tree

3 files changed

+203
-225
lines changed

3 files changed

+203
-225
lines changed

Diff for: .eslintrc.json

+28-14
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"env": {
3-
"browser": true,
4-
"node": true,
5-
"es6": true,
6-
"es2017": true
3+
"browser": true,
4+
"node": true,
5+
"es6": true,
6+
"es2017": true
77
},
88
"overrides": [
99
{
10-
"files": ["*.ts"],
10+
"files": [
11+
"*.ts"
12+
],
1113
"extends": [
1214
"eslint:recommended",
1315
"plugin:@typescript-eslint/eslint-recommended",
@@ -25,7 +27,7 @@
2527
],
2628
"sourceType": "module",
2729
"ecmaFeatures": {
28-
"modules": true
30+
"modules": true
2931
}
3032
},
3133
"plugins": [
@@ -34,11 +36,19 @@
3436
],
3537
"rules": {
3638
"@typescript-eslint/indent": [
37-
"error", 2, {
39+
"error",
40+
2,
41+
{
3842
"SwitchCase": 1,
39-
"CallExpression": {"arguments": "first"},
40-
"FunctionExpression": {"parameters": "first"},
41-
"FunctionDeclaration": {"parameters": "first"}
43+
"CallExpression": {
44+
"arguments": "first"
45+
},
46+
"FunctionExpression": {
47+
"parameters": "first"
48+
},
49+
"FunctionDeclaration": {
50+
"parameters": "first"
51+
}
4252
}
4353
],
4454
"@typescript-eslint/no-empty-function": 0,
@@ -55,12 +65,16 @@
5565
}
5666
},
5767
{
58-
"files": ["*.component.html"],
68+
"files": [
69+
"*.component.html"
70+
],
5971
"parser": "@angular-eslint/template-parser",
60-
"plugins": ["@angular-eslint/template"],
72+
"plugins": [
73+
"@angular-eslint/template"
74+
],
6175
"rules": {
62-
"@angular-eslint/template/banana-in-box": "error",
63-
"@angular-eslint/template/no-negated-async": "error"
76+
"@angular-eslint/template/banana-in-box": "error",
77+
"@angular-eslint/template/no-negated-async": "error"
6478
}
6579
}
6680
]

0 commit comments

Comments
 (0)