@jkba/eslint-config-angular 1.4.1 → 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 +9 -1
  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': [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jkba/eslint-config-angular",
3
- "version": "1.4.1",
3
+ "version": "1.5.0",
4
4
  "description": "Opinionated ESLint config for Angular projects",
5
5
  "main": "index.js",
6
6
  "scripts": {