Skip to content

Commit d09f1ec

Browse files
author
Alain BOUDARD
committed
fix(codestyle): eslint install
1 parent 3490ac9 commit d09f1ec

16 files changed

+1283
-173
lines changed

src/angular/.eslintrc.json

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
],
15+
"createDefaultProgram": true
16+
},
17+
"extends": [
18+
"plugin:@angular-eslint/recommended",
19+
"plugin:@angular-eslint/template/process-inline-templates"
20+
],
21+
"rules": {
22+
"@angular-eslint/component-selector": [
23+
"error",
24+
{
25+
"prefix": "app",
26+
"style": "kebab-case",
27+
"type": "element"
28+
}
29+
],
30+
"@angular-eslint/directive-selector": [
31+
"error",
32+
{
33+
"prefix": "app",
34+
"style": "camelCase",
35+
"type": "attribute"
36+
}
37+
]
38+
}
39+
},
40+
{
41+
"files": [
42+
"*.html"
43+
],
44+
"extends": [
45+
"plugin:@angular-eslint/template/recommended"
46+
],
47+
"rules": {}
48+
}
49+
]
50+
}

src/angular/.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ testem.log
3737
/typings
3838

3939
# e2e
40-
/e2e/*.js
41-
/e2e/*.map
4240

4341
# System Files
4442
.DS_Store

src/angular/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.
2020

2121
## Running end-to-end tests
2222

23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
23+
// TODO: install playwright
2424

2525
## Further help
2626

src/angular/angular.json

+4-32
Original file line numberDiff line numberDiff line change
@@ -88,39 +88,11 @@
8888
}
8989
},
9090
"lint": {
91-
"builder": "@angular-devkit/build-angular:tslint",
91+
"builder": "@angular-eslint/builder:lint",
9292
"options": {
93-
"tsConfig": [
94-
"src/tsconfig.app.json",
95-
"src/tsconfig.spec.json"
96-
],
97-
"exclude": [
98-
"**/node_modules/**"
99-
]
100-
}
101-
}
102-
}
103-
},
104-
"ngrxdata-e2e": {
105-
"root": "e2e",
106-
"sourceRoot": "e2e",
107-
"projectType": "application",
108-
"architect": {
109-
"e2e": {
110-
"builder": "@angular-devkit/build-angular:protractor",
111-
"options": {
112-
"protractorConfig": "./protractor.conf.js",
113-
"devServerTarget": "ngrxdata:serve"
114-
}
115-
},
116-
"lint": {
117-
"builder": "@angular-devkit/build-angular:tslint",
118-
"options": {
119-
"tsConfig": [
120-
"e2e/tsconfig.e2e.json"
121-
],
122-
"exclude": [
123-
"**/node_modules/**"
93+
"lintFilePatterns": [
94+
"src/**/*.ts",
95+
"src/**/*.html"
12496
]
12597
}
12698
}

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

-14
This file was deleted.

src/angular/e2e/app.po.ts

-11
This file was deleted.

src/angular/e2e/tsconfig.e2e.json

-14
This file was deleted.

0 commit comments

Comments
 (0)