-
-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy patheslint.config.js
More file actions
53 lines (51 loc) · 1.33 KB
/
Copy patheslint.config.js
File metadata and controls
53 lines (51 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
// @ts-check
const tseslint = require('typescript-eslint');
const angular = require('angular-eslint');
const prettierRecommended = require('eslint-plugin-prettier/recommended');
module.exports = tseslint.config(
{
ignores: ['projects/**/*', '*.css'],
},
{
files: ['**/*.ts'],
extends: [
...angular.configs.tsRecommended,
prettierRecommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.json'],
tsconfigRootDir: __dirname,
},
},
processor: angular.processInlineTemplates,
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'app',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'app',
style: 'kebab-case',
},
],
// This rule was added to the v22 recommended preset. Preserve the
// project's existing change-detection policy during this migration.
'@angular-eslint/prefer-on-push-component-change-detection': 'off',
},
},
{
files: ['**/*.html'],
extends: [...angular.configs.templateRecommended, prettierRecommended],
rules: {
'prettier/prettier': ['error', { parser: 'angular' }],
},
},
);