Upgraded to Angular v21
Removed tailwind Moved to vitest from karma/jasmine
This commit is contained in:
@ -1,28 +1,29 @@
|
||||
// @ts-check
|
||||
const eslint = require('@eslint/js');
|
||||
const { defineConfig } = require('eslint/config');
|
||||
const tseslint = require('typescript-eslint');
|
||||
const angular = require('angular-eslint');
|
||||
const eslintConfigPrettier = require('eslint-config-prettier');
|
||||
const unusedImports = require('eslint-plugin-unused-imports');
|
||||
const perfectionist = require('eslint-plugin-perfectionist');
|
||||
|
||||
module.exports = tseslint.config(
|
||||
module.exports = defineConfig([
|
||||
{
|
||||
files: ['**/*.ts'],
|
||||
ignores: ['**/*.spec.ts'],
|
||||
extends: [
|
||||
eslint.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
...tseslint.configs.stylistic,
|
||||
...angular.configs.tsRecommended,
|
||||
tseslint.configs.recommended,
|
||||
tseslint.configs.stylistic,
|
||||
angular.configs.tsRecommended,
|
||||
eslintConfigPrettier,
|
||||
],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
project: './tsconfig.json', // <-- REQUIRED
|
||||
project: './tsconfig.app.json', // <-- REQUIRED
|
||||
tsconfigRootDir: __dirname,
|
||||
},
|
||||
},
|
||||
|
||||
processor: angular.processInlineTemplates,
|
||||
plugins: {
|
||||
unusedImports: unusedImports,
|
||||
@ -69,10 +70,7 @@ module.exports = tseslint.config(
|
||||
},
|
||||
{
|
||||
files: ['**/*.html'],
|
||||
extends: [
|
||||
...angular.configs.templateRecommended,
|
||||
// ...angular.configs.templateAccessibility,
|
||||
],
|
||||
extends: [angular.configs.templateRecommended, angular.configs.templateAccessibility],
|
||||
rules: {},
|
||||
},
|
||||
);
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user