Skip to content

Commit 5d9b970

Browse files
authored
Merge pull request #547 from keymanapp/chore/cleanup-deps
chore: cleanup angular old deps
2 parents aebd1e0 + fce99d6 commit 5d9b970

File tree

14 files changed

+8307
-7629
lines changed

14 files changed

+8307
-7629
lines changed

public/angular.json

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
"browser": ""
1919
},
2020
"index": "src/index.html",
21-
"polyfills": ["zone.js"],
21+
"polyfills": [
22+
"zone.js"
23+
],
2224
"tsConfig": "tsconfig.app.json",
2325
"aot": true,
2426
"assets": [
@@ -59,15 +61,13 @@
5961
}
6062
]
6163
},
62-
6364
"development": {
6465
"optimization": false,
6566
"outputHashing": "all",
6667
"sourceMap": true,
6768
"namedChunks": true,
6869
"extractLicenses": false
6970
}
70-
7171
}
7272
},
7373
"serve": {
@@ -94,7 +94,9 @@
9494
"builder": "@angular-devkit/build-angular:karma",
9595
"options": {
9696
"main": "src/test.ts",
97-
"polyfills": ["zone.js"],
97+
"polyfills": [
98+
"zone.js"
99+
],
98100
"tsConfig": "tsconfig.spec.json",
99101
"assets": [
100102
"src/favicon.ico",
@@ -107,35 +109,22 @@
107109
}
108110
},
109111
"lint": {
110-
"builder": "@angular-devkit/build-angular:tslint",
112+
"builder": "@angular-eslint/builder:lint",
111113
"options": {
112-
"tsConfig": [
113-
"tsconfig.app.json",
114-
"tsconfig.spec.json",
115-
"e2e/tsconfig.json"
116-
],
117-
"exclude": [
118-
"**/node_modules/**"
114+
"lintFilePatterns": [
115+
"src/**/*.ts",
116+
"src/**/*.html"
119117
]
120118
}
121-
},
122-
"e2e": {
123-
"builder": "@angular-devkit/build-angular:protractor",
124-
"options": {
125-
"protractorConfig": "e2e/protractor.conf.js",
126-
"devServerTarget": "public:serve"
127-
},
128-
"configurations": {
129-
"production": {
130-
"devServerTarget": "public:serve:production"
131-
}
132-
}
133119
}
134120
}
135121
}
136122
},
137123
"cli": {
138-
"analytics": false
124+
"analytics": false,
125+
"schematicCollections": [
126+
"angular-eslint"
127+
]
139128
},
140129
"schematics": {
141130
"@schematics/angular:component": {
@@ -163,4 +152,4 @@
163152
"typeSeparator": "."
164153
}
165154
}
166-
}
155+
}

public/e2e/protractor.conf.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

public/e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 23 deletions
This file was deleted.

public/e2e/src/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

public/e2e/tsconfig.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

public/eslint.config.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// @ts-check
2+
const eslint = require("@eslint/js");
3+
const tseslint = require("typescript-eslint");
4+
const angular = require("angular-eslint");
5+
6+
module.exports = tseslint.config(
7+
{
8+
files: ["**/*.ts"],
9+
extends: [
10+
eslint.configs.recommended,
11+
...tseslint.configs.recommended,
12+
...tseslint.configs.stylistic,
13+
...angular.configs.tsRecommended,
14+
],
15+
processor: angular.processInlineTemplates,
16+
rules: {
17+
"@angular-eslint/directive-selector": [
18+
"error",
19+
{
20+
type: "attribute",
21+
prefix: "app",
22+
style: "camelCase",
23+
},
24+
],
25+
"@angular-eslint/component-selector": [
26+
"error",
27+
{
28+
type: "element",
29+
prefix: "app",
30+
style: "kebab-case",
31+
},
32+
],
33+
},
34+
},
35+
{
36+
files: ["**/*.html"],
37+
extends: [
38+
...angular.configs.templateRecommended,
39+
...angular.configs.templateAccessibility,
40+
],
41+
rules: {},
42+
}
43+
);

0 commit comments

Comments
 (0)