Skip to content

Commit 7926d55

Browse files
authored
Update to 16 (#7)
* chore: fix critical vulnerabilities * chore: update to angular 16.2.11 * chore: update test related stuff * chore: update other packages * chore: update lib package.json * chore: replace tslint with eslint * chore: update lint
1 parent 63f296d commit 7926d55

25 files changed

+15331
-9404
lines changed

.eslintrc.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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": "lib",
23+
"style": "camelCase"
24+
}
25+
],
26+
"@angular-eslint/component-selector": [
27+
"error",
28+
{
29+
"type": "element",
30+
"prefix": "lib",
31+
"style": "kebab-case"
32+
}
33+
]
34+
}
35+
},
36+
{
37+
"files": [
38+
"*.html"
39+
],
40+
"extends": [
41+
"plugin:@angular-eslint/template/recommended",
42+
"plugin:@angular-eslint/template/accessibility"
43+
],
44+
"rules": {}
45+
}
46+
]
47+
}

angular.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,20 @@
2929
}
3030
},
3131
"lint": {
32-
"builder": "@angular-devkit/build-angular:tslint",
32+
"builder": "@angular-eslint/builder:lint",
3333
"options": {
34-
"tsConfig": [
35-
"projects/angular2-jsonapi/tsconfig.lib.json",
36-
"projects/angular2-jsonapi/tsconfig.spec.json"
37-
],
38-
"exclude": [
39-
"**/node_modules/**"
34+
"lintFilePatterns": [
35+
"projects/angular2-jsonapi/**/*.ts",
36+
"projects/angular2-jsonapi/**/*.html"
4037
]
4138
}
4239
}
4340
}
4441
}
42+
},
43+
"cli": {
44+
"schematicCollections": [
45+
"@angular-eslint/schematics"
46+
]
4547
}
4648
}

0 commit comments

Comments
 (0)