File tree Expand file tree Collapse file tree 4 files changed +873
-37
lines changed
Expand file tree Collapse file tree 4 files changed +873
-37
lines changed Original file line number Diff line number Diff line change 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/directive-selector" : [
23+ " error" ,
24+ {
25+ "type" : " attribute" ,
26+ "prefix" : " app" ,
27+ "style" : " camelCase"
28+ }
29+ ],
30+ "@angular-eslint/component-selector" : [
31+ " error" ,
32+ {
33+ "type" : " element" ,
34+ "prefix" : " app" ,
35+ "style" : " kebab-case"
36+ }
37+ ]
38+ }
39+ },
40+ {
41+ "files" : [
42+ " *.html"
43+ ],
44+ "extends" : [
45+ " plugin:@angular-eslint/template/recommended"
46+ ],
47+ "rules" : {}
48+ }
49+ ]
50+ }
Original file line number Diff line number Diff line change 9898 ],
9999 "scripts" : []
100100 }
101+ },
102+ "lint" : {
103+ "builder" : " @angular-eslint/builder:lint" ,
104+ "options" : {
105+ "lintFilePatterns" : [
106+ " src/**/*.ts" ,
107+ " src/**/*.html"
108+ ]
109+ }
101110 }
102111 }
103112 }
104113 },
105- "defaultProject" : " AngularHuskyWithGitHooks"
114+ "defaultProject" : " AngularHuskyWithGitHooks" ,
115+ "cli" : {
116+ "defaultCollection" : " @angular-eslint/schematics"
117+ }
106118}
Original file line number Diff line number Diff line change 1212 "start" : " ng serve" ,
1313 "build" : " ng build" ,
1414 "watch" : " ng build --watch --configuration development" ,
15- "test" : " ng test"
15+ "test" : " ng test" ,
16+ "lint" : " ng lint"
1617 },
1718 "private" : true ,
1819 "dependencies" : {
3031 },
3132 "devDependencies" : {
3233 "@angular-devkit/build-angular" : " ~13.3.9" ,
34+ "@angular-eslint/builder" : " 13.5.0" ,
35+ "@angular-eslint/eslint-plugin" : " 13.5.0" ,
36+ "@angular-eslint/eslint-plugin-template" : " 13.5.0" ,
37+ "@angular-eslint/schematics" : " 13.5.0" ,
38+ "@angular-eslint/template-parser" : " 13.5.0" ,
3339 "@angular/cli" : " ~13.3.9" ,
3440 "@angular/compiler-cli" : " ~13.3.0" ,
3541 "@types/jasmine" : " ~3.10.0" ,
3642 "@types/node" : " ^12.11.1" ,
43+ "@typescript-eslint/eslint-plugin" : " 5.27.1" ,
44+ "@typescript-eslint/parser" : " 5.27.1" ,
45+ "eslint" : " ^8.17.0" ,
3746 "jasmine-core" : " ~4.0.0" ,
3847 "karma" : " ~6.3.0" ,
3948 "karma-chrome-launcher" : " ~3.1.0" ,
You can’t perform that action at this time.
0 commit comments