eslint-config-angular-strict 22.3.8 → 22.3.10

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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +3 -3
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',
@@ -145,7 +146,7 @@ export default [
145
146
  '@typescript-eslint/no-useless-default-assignment': 'error',
146
147
  '@typescript-eslint/prefer-readonly': 'error',
147
148
  '@typescript-eslint/promise-function-async': ['error', { checkArrowFunctions: false }],
148
- '@typescript-eslint/switch-exhaustiveness-check': 'error', // default-case forces a default, so TS can no longer flag a missing union member
149
+ '@typescript-eslint/switch-exhaustiveness-check': ['error', { considerDefaultExhaustiveForUnions: true }], // only `// no default` switches need every case
149
150
  '@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }],
150
151
 
151
152
  // Perfectionist rules
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "22.3.8",
3
+ "version": "22.3.10",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",
@@ -42,8 +42,8 @@
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.11.0",
46
- "eslint-config-airbnb-extended": "3.2.0",
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
49
  "eslint-plugin-unicorn": "76.0.0"