eslint-config-angular-strict 2.2.66 → 2.2.68
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 +9 -4
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -23,8 +23,9 @@ export default [
|
|
|
23
23
|
eslintPluginUnicorn.configs.all,
|
|
24
24
|
rules.base.importsStrict,
|
|
25
25
|
rules.typescript.typescriptEslintStrict,
|
|
26
|
+
|
|
27
|
+
// TypeScript files configuration
|
|
26
28
|
{
|
|
27
|
-
// TypeScript files configuration
|
|
28
29
|
files: ['**/*.ts'],
|
|
29
30
|
languageOptions: { parser: tsParser, parserOptions: { project: './tsconfig.json' } },
|
|
30
31
|
plugins: { '@angular-eslint': angular },
|
|
@@ -55,11 +56,13 @@ export default [
|
|
|
55
56
|
'@angular-eslint/no-pipe-impure': 'error',
|
|
56
57
|
'@angular-eslint/no-queries-metadata-property': 'error',
|
|
57
58
|
'@angular-eslint/no-uncalled-signals': 'error',
|
|
59
|
+
'@angular-eslint/prefer-host-metadata-property': 'error',
|
|
58
60
|
'@angular-eslint/prefer-output-readonly': 'error',
|
|
59
61
|
'@angular-eslint/prefer-standalone': 'error',
|
|
60
62
|
'@angular-eslint/relative-url-prefix': 'error',
|
|
61
63
|
'@angular-eslint/require-lifecycle-on-prototype': 'error',
|
|
62
64
|
'@angular-eslint/sort-lifecycle-methods': 'error',
|
|
65
|
+
'@angular-eslint/template/prefer-built-in-pipes': 'error',
|
|
63
66
|
'@angular-eslint/use-component-view-encapsulation': 'error',
|
|
64
67
|
'@angular-eslint/use-injectable-provided-in': 'error',
|
|
65
68
|
'@angular-eslint/use-lifecycle-interface': 'error',
|
|
@@ -68,6 +71,7 @@ export default [
|
|
|
68
71
|
// ESLint rules
|
|
69
72
|
'class-methods-use-this': 'off',
|
|
70
73
|
'max-lines': ['error', { max: 400, skipBlankLines: true, skipComments: true }],
|
|
74
|
+
'no-fallthrough': 'off',
|
|
71
75
|
'no-param-reassign': ['error', { props: false }],
|
|
72
76
|
'no-plusplus': 'off',
|
|
73
77
|
'no-return-assign': 'off',
|
|
@@ -129,22 +133,23 @@ export default [
|
|
|
129
133
|
'@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }],
|
|
130
134
|
|
|
131
135
|
// Unicorn rules
|
|
132
|
-
'unicorn/consistent-function-scoping': '
|
|
136
|
+
'unicorn/consistent-function-scoping': ['error', { checkArrowFunctions: false }],
|
|
133
137
|
'unicorn/new-for-builtins': 'off',
|
|
134
138
|
'unicorn/no-abusive-eslint-disable': 'off',
|
|
135
139
|
'unicorn/no-array-for-each': 'off',
|
|
136
140
|
'unicorn/no-null': 'off',
|
|
137
141
|
'unicorn/no-useless-promise-resolve-reject': 'off',
|
|
138
142
|
'unicorn/prefer-top-level-await': 'off',
|
|
139
|
-
'unicorn/switch-case-braces': '
|
|
143
|
+
'unicorn/switch-case-braces': ['error', 'avoid'],
|
|
140
144
|
},
|
|
141
145
|
},
|
|
142
146
|
|
|
147
|
+
// HTML Template files configuration
|
|
143
148
|
{
|
|
144
|
-
// HTML Template files configuration
|
|
145
149
|
files: ['**/*.html'],
|
|
146
150
|
languageOptions: { parser: angularTemplateParser },
|
|
147
151
|
rules: {
|
|
152
|
+
// Angular ESLint rules
|
|
148
153
|
'@angular-eslint/template/attributes-order': ['error', { alphabetical: true }],
|
|
149
154
|
'@angular-eslint/template/banana-in-box': 'error',
|
|
150
155
|
'@angular-eslint/template/conditional-complexity': '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.68",
|
|
4
4
|
"description": "Modern ESLint configuration with strict rules for Angular development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"test": "cd tests && yarn install && eslint . --format=stylish"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@angular-eslint/builder": "20.
|
|
39
|
-
"@angular-eslint/eslint-plugin": "20.
|
|
40
|
-
"@angular-eslint/eslint-plugin-template": "20.
|
|
41
|
-
"@angular-eslint/template-parser": "20.
|
|
38
|
+
"@angular-eslint/builder": "20.5.0",
|
|
39
|
+
"@angular-eslint/eslint-plugin": "20.5.0",
|
|
40
|
+
"@angular-eslint/eslint-plugin-template": "20.5.0",
|
|
41
|
+
"@angular-eslint/template-parser": "20.5.0",
|
|
42
42
|
"@stylistic/eslint-plugin": "5.5.0",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "8.46.2",
|
|
44
44
|
"@typescript-eslint/parser": "8.46.2",
|