eslint-config-angular-strict 22.2.3 → 22.2.5

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 +1 -1
package/index.js CHANGED
@@ -124,6 +124,7 @@ export default [
124
124
  { selector: 'parameter', format: ['camelCase'], trailingUnderscore: 'allowSingleOrDouble' },
125
125
  { selector: 'typeLike', format: ['PascalCase'] },
126
126
  { selector: 'typeProperty', format: ['camelCase', 'snake_case'] },
127
+ { selector: 'typeProperty', format: null, modifiers: ['requiresQuotes'] },
127
128
  { selector: 'variable', format: ['UPPER_CASE'], modifiers: ['const', 'exported'] },
128
129
  { selector: 'variable', format: ['PascalCase'], filter: { regex: '[Tt]oken', match: true } },
129
130
  { selector: 'variable', format: ['camelCase'] },
@@ -295,6 +296,7 @@ export default [
295
296
  'unicorn/no-this-outside-of-class': 'off',
296
297
  'unicorn/prefer-await': 'off',
297
298
  'unicorn/prefer-includes-over-repeated-comparisons': ['error', { minimumComparisons: 6 }],
299
+ 'unicorn/prefer-number-coercion': 'off', // `Number()` reads a CSS length like `30.8px` as NaN, and Typed OM gives the declared ratio, not the used pixels
298
300
  'unicorn/prefer-split-limit': 'off',
299
301
  'unicorn/prefer-temporal': 'off',
300
302
  'unicorn/prefer-top-level-await': 'off',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-angular-strict",
3
- "version": "22.2.3",
3
+ "version": "22.2.5",
4
4
  "description": "Modern ESLint configuration with strict rules for Angular development.",
5
5
  "keywords": [
6
6
  "angular",