@@ -3,15 +3,18 @@ import { FlatCompat } from '@eslint/eslintrc';
33const compat = new FlatCompat ( ) ;
44
55export default [
6- ...compat . extends ( 'plugin:@angular-eslint/recommended' , 'plugin:@angular-eslint/template/process-inline-templates' ) ,
76 {
8- files : [ '**/*.ts' , '**/*.tsx '] ,
7+ files : [ '**/*.component.ts ' ] ,
98 languageOptions : {
109 parserOptions : {
1110 project : [ 'tsconfig.json' ] ,
1211 createDefaultProgram : true ,
1312 } ,
1413 } ,
14+ ...compat . extends (
15+ 'plugin:@angular-eslint/recommended' ,
16+ 'plugin:@angular-eslint/template/process-inline-templates'
17+ ) [ 0 ] ,
1518 rules : {
1619 '@angular-eslint/directive-selector' : [
1720 'error' ,
@@ -24,10 +27,24 @@ export default [
2427 '@angular-eslint/prefer-standalone' : 'off'
2528 } ,
2629 } ,
27- ...compat . extends ( 'plugin:@angular-eslint/template/recommended' ) ,
2830 {
2931 files : [ '**/*.html' ] ,
30- rules : { } ,
32+ languageOptions : {
33+ parser : '@angular-eslint/template-parser'
34+ } ,
35+ ...compat . extends ( 'plugin:@angular-eslint/template/recommended' ) [ 0 ]
36+ } ,
37+ {
38+ files : [ '**/*.ts' ] ,
39+ ignores : [ '**/*.component.ts' ] ,
40+ languageOptions : {
41+ parser : '@typescript-eslint/parser' ,
42+ parserOptions : {
43+ project : [ 'tsconfig.json' ] ,
44+ createDefaultProgram : true
45+ } ,
46+ } ,
47+ ...compat . extends ( 'plugin:@typescript-eslint/recommended' ) [ 0 ]
3148 } ,
3249 {
3350 ignores : [ 'projects/**/*' ]
0 commit comments