@siemens/eslint-config-angular 2.0.0-next.2 → 2.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +10 -17
- package/package.json +1 -2
package/index.mjs
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import eslintJs from '@eslint/js';
|
|
6
6
|
import typescriptEslint from 'typescript-eslint';
|
|
7
7
|
import angularEslint from 'angular-eslint';
|
|
8
|
-
import jsdocPlugin from 'eslint-plugin-jsdoc';
|
|
9
8
|
import perfectionist from 'eslint-plugin-perfectionist';
|
|
10
9
|
import preferArrowPlugin from 'eslint-plugin-prefer-arrow';
|
|
11
10
|
|
|
@@ -18,8 +17,6 @@ export const configBase = typescriptEslint.config({
|
|
|
18
17
|
...angularEslint.configs.tsRecommended
|
|
19
18
|
],
|
|
20
19
|
plugins: {
|
|
21
|
-
'jsdoc': jsdocPlugin,
|
|
22
|
-
'prefer-arrow': preferArrowPlugin,
|
|
23
20
|
perfectionist
|
|
24
21
|
},
|
|
25
22
|
languageOptions: {
|
|
@@ -48,6 +45,9 @@ export const configBase = typescriptEslint.config({
|
|
|
48
45
|
'space-infix-ops': ['off'],
|
|
49
46
|
'space-before-blocks': ['off'],
|
|
50
47
|
|
|
48
|
+
// Disable the recommended formatting rules.
|
|
49
|
+
'no-unexpected-multiline': ['off'],
|
|
50
|
+
|
|
51
51
|
'@typescript-eslint/array-type': ['error'],
|
|
52
52
|
'@typescript-eslint/member-ordering': ['off'],
|
|
53
53
|
'@typescript-eslint/naming-convention': ['off'],
|
|
@@ -70,34 +70,26 @@ export const configBase = typescriptEslint.config({
|
|
|
70
70
|
'@typescript-eslint/prefer-function-type': ['error'],
|
|
71
71
|
'@typescript-eslint/unified-signatures': ['error'],
|
|
72
72
|
|
|
73
|
-
'array-bracket-spacing': ['error'],
|
|
74
|
-
'arrow-parens': ['error', 'as-needed'],
|
|
75
|
-
'arrow-spacing': ['error'],
|
|
76
|
-
'block-spacing': ['error'],
|
|
77
|
-
'curly': ['error'],
|
|
78
|
-
'jsdoc/newline-after-description': ['off'],
|
|
79
|
-
'key-spacing': ['error'],
|
|
80
73
|
'no-duplicate-imports': ['error'],
|
|
81
74
|
'no-empty': ['error'],
|
|
82
75
|
'no-irregular-whitespace': ['error'],
|
|
83
|
-
'no-multi-spaces': ['error'],
|
|
84
|
-
'no-multiple-empty-lines': ['error'],
|
|
85
|
-
'prefer-arrow/prefer-arrow-functions': ['off'],
|
|
86
|
-
'semi-spacing': ['error'],
|
|
87
|
-
'space-in-parens': ['error'],
|
|
88
|
-
'space-unary-ops': ['error'],
|
|
89
76
|
'sort-imports': ['error', { ignoreCase: true, ignoreDeclarationSort: true }]
|
|
90
77
|
}
|
|
91
78
|
});
|
|
92
79
|
|
|
93
80
|
export const configRecommended = typescriptEslint.config({
|
|
94
81
|
extends: [...angularEslint.configs.tsAll, ...configBase],
|
|
82
|
+
plugins: {
|
|
83
|
+
'prefer-arrow': preferArrowPlugin
|
|
84
|
+
},
|
|
95
85
|
rules: {
|
|
96
86
|
camelcase: ['off'],
|
|
97
87
|
'no-extra-semi': ['off'],
|
|
98
88
|
'no-implied-eval': ['off'],
|
|
99
89
|
'no-loop-func': ['off'],
|
|
100
90
|
'no-useless-constructor': ['off'],
|
|
91
|
+
'sort-imports': ['off'],
|
|
92
|
+
|
|
101
93
|
'perfectionist/sort-imports': [
|
|
102
94
|
'error',
|
|
103
95
|
{
|
|
@@ -110,6 +102,7 @@ export const configRecommended = typescriptEslint.config({
|
|
|
110
102
|
]
|
|
111
103
|
}
|
|
112
104
|
],
|
|
105
|
+
|
|
113
106
|
'@angular-eslint/component-max-inline-declarations': ['off'],
|
|
114
107
|
'@angular-eslint/prefer-on-push-component-change-detection': ['off'],
|
|
115
108
|
'@angular-eslint/use-component-selector': ['off'],
|
|
@@ -160,7 +153,6 @@ export const configRecommended = typescriptEslint.config({
|
|
|
160
153
|
format: null
|
|
161
154
|
}
|
|
162
155
|
],
|
|
163
|
-
|
|
164
156
|
'@typescript-eslint/no-for-in-array': ['error'],
|
|
165
157
|
'@typescript-eslint/no-implied-eval': ['error'],
|
|
166
158
|
'@typescript-eslint/no-loop-func': ['error'],
|
|
@@ -176,6 +168,7 @@ export const configRecommended = typescriptEslint.config({
|
|
|
176
168
|
}
|
|
177
169
|
],
|
|
178
170
|
'@typescript-eslint/prefer-optional-chain': ['error'],
|
|
171
|
+
|
|
179
172
|
'prefer-arrow/prefer-arrow-functions': ['error']
|
|
180
173
|
}
|
|
181
174
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siemens/eslint-config-angular",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.3",
|
|
4
4
|
"description": "Configuration for linting Angular TypeScript and templates using Angular ESLint.",
|
|
5
5
|
"files": [
|
|
6
6
|
"*.mjs",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"@eslint/js": "^9.9.1",
|
|
35
35
|
"angular-eslint": "^18.1.0 || ^19.0.0",
|
|
36
36
|
"eslint": "^9.9.1",
|
|
37
|
-
"eslint-plugin-jsdoc": "^50.2.2",
|
|
38
37
|
"eslint-plugin-perfectionist": "^4.6.0",
|
|
39
38
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
40
39
|
"typescript-eslint": "^8.0.0"
|