@siemens/eslint-config-angular 1.0.2 → 2.0.0-next.1
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 +11 -10
- package/package.json +2 -2
package/index.mjs
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import eslintJs from '@eslint/js';
|
|
6
6
|
import typescriptEslint from 'typescript-eslint';
|
|
7
7
|
import angularEslint from 'angular-eslint';
|
|
8
|
-
import importPlugin from 'eslint-plugin-import';
|
|
9
8
|
import jsdocPlugin from 'eslint-plugin-jsdoc';
|
|
9
|
+
import perfectionist from 'eslint-plugin-perfectionist';
|
|
10
10
|
import preferArrowPlugin from 'eslint-plugin-prefer-arrow';
|
|
11
11
|
|
|
12
12
|
// Keep in sync with eslint-config-typescript (except Angular stuff).
|
|
@@ -18,9 +18,9 @@ export const configBase = typescriptEslint.config({
|
|
|
18
18
|
...angularEslint.configs.tsRecommended
|
|
19
19
|
],
|
|
20
20
|
plugins: {
|
|
21
|
-
'import': importPlugin,
|
|
22
21
|
'jsdoc': jsdocPlugin,
|
|
23
|
-
'prefer-arrow': preferArrowPlugin
|
|
22
|
+
'prefer-arrow': preferArrowPlugin,
|
|
23
|
+
perfectionist
|
|
24
24
|
},
|
|
25
25
|
languageOptions: {
|
|
26
26
|
parserOptions: {
|
|
@@ -109,17 +109,18 @@ export const configRecommended = typescriptEslint.config({
|
|
|
109
109
|
'no-implied-eval': ['off'],
|
|
110
110
|
'no-loop-func': ['off'],
|
|
111
111
|
'no-useless-constructor': ['off'],
|
|
112
|
-
'
|
|
112
|
+
'perfectionist/sort-imports': [
|
|
113
113
|
'error',
|
|
114
114
|
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
type: 'alphabetical',
|
|
116
|
+
order: 'asc',
|
|
117
|
+
newlinesBetween: 'always',
|
|
118
|
+
groups: [
|
|
119
|
+
['builtin', 'external'],
|
|
120
|
+
['parent', 'sibling', 'index']
|
|
121
|
+
]
|
|
120
122
|
}
|
|
121
123
|
],
|
|
122
|
-
|
|
123
124
|
'@angular-eslint/component-max-inline-declarations': ['off'],
|
|
124
125
|
'@angular-eslint/prefer-on-push-component-change-detection': ['off'],
|
|
125
126
|
'@angular-eslint/use-component-selector': ['off'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@siemens/eslint-config-angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-next.1",
|
|
4
4
|
"description": "Configuration for linting Angular TypeScript and templates using Angular ESLint.",
|
|
5
5
|
"files": [
|
|
6
6
|
"*.mjs",
|
|
@@ -34,8 +34,8 @@
|
|
|
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-import": "^2.26.0",
|
|
38
37
|
"eslint-plugin-jsdoc": "^50.2.2",
|
|
38
|
+
"eslint-plugin-perfectionist": "^4.6.0",
|
|
39
39
|
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
40
40
|
"typescript-eslint": "^8.0.0"
|
|
41
41
|
}
|