eslint-config-angular-strict 22.3.12 → 22.6.0

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 -10
  2. package/package.json +5 -5
package/index.js CHANGED
@@ -30,7 +30,7 @@ export default [
30
30
  perfectionistPlugin.configs['recommended-natural'],
31
31
  rules.base.importsStrict,
32
32
  rules.typescript.typescriptEslintStrict,
33
- unicornPlugin.configs.all,
33
+ { ...unicornPlugin.configs.all, ignores: ['**/*.html'] }, // not built for Angular templates: nothing useful to report there, and several rules crash on their AST
34
34
 
35
35
  // TypeScript files configuration
36
36
  {
@@ -43,6 +43,7 @@ export default [
43
43
  '@angular-eslint/component-class-suffix': ['error', { suffixes: ['App', 'Component', 'Drawer', 'Modal', 'Page'] }],
44
44
  '@angular-eslint/component-selector': 'off',
45
45
  '@angular-eslint/prefer-on-push-component-change-detection': 'off',
46
+ '@angular-eslint/prefer-standalone': ['error', { allowExplicitStandalone: false }], // standalone is the default, an explicit `true` is noise
46
47
  '@angular-eslint/use-component-selector': 'off',
47
48
 
48
49
  // ESLint rules
@@ -333,15 +334,6 @@ export default [
333
334
  '@angular-eslint/template/no-call-expression': 'off',
334
335
  '@angular-eslint/template/no-inline-styles': 'off',
335
336
  '@angular-eslint/template/prefer-ngsrc': 'off',
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
339
- 'unicorn/no-empty-file': 'off',
340
- 'unicorn/no-incorrect-template-string-interpolation': 'off',
341
- 'unicorn/no-useless-template-literals': 'off',
342
- 'unicorn/prefer-string-raw': 'off',
343
- 'unicorn/single-line-block-comment-style': 'off',
344
- 'unicorn/template-indent': 'off',
345
337
  },
346
338
  },
347
339
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "22.3.12",
3
+ "version": "22.6.0",
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": "node scripts/check-rule-names.js && cd tests && yarn install && eslint . --format=stylish"
36
36
  },
37
37
  "dependencies": {
38
- "@angular-eslint/builder": "22.5.0",
39
- "@angular-eslint/eslint-plugin": "22.5.0",
40
- "@angular-eslint/eslint-plugin-template": "22.5.0",
41
- "@angular-eslint/template-parser": "22.5.0",
38
+ "@angular-eslint/builder": "22.6.0",
39
+ "@angular-eslint/eslint-plugin": "22.6.0",
40
+ "@angular-eslint/eslint-plugin-template": "22.6.0",
41
+ "@angular-eslint/template-parser": "22.6.0",
42
42
  "@stylistic/eslint-plugin": "5.10.0",
43
43
  "@typescript-eslint/eslint-plugin": "8.71.1",
44
44
  "@typescript-eslint/parser": "8.71.1",