This repository was archived by the owner on Apr 29, 2026. It is now read-only.
forked from dimeloper/task-tracker-ngrx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.mjs
More file actions
63 lines (60 loc) · 1.33 KB
/
eslint.config.mjs
File metadata and controls
63 lines (60 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import angular from '@angular-eslint/eslint-plugin';
import angularTemplate from '@angular-eslint/eslint-plugin-template';
import angularParser from '@angular-eslint/template-parser';
import tsParser from '@typescript-eslint/parser';
export default [
// Ignore patterns
{
ignores: [
'dist/**/*',
'coverage/**/*',
'node_modules/**/*',
'projects/**/*',
],
},
// TypeScript files configuration
{
files: ['**/*.ts'],
languageOptions: {
parser: tsParser,
parserOptions: {
project: ['./tsconfig.json', './e2e/tsconfig.json'],
},
},
plugins: {
'@angular-eslint': angular,
},
rules: {
...angular.configs.recommended.rules,
'@angular-eslint/component-selector': [
'error',
{
prefix: 'app',
style: 'kebab-case',
type: 'element',
},
],
'@angular-eslint/directive-selector': [
'error',
{
prefix: 'app',
style: 'camelCase',
type: 'attribute',
},
],
},
},
// HTML template files configuration
{
files: ['**/*.html'],
languageOptions: {
parser: angularParser,
},
plugins: {
'@angular-eslint/template': angularTemplate,
},
rules: {
...angularTemplate.configs.recommended.rules,
},
},
];