Skip to content

Commit 2d5aab8

Browse files
committed
Remove deprecated tslint
1 parent 3b28333 commit 2d5aab8

File tree

7 files changed

+1318
-378
lines changed

7 files changed

+1318
-378
lines changed

.eslintrc.json

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

angular.json

+12-3
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@
6666
},
6767
"serve": {
6868
"builder": "@angular-devkit/build-angular:dev-server",
69-
"options": {
70-
},
69+
"options": {},
7170
"configurations": {
7271
"production": {
7372
"browserTarget": "ngx-typed-js-demo:build:production"
@@ -100,6 +99,15 @@
10099
"src/assets"
101100
]
102101
}
102+
},
103+
"lint": {
104+
"builder": "@angular-eslint/builder:lint",
105+
"options": {
106+
"lintFilePatterns": [
107+
"src/**/*.ts",
108+
"src/**/*.html"
109+
]
110+
}
103111
}
104112
}
105113
},
@@ -136,6 +144,7 @@
136144
},
137145
"defaultProject": "ngx-typed-js-demo",
138146
"cli": {
139-
"analytics": "b5f6de1e-03de-4198-bf9c-bf8a29c7a64a"
147+
"analytics": "b5f6de1e-03de-4198-bf9c-bf8a29c7a64a",
148+
"defaultCollection": "@angular-eslint/schematics"
140149
}
141150
}

0 commit comments

Comments
 (0)