@jkba/eslint-config-angular 1.4.0 → 1.5.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/eslint.config.js +10 -2
  2. package/package.json +1 -1
package/eslint.config.js CHANGED
@@ -46,6 +46,7 @@ module.exports = {
46
46
  'no-warning-comments': [ 'error', { 'terms': ['todo', 'fixme'], 'location': 'anywhere' } ],
47
47
  'no-console': 'error',
48
48
  'prefer-template': 'error',
49
+ 'arrow-body-style': ['error', 'as-needed'],
49
50
 
50
51
  /**
51
52
  * Declaration sort is handled by import/order rule.
@@ -61,7 +62,14 @@ module.exports = {
61
62
 
62
63
  'rxjs-angular/prefer-async-pipe': 'warn',
63
64
  'rxjs-angular/prefer-composition': 'off', // I prefer takeUntilDestroyed() operator
64
- 'rxjs-angular/prefer-takeuntil': 'off', // I prefer takeUntilDestroyed() operator
65
+ 'rxjs-angular/prefer-takeuntil': [
66
+ 'warn',
67
+ {
68
+ alias: ['takeUntilDestroyed'],
69
+ checkDestroy: false,
70
+ checkComplete: false,
71
+ }
72
+ ],
65
73
 
66
74
  // Reference https://github.com/cartant/eslint-plugin-rxjs/blob/main/docs/rules/finnish.md
67
75
  'rxjs/finnish': [
@@ -168,7 +176,7 @@ module.exports = {
168
176
  ],
169
177
  plugins: ['@angular-eslint/template'],
170
178
  rules: {
171
- // '@angular-eslint/template/attributes-order': 'error', // TODO: Bug present (https://github.com/angular-eslint/angular-eslint/issues/1456)
179
+ '@angular-eslint/template/attributes-order': 'error',
172
180
  '@angular-eslint/template/no-inline-styles': 'warn', // For me, it is only a suggestion
173
181
  '@angular-eslint/template/conditional-complexity': [
174
182
  'error', { 'maxComplexity': 3 } // Max 3 is enough, create derived variable with proper naming
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jkba/eslint-config-angular",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "Opinionated ESLint config for Angular projects",
5
5
  "main": "index.js",
6
6
  "scripts": {