Skip to content

Commit

Permalink
build: upgrade eslint to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
cerinoligutom committed Jun 2, 2024
1 parent 722f28b commit 80bad6f
Show file tree
Hide file tree
Showing 8 changed files with 409 additions and 478 deletions.
44 changes: 0 additions & 44 deletions .eslintrc.json

This file was deleted.

36 changes: 36 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// @ts-check
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');
const angular = require('angular-eslint');

module.exports = tseslint.config(
{
files: ['**/*.ts'],
extends: [eslint.configs.recommended, ...tseslint.configs.strict, ...angular.configs.tsRecommended],
processor: angular.processInlineTemplates,
rules: {
'@typescript-eslint/no-extraneous-class': 'off',
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'app',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'app',
style: 'kebab-case',
},
],
},
},
{
files: ['**/*.html'],
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
rules: {},
},
);
Loading

0 comments on commit 80bad6f

Please sign in to comment.