import baseConfig from '../../eslint.config.js'; import angular from '@angular-eslint/eslint-plugin'; import angularTemplate from '@angular-eslint/eslint-plugin-template'; import angularTemplateParser from '@angular-eslint/template-parser'; export default [ ...baseConfig, { files: ['**/*.ts'], plugins: { '@angular-eslint': angular, }, rules: { '@angular-eslint/directive-selector': [ 'error', { type: 'attribute', prefix: 'app', style: 'camelCase', }, ], '@angular-eslint/component-selector': [ 'error', { type: 'element', prefix: 'app', style: 'kebab-case', }, ], }, languageOptions: { parserOptions: { project: './tsconfig.*?.json', tsconfigRootDir: import.meta.dirname, }, }, }, { files: ['**/*.html'], plugins: { '@angular-eslint/template': angularTemplate, }, languageOptions: { parser: angularTemplateParser, }, processor: '@angular-eslint/template/extract-inline-html', rules: {}, }, { ignores: ['**/assets/*.js'] }, ];