eslint-config-angular-strict 2.2.66 → 2.2.67

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 +7 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -23,8 +23,9 @@ export default [
23
23
  eslintPluginUnicorn.configs.all,
24
24
  rules.base.importsStrict,
25
25
  rules.typescript.typescriptEslintStrict,
26
+
27
+ // TypeScript files configuration
26
28
  {
27
- // TypeScript files configuration
28
29
  files: ['**/*.ts'],
29
30
  languageOptions: { parser: tsParser, parserOptions: { project: './tsconfig.json' } },
30
31
  plugins: { '@angular-eslint': angular },
@@ -68,6 +69,7 @@ export default [
68
69
  // ESLint rules
69
70
  'class-methods-use-this': 'off',
70
71
  'max-lines': ['error', { max: 400, skipBlankLines: true, skipComments: true }],
72
+ 'no-fallthrough': 'off',
71
73
  'no-param-reassign': ['error', { props: false }],
72
74
  'no-plusplus': 'off',
73
75
  'no-return-assign': 'off',
@@ -129,22 +131,23 @@ export default [
129
131
  '@typescript-eslint/unbound-method': ['error', { ignoreStatic: true }],
130
132
 
131
133
  // Unicorn rules
132
- 'unicorn/consistent-function-scoping': 'off',
134
+ 'unicorn/consistent-function-scoping': ['error', { checkArrowFunctions: false }],
133
135
  'unicorn/new-for-builtins': 'off',
134
136
  'unicorn/no-abusive-eslint-disable': 'off',
135
137
  'unicorn/no-array-for-each': 'off',
136
138
  'unicorn/no-null': 'off',
137
139
  'unicorn/no-useless-promise-resolve-reject': 'off',
138
140
  'unicorn/prefer-top-level-await': 'off',
139
- 'unicorn/switch-case-braces': 'off',
141
+ 'unicorn/switch-case-braces': ['error', 'avoid'],
140
142
  },
141
143
  },
142
144
 
145
+ // HTML Template files configuration
143
146
  {
144
- // HTML Template files configuration
145
147
  files: ['**/*.html'],
146
148
  languageOptions: { parser: angularTemplateParser },
147
149
  rules: {
150
+ // Angular ESLint rules
148
151
  '@angular-eslint/template/attributes-order': ['error', { alphabetical: true }],
149
152
  '@angular-eslint/template/banana-in-box': 'error',
150
153
  '@angular-eslint/template/conditional-complexity': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "2.2.66",
3
+ "version": "2.2.67",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",