Skip to content

Commit 0424082

Browse files
IvayloGiganchev
andauthored
Updating to ng 13 (#350)
* ng update @angular/cli --next to 13.0.0-rc.3 * lint(eslint): Add eslint packages * chore(*): ng update @angular-eslint/schematics * chore(*): ng update @angular/cli * chore(*): ng update @angular/core * revert tslint angular config * chore(lint): tslint to eslint for wrappers project * chore(lint): eslint for igniteui-angular-wrappers * lint: fix errors * chore(lint): Make errors warnings, TODO: These warnings are to be inspected and code actually refactored Co-authored-by: iganchev <[email protected]>
1 parent 38f44bb commit 0424082

File tree

55 files changed

+5865
-5340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+5865
-5340
lines changed

.eslintrc.json

Lines changed: 51 additions & 0 deletions
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+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ speed-measure-plugin.json
3232
.history/*
3333

3434
# misc
35+
/.angular/cache
3536
/.sass-cache
3637
/connect.lock
3738
/coverage

angular.json

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,11 @@
9595
}
9696
},
9797
"lint": {
98-
"builder": "@angular-devkit/build-angular:tslint",
98+
"builder": "@angular-eslint/builder:lint",
9999
"options": {
100-
"tsConfig": [
101-
"tsconfig.app.json",
102-
"tsconfig.spec.json",
103-
"e2e/tsconfig.json"
104-
],
105-
"exclude": [
106-
"**/node_modules/**",
107-
"src/app/shared/**"
100+
"lintFilePatterns": [
101+
"src/**/*.ts",
102+
"src/**/*.html"
108103
]
109104
}
110105
},
@@ -149,15 +144,11 @@
149144
}
150145
},
151146
"lint": {
152-
"builder": "@angular-devkit/build-angular:tslint",
147+
"builder": "@angular-eslint/builder:lint",
153148
"options": {
154-
"tsConfig": [
155-
"projects/igniteui-angular-wrappers/tsconfig.lib.json",
156-
"projects/igniteui-angular-wrappers/tsconfig.spec.json"
157-
],
158-
"exclude": [
159-
"**/node_modules/**",
160-
"src/app/shared/**"
149+
"lintFilePatterns": [
150+
"projects/igniteui-angular-wrappers/**/*.ts",
151+
"projects/igniteui-angular-wrappers/**/*.html"
161152
]
162153
}
163154
}
@@ -166,6 +157,7 @@
166157
},
167158
"defaultProject": "wrappers",
168159
"cli": {
169-
"analytics": false
160+
"analytics": false,
161+
"defaultCollection": "@angular-eslint/schematics"
170162
}
171163
}

0 commit comments

Comments
 (0)