Skip to content

Commit 6c873ce

Browse files
committed
Migrate from tslint (unsupported) to ESLint
1 parent c7be028 commit 6c873ce

File tree

5 files changed

+3555
-879
lines changed

5 files changed

+3555
-879
lines changed

scilog/.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": "app",
27+
"style": "kebab-case",
28+
"type": "element"
29+
}
30+
],
31+
"@angular-eslint/directive-selector": [
32+
"error",
33+
{
34+
"prefix": "app",
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+
}

scilog/angular.json

+11-10
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@
101101
"polyfills": "src/polyfills.ts",
102102
"tsConfig": "tsconfig.spec.json",
103103
"karmaConfig": "karma.conf.js",
104-
"codeCoverageExclude": ["src/ckeditor5-build-classic/**"],
104+
"codeCoverageExclude": [
105+
"src/ckeditor5-build-classic/**"
106+
],
105107
"assets": [
106108
"src/favicon.ico",
107109
"src/favicon.png",
@@ -116,15 +118,11 @@
116118
}
117119
},
118120
"lint": {
119-
"builder": "@angular-devkit/build-angular:tslint",
121+
"builder": "@angular-eslint/builder:lint",
120122
"options": {
121-
"tsConfig": [
122-
"tsconfig.app.json",
123-
"tsconfig.spec.json",
124-
"e2e/tsconfig.json"
125-
],
126-
"exclude": [
127-
"**/node_modules/**"
123+
"lintFilePatterns": [
124+
"src/**/*.ts",
125+
"src/**/*.html"
128126
]
129127
}
130128
},
@@ -144,6 +142,9 @@
144142
}
145143
},
146144
"cli": {
147-
"analytics": false
145+
"analytics": false,
146+
"schematicCollections": [
147+
"@angular-eslint/schematics"
148+
]
148149
}
149150
}

0 commit comments

Comments
 (0)