File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 " src/assets"
9292 ]
9393 }
94+ },
95+ "lint" : {
96+ "builder" : " @angular-eslint/builder:lint" ,
97+ "options" : {
98+ "lintFilePatterns" : [
99+ " src/**/*.ts" ,
100+ " src/**/*.html"
101+ ]
102+ }
94103 }
95104 }
96105 },
120129 "tsConfig" : " projects/schema-form/tsconfig.spec.json" ,
121130 "karmaConfig" : " projects/schema-form/karma.conf.js"
122131 }
132+ },
133+ "lint" : {
134+ "builder" : " @angular-eslint/builder:lint" ,
135+ "options" : {
136+ "lintFilePatterns" : [
137+ " projects/schema-form/**/*.ts" ,
138+ " projects/schema-form/**/*.html"
139+ ],
140+ "eslintConfig" : " projects/schema-form/eslint.config.js"
141+ }
123142 }
124143 }
125144 }
145+ },
146+ "cli" : {
147+ "schematicCollections" : [
148+ " @angular-eslint/schematics"
149+ ]
126150 }
127151}
Original file line number Diff line number Diff line change 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+ ) ;
You can’t perform that action at this time.
0 commit comments