This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
114 lines (114 loc) · 5.05 KB
/
.eslintrc.js
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
module.exports = {
overrides: [
{
'files': [
'*.ts',
'*.tsx',
'*.js',
'*.jsx',
],
'parserOptions': {
'project': ['tsconfig.?*.json'],
'createDefaultProgram': true,
},
'extends': [
'plugin:@angular-eslint/recommended',
'plugin:@angular-eslint/template/process-inline-templates',
],
'rules': {
'@angular-eslint/no-forward-ref': 'off',
'@angular-eslint/component-class-suffix': [
'error',
{
'suffixes': [
'Component',
'View',
],
},
],
'@angular-eslint/component-max-inline-declarations': 'error',
'@angular-eslint/component-selector': 'error',
'@angular-eslint/contextual-lifecycle': 'error',
'@angular-eslint/directive-class-suffix': [
'error',
{
'suffixes': [
'Directive',
],
},
],
'@angular-eslint/directive-selector': 'error',
'@angular-eslint/no-attribute-decorator': 'error',
'@angular-eslint/no-conflicting-lifecycle': 'error',
'@angular-eslint/no-host-metadata-property': 'error',
'@angular-eslint/no-input-prefix': 'error',
'@angular-eslint/no-input-rename': 'error',
'@angular-eslint/no-inputs-metadata-property': 'error',
'@angular-eslint/no-lifecycle-call': 'error',
'@angular-eslint/no-output-native': 'error',
'@angular-eslint/no-output-on-prefix': 'error',
'@angular-eslint/no-output-rename': 'error',
'@angular-eslint/no-outputs-metadata-property': 'error',
'@angular-eslint/no-pipe-impure': 'error',
'@angular-eslint/no-queries-metadata-property': 'error',
'@angular-eslint/prefer-on-push-component-change-detection': 'error',
'@angular-eslint/prefer-output-readonly': 'error',
'@angular-eslint/use-component-selector': 'error',
'@angular-eslint/use-component-view-encapsulation': 'error',
'@angular-eslint/use-lifecycle-interface': 'error',
'@angular-eslint/use-pipe-transform-interface': 'error',
},
},
{
'files': [
'*.html',
],
'extends': [
'plugin:@angular-eslint/template/recommended',
],
'rules': {
'@angular-eslint/template/i18n': 'off',
'@angular-eslint/template/no-positive-tabindex': 'error',
'@angular-eslint/template/banana-in-box': 'error',
'@angular-eslint/template/no-any': 'error',
'@angular-eslint/template/no-autofocus': 'error',
'@angular-eslint/template/no-distracting-elements': 'error',
'@angular-eslint/template/no-negated-async': 'error',
'@angular-eslint/template/conditional-complexity': 'error',
'@angular-eslint/template/cyclomatic-complexity': 'error',
'@angular-eslint/template/no-call-expression': 'error',
'@angular-eslint/template/use-track-by-function': 'error',
'@angular-eslint/template/mouse-events-have-key-events': 'error',
'@angular-eslint/template/click-events-have-key-events': 'error',
'@angular-eslint/template/alt-text': 'error',
'@angular-eslint/template/elements-content': 'error',
'@angular-eslint/template/interactive-supports-focus': 'error',
'@angular-eslint/template/label-has-associated-control': 'error',
'@angular-eslint/template/role-has-required-aria': 'error',
'@angular-eslint/template/table-scope': 'error',
'@angular-eslint/template/valid-aria': 'error',
'@angular-eslint/template/prefer-self-closing-tags': 'error',
'@angular-eslint/template/attributes-order': [
'error',
{
alphabetical: false,
order: [
'STRUCTURAL_DIRECTIVE',
'TEMPLATE_REFERENCE',
'ATTRIBUTE_BINDING',
'INPUT_BINDING',
'TWO_WAY_BINDING',
'OUTPUT_BINDING',
],
},
],
},
},
{
"files": ["*.routes.ts"],
"rules": {
"@typescript-eslint/promise-function-async": "off"
}
},
],
};