eslint-config-angular-strict 22.3.9 → 22.3.11
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 +3 -0
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -50,6 +50,7 @@ export default [
|
|
|
50
50
|
'complexity': ['error', { max: 25 }],
|
|
51
51
|
'max-depth': 'error',
|
|
52
52
|
'max-lines': ['error', { max: 425, skipBlankLines: true, skipComments: true }],
|
|
53
|
+
'max-lines-per-function': ['error', { IIFEs: true, max: 200, skipBlankLines: true, skipComments: true }], // extreme cases only, other limits bound the rest
|
|
53
54
|
'max-nested-callbacks': 'error',
|
|
54
55
|
'no-continue': 'off', // conflicts with unicorn/prefer-continue, which requires the early continue this rule forbids
|
|
55
56
|
'no-fallthrough': 'off',
|
|
@@ -298,6 +299,7 @@ export default [
|
|
|
298
299
|
'unicorn/no-for-each': 'off',
|
|
299
300
|
'unicorn/no-null': 'off',
|
|
300
301
|
'unicorn/no-this-outside-of-class': 'off',
|
|
302
|
+
'unicorn/no-unnecessary-array-flat-map': 'off', // `cond ? [x] : []` is the usual zero-or-one idiom, unwrapping it mixes objects and arrays
|
|
301
303
|
'unicorn/prefer-await': 'off',
|
|
302
304
|
'unicorn/prefer-combined-guards': ['error', { checkCompoundConditions: true }], // the base rule already merges simple consecutive guards, stay consistent
|
|
303
305
|
'unicorn/prefer-continue': ['error', { maximumStatements: 2 }], // two coupled statements read better wrapped than behind an inverted guard
|
|
@@ -333,6 +335,7 @@ export default [
|
|
|
333
335
|
'@angular-eslint/template/prefer-ngsrc': 'off',
|
|
334
336
|
|
|
335
337
|
// Unicorn rules
|
|
338
|
+
'unicorn/empty-brace-spaces': 'off', // crashes on template object literals: the Angular parser names them `Object`, like the JSON nodes it targets
|
|
336
339
|
'unicorn/no-empty-file': 'off',
|
|
337
340
|
'unicorn/no-incorrect-template-string-interpolation': 'off',
|
|
338
341
|
'unicorn/no-useless-template-literals': 'off',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-angular-strict",
|
|
3
|
-
"version": "22.3.
|
|
3
|
+
"version": "22.3.11",
|
|
4
4
|
"description": "Modern ESLint configuration with strict rules for Angular development.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@stylistic/eslint-plugin": "5.10.0",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "8.71.0",
|
|
44
44
|
"@typescript-eslint/parser": "8.71.0",
|
|
45
|
-
"eslint": "10.
|
|
46
|
-
"eslint-config-airbnb-extended": "3.
|
|
45
|
+
"eslint": "10.12.0",
|
|
46
|
+
"eslint-config-airbnb-extended": "3.3.0",
|
|
47
47
|
"eslint-plugin-import-x": "4.17.1",
|
|
48
48
|
"eslint-plugin-perfectionist": "5.12.1",
|
|
49
|
-
"eslint-plugin-unicorn": "
|
|
49
|
+
"eslint-plugin-unicorn": "77.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "6.0.3"
|