forked from UXAspects/UXAspects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
100 lines (99 loc) · 3.27 KB
/
eslint.config.js
File metadata and controls
100 lines (99 loc) · 3.27 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
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
const nx = require('@nx/eslint-plugin');
module.exports = [
...nx.configs['flat/base'],
...nx.configs['flat/typescript'],
...nx.configs['flat/javascript'],
...nx.configs['flat/angular'],
...nx.configs['flat/angular-template'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/component-selector': 'off',
'@angular-eslint/directive-selector': 'off',
'eol-last': 'off',
'max-len': 'off',
radix: 'off',
'@typescript-eslint/member-delimiter-style': 'off',
'no-underscore-dangle': 'off',
'@typescript-eslint/member-ordering': 'off',
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'jsdoc/newline-after-description': 'off',
'guard-for-in': 'off',
'quote-props': 'off',
'prefer-arrow/prefer-arrow-functions': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@angular-eslint/no-host-metadata-property': 'off',
'@angular-eslint/component-class-suffix': 'off',
'@angular-eslint/no-input-rename': 'off',
'@angular-eslint/no-output-rename': 'off',
'@angular-eslint/no-output-on-prefix': 'off',
'arrow-body-style': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/prefer-for-of': 'off',
'@angular-eslint/template/no-negated-async': 'off',
'@angular-eslint/directive-class-suffix': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'brace-style': 'off',
'one-var': 'off',
'@typescript-eslint/require-await': 'error',
'no-redeclare': 'error',
'no-trailing-spaces': 'off',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/no-unsafe-function-type': 'off',
},
languageOptions: {
parserOptions: {
project: ['tsconfig.json', 'e2e/tsconfig.json'],
createDefaultProgram: true,
},
},
},
{
files: ['**/*.html'],
rules: {
'no-mixed-spaces-and-tabs': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'off',
'@angular-eslint/template/interactive-supports-focus': 'off',
'@angular-eslint/template/role-has-required-aria': 'off',
'@angular-eslint/template/click-events-have-key-events': 'off',
'@angular-eslint/template/elements-content': 'off',
'@angular-eslint/template/mouse-events-have-key-events': 'off',
'@angular-eslint/template/label-has-associated-control': 'off',
'@angular-eslint/template/alt-text': 'off',
},
},
{
files: ['**/*.js'],
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
},
},
},
{
files: ['**/*.json'],
// Override or add rules here
rules: {},
languageOptions: {
parser: require('jsonc-eslint-parser'),
},
},
{
files: ['**/*.spec.ts', '**/*.e2e-spec.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/adjacent-overload-signatures': 'off',
},
},
{
files: ['**/snippets/*.ts'],
rules: {
'@typescript-eslint/no-empty-function': 'off',
},
},
];