eslint-config-angular-strict 22.3.10 → 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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -299,6 +299,7 @@ export default [
299
299
  'unicorn/no-for-each': 'off',
300
300
  'unicorn/no-null': 'off',
301
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
302
303
  'unicorn/prefer-await': 'off',
303
304
  'unicorn/prefer-combined-guards': ['error', { checkCompoundConditions: true }], // the base rule already merges simple consecutive guards, stay consistent
304
305
  'unicorn/prefer-continue': ['error', { maximumStatements: 2 }], // two coupled statements read better wrapped than behind an inverted guard
@@ -334,6 +335,7 @@ export default [
334
335
  '@angular-eslint/template/prefer-ngsrc': 'off',
335
336
 
336
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
337
339
  'unicorn/no-empty-file': 'off',
338
340
  'unicorn/no-incorrect-template-string-interpolation': 'off',
339
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.10",
3
+ "version": "22.3.11",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",
@@ -46,7 +46,7 @@
46
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": "76.0.0"
49
+ "eslint-plugin-unicorn": "77.0.0"
50
50
  },
51
51
  "devDependencies": {
52
52
  "typescript": "6.0.3"