11import parser from "@angular-eslint/template-parser" ;
2- import { FlatCompat } from "@eslint/eslintrc" ;
3- import { default as eslint , default as js } from "@eslint/js" ;
2+ import { default as eslint } from "@eslint/js" ;
43import angular from "angular-eslint" ;
54import prettier from "eslint-config-prettier" ;
65import github from "eslint-plugin-github" ;
76import optimizeRegex from "eslint-plugin-optimize-regex" ;
87import { defineConfig , globalIgnores } from "eslint/config" ;
98import globals from "globals" ;
10- import path from "node:path" ;
11- import { fileURLToPath } from "node:url" ;
129import tseslint from "typescript-eslint" ;
1310
14- const __filename = fileURLToPath ( import . meta. url ) ;
15- const __dirname = path . dirname ( __filename ) ;
16- const compat = new FlatCompat ( {
17- baseDirectory : __dirname ,
18- recommendedConfig : js . configs . recommended ,
19- allConfig : js . configs . all ,
20- } ) ;
21-
2211export default defineConfig ( [
2312 globalIgnores ( [ "projects/**/*" ] ) ,
2413 {
@@ -75,6 +64,7 @@ export default defineConfig([
7564 } ,
7665 ] ,
7766 "@angular-eslint/prefer-standalone" : "warn" ,
67+ "@angular-eslint/prefer-on-push-component-change-detection" : "warn" ,
7868 "@typescript-eslint/no-unused-vars" : [
7969 "error" ,
8070 {
@@ -92,7 +82,7 @@ export default defineConfig([
9282 {
9383 files : [ "**/*.html" ] ,
9484
95- extends : compat . extends ( "plugin:@ angular-eslint/template/recommended" , "plugin:@ angular-eslint/template/accessibility" ) ,
85+ extends : [ ... angular . configs . templateRecommended , ... angular . configs . templateAccessibility ] ,
9686
9787 languageOptions : {
9888 parser : parser ,
@@ -104,7 +94,6 @@ export default defineConfig([
10494 "@angular-eslint/template/prefer-self-closing-tags" : "warn" ,
10595 "@angular-eslint/template/prefer-ngsrc" : "warn" ,
10696 "@angular-eslint/template/prefer-control-flow" : "warn" ,
107- "@angular-eslint/prefer-on-push-component-change-detection" : "off" ,
10897 } ,
10998 } ,
11099] ) ;
0 commit comments