Skip to content

Commit da4da72

Browse files
committed
replace tslint with eslint
1 parent ef869dc commit da4da72

File tree

8 files changed

+2767
-719
lines changed

8 files changed

+2767
-719
lines changed

.eslintrc.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"extends": [
12+
"eslint:recommended",
13+
"plugin:@typescript-eslint/recommended",
14+
"plugin:@angular-eslint/recommended",
15+
"plugin:@angular-eslint/template/process-inline-templates"
16+
],
17+
"rules": {
18+
"@angular-eslint/directive-selector": [
19+
"error",
20+
{
21+
"type": "attribute",
22+
"prefix": "app",
23+
"style": "camelCase"
24+
}
25+
],
26+
"@angular-eslint/component-selector": [
27+
"error",
28+
{
29+
"type": "element",
30+
"prefix": "app",
31+
"style": "kebab-case"
32+
}
33+
]
34+
}
35+
},
36+
{
37+
"files": [
38+
"*.html"
39+
],
40+
"extends": [
41+
"plugin:@angular-eslint/template/recommended"
42+
],
43+
"rules": {}
44+
}
45+
]
46+
}

angular.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,22 @@
163163
"configurations": {
164164
"production": {}
165165
}
166+
},
167+
"lint": {
168+
"builder": "@angular-eslint/builder:lint",
169+
"options": {
170+
"lintFilePatterns": [
171+
"src/**/*.ts",
172+
"src/**/*.html"
173+
]
174+
}
166175
}
167176
}
168177
}
178+
},
179+
"cli": {
180+
"schematicCollections": [
181+
"@angular-eslint/schematics"
182+
]
169183
}
170184
}

0 commit comments

Comments
 (0)