eslint-config-angular-strict 2.2.68 → 2.2.70
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.js +14 -13
- package/package.json +11 -11
package/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import angularTemplate from '@angular-eslint/eslint-plugin-template';
|
|
1
|
+
import angularEslintPlugin from '@angular-eslint/eslint-plugin';
|
|
3
2
|
import angularTemplateParser from '@angular-eslint/template-parser';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import angularTemplatePlugin from '@angular-eslint/eslint-plugin-template';
|
|
4
|
+
import importXPlugin from 'eslint-plugin-import-x';
|
|
6
5
|
import stylistic from '@stylistic/eslint-plugin';
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import tsEslintParser from '@typescript-eslint/parser';
|
|
7
|
+
import tsEslintPlugin from '@typescript-eslint/eslint-plugin';
|
|
8
|
+
import unicornPlugin from 'eslint-plugin-unicorn';
|
|
9
9
|
import { configs, rules } from 'eslint-config-airbnb-extended';
|
|
10
10
|
|
|
11
11
|
export default [
|
|
12
12
|
{
|
|
13
13
|
ignores: ['dist/**', 'node_modules/**'],
|
|
14
14
|
plugins: {
|
|
15
|
-
'@angular-eslint/template':
|
|
15
|
+
'@angular-eslint/template': angularTemplatePlugin,
|
|
16
16
|
'@stylistic': stylistic,
|
|
17
|
-
'@typescript-eslint':
|
|
18
|
-
'import-x':
|
|
17
|
+
'@typescript-eslint': tsEslintPlugin,
|
|
18
|
+
'import-x': importXPlugin,
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
|
|
22
22
|
...configs.base.all,
|
|
23
|
-
|
|
23
|
+
unicornPlugin.configs.all,
|
|
24
24
|
rules.base.importsStrict,
|
|
25
25
|
rules.typescript.typescriptEslintStrict,
|
|
26
26
|
|
|
27
27
|
// TypeScript files configuration
|
|
28
28
|
{
|
|
29
29
|
files: ['**/*.ts'],
|
|
30
|
-
languageOptions: { parser:
|
|
31
|
-
plugins: { '@angular-eslint':
|
|
30
|
+
languageOptions: { parser: tsEslintParser, parserOptions: { project: './tsconfig.json' } },
|
|
31
|
+
plugins: { '@angular-eslint': angularEslintPlugin },
|
|
32
32
|
rules: {
|
|
33
33
|
// Angular ESLint rules
|
|
34
34
|
'@angular-eslint/component-class-suffix': ['error', { suffixes: ['Component', 'Modal', 'Page'] }],
|
|
@@ -62,7 +62,6 @@ export default [
|
|
|
62
62
|
'@angular-eslint/relative-url-prefix': 'error',
|
|
63
63
|
'@angular-eslint/require-lifecycle-on-prototype': 'error',
|
|
64
64
|
'@angular-eslint/sort-lifecycle-methods': 'error',
|
|
65
|
-
'@angular-eslint/template/prefer-built-in-pipes': 'error',
|
|
66
65
|
'@angular-eslint/use-component-view-encapsulation': 'error',
|
|
67
66
|
'@angular-eslint/use-injectable-provided-in': 'error',
|
|
68
67
|
'@angular-eslint/use-lifecycle-interface': 'error',
|
|
@@ -70,6 +69,7 @@ export default [
|
|
|
70
69
|
|
|
71
70
|
// ESLint rules
|
|
72
71
|
'class-methods-use-this': 'off',
|
|
72
|
+
'complexity': ['error', { max: 25 }],
|
|
73
73
|
'max-lines': ['error', { max: 400, skipBlankLines: true, skipComments: true }],
|
|
74
74
|
'no-fallthrough': 'off',
|
|
75
75
|
'no-param-reassign': ['error', { props: false }],
|
|
@@ -170,6 +170,7 @@ export default [
|
|
|
170
170
|
'@angular-eslint/template/no-positive-tabindex': 'error',
|
|
171
171
|
'@angular-eslint/template/prefer-at-else': 'error',
|
|
172
172
|
'@angular-eslint/template/prefer-at-empty': 'error',
|
|
173
|
+
'@angular-eslint/template/prefer-built-in-pipes': 'error',
|
|
173
174
|
'@angular-eslint/template/prefer-contextual-for-variables': 'error',
|
|
174
175
|
'@angular-eslint/template/prefer-control-flow': 'error',
|
|
175
176
|
'@angular-eslint/template/prefer-self-closing-tags': 'error',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-angular-strict",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.70",
|
|
4
4
|
"description": "Modern ESLint configuration with strict rules for Angular development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -35,21 +35,21 @@
|
|
|
35
35
|
"test": "cd tests && yarn install && eslint . --format=stylish"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@angular-eslint/builder": "20.5.
|
|
39
|
-
"@angular-eslint/eslint-plugin": "20.5.
|
|
40
|
-
"@angular-eslint/eslint-plugin-template": "20.5.
|
|
41
|
-
"@angular-eslint/template-parser": "20.5.
|
|
38
|
+
"@angular-eslint/builder": "20.5.1",
|
|
39
|
+
"@angular-eslint/eslint-plugin": "20.5.1",
|
|
40
|
+
"@angular-eslint/eslint-plugin-template": "20.5.1",
|
|
41
|
+
"@angular-eslint/template-parser": "20.5.1",
|
|
42
42
|
"@stylistic/eslint-plugin": "5.5.0",
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "8.46.
|
|
44
|
-
"@typescript-eslint/parser": "8.46.
|
|
45
|
-
"@typescript-eslint/types": "8.46.
|
|
46
|
-
"@typescript-eslint/utils": "8.46.
|
|
47
|
-
"eslint": "9.
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "8.46.3",
|
|
44
|
+
"@typescript-eslint/parser": "8.46.3",
|
|
45
|
+
"@typescript-eslint/types": "8.46.3",
|
|
46
|
+
"@typescript-eslint/utils": "8.46.3",
|
|
47
|
+
"eslint": "9.39.1",
|
|
48
48
|
"eslint-config-airbnb-extended": "2.3.2",
|
|
49
49
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
50
50
|
"eslint-plugin-import-x": "4.16.1",
|
|
51
51
|
"eslint-plugin-unicorn": "62.0.0",
|
|
52
|
-
"typescript-eslint": "8.46.
|
|
52
|
+
"typescript-eslint": "8.46.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"typescript": "5.9.3"
|