Skip to content

Commit 4430f01

Browse files
committed
chore: update eslint config
Co-Authored-by: Pascal Repond <pascal.repond@rero.ch>
1 parent 419db16 commit 4430f01

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+430
-466
lines changed

.eslintrc.json

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [18.x, 20.x]
12+
node-version: [18.19.x, 20.11.x, 22.x]
1313

1414
steps:
1515
- uses: actions/checkout@v4

.github_changelog_generator

Lines changed: 0 additions & 20 deletions
This file was deleted.

eslint.config.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// @ts-check
2+
const eslint = require('@eslint/js');
3+
const tseslint = require('typescript-eslint');
4+
const angular = require('angular-eslint');
5+
6+
module.exports = tseslint.config(
7+
{
8+
files: ['**/*.ts'],
9+
extends: [eslint.configs.recommended, ...tseslint.configs.recommended, ...tseslint.configs.stylistic, ...angular.configs.tsRecommended],
10+
processor: angular.processInlineTemplates,
11+
rules: {
12+
'@angular-eslint/prefer-standalone': 'off',
13+
'@angular-eslint/directive-selector': [
14+
'error',
15+
{
16+
style: 'camelCase',
17+
type: 'attribute',
18+
},
19+
],
20+
'@angular-eslint/component-selector': [
21+
'error',
22+
{
23+
prefix: ['ng-core', 'app'],
24+
style: 'kebab-case',
25+
type: 'element',
26+
},
27+
],
28+
},
29+
},
30+
{
31+
files: ['**/*.html'],
32+
extends: [...angular.configs.templateRecommended, ...angular.configs.templateAccessibility],
33+
rules: {},
34+
}
35+
);

0 commit comments

Comments
 (0)