eslint-config-angular-strict 2.3.15 → 2.3.16
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.
- package/index.js +10 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -121,26 +121,26 @@ export default [
|
|
|
121
121
|
'@stylistic/padded-blocks': ['error', { blocks: 'never', classes: 'always', switches: 'never' }],
|
|
122
122
|
|
|
123
123
|
// TypeScript ESLint rules
|
|
124
|
-
'@typescript-eslint/consistent-type-assertions': [
|
|
124
|
+
'@typescript-eslint/consistent-type-assertions': [
|
|
125
|
+
'error',
|
|
126
|
+
{ arrayLiteralTypeAssertions: 'never', assertionStyle: 'as', objectLiteralTypeAssertions: 'never' },
|
|
127
|
+
],
|
|
125
128
|
'@typescript-eslint/consistent-type-imports': ['error', { prefer: 'no-type-imports' }],
|
|
126
129
|
'@typescript-eslint/member-ordering': ['error', { default: { order: 'natural-case-insensitive' } }],
|
|
127
130
|
'@typescript-eslint/naming-convention': [
|
|
128
131
|
'error',
|
|
129
|
-
{ selector: 'accessor', format: ['camelCase'], leadingUnderscore: 'forbid', modifiers: ['public'] },
|
|
130
|
-
{ selector: 'accessor', format: ['camelCase'], leadingUnderscore: 'require', modifiers: ['private'] },
|
|
131
|
-
{ selector: 'classProperty', format: ['camelCase'], leadingUnderscore: 'forbid', modifiers: ['public'] },
|
|
132
|
-
{ selector: 'classProperty', format: ['camelCase'], leadingUnderscore: 'require', modifiers: ['private'] },
|
|
133
132
|
{ selector: 'function', format: ['camelCase'] },
|
|
134
|
-
{ selector: 'import', format: ['camelCase'] },
|
|
133
|
+
{ selector: 'import', format: ['camelCase', 'PascalCase'] },
|
|
134
|
+
{ selector: 'memberLike', format: ['camelCase'], leadingUnderscore: 'forbid', modifiers: ['protected'] },
|
|
135
135
|
{ selector: 'memberLike', format: ['camelCase'], leadingUnderscore: 'forbid', modifiers: ['public'] },
|
|
136
136
|
{ selector: 'memberLike', format: ['camelCase'], leadingUnderscore: 'require', modifiers: ['private'] },
|
|
137
|
-
{ selector: 'method', format: ['camelCase'], leadingUnderscore: 'forbid', modifiers: ['public'] },
|
|
138
|
-
{ selector: 'method', format: ['camelCase'], leadingUnderscore: 'require', modifiers: ['private'] },
|
|
139
137
|
{ selector: 'objectLiteralProperty', format: null },
|
|
140
|
-
{ selector: 'parameter', format: ['camelCase'], trailingUnderscore: '
|
|
138
|
+
{ selector: 'parameter', format: ['camelCase'], trailingUnderscore: 'allowSingleOrDouble' },
|
|
141
139
|
{ selector: 'typeLike', format: ['PascalCase'] },
|
|
142
140
|
{ selector: 'typeProperty', format: ['camelCase'] },
|
|
143
|
-
{ selector: 'variable', format: ['
|
|
141
|
+
{ selector: 'variable', format: ['UPPER_CASE'], modifiers: ['const', 'exported'] },
|
|
142
|
+
{ selector: 'variable', format: ['PascalCase'], filter: { regex: '[Tt]oken', match: true } },
|
|
143
|
+
{ selector: 'variable', format: ['camelCase'] },
|
|
144
144
|
],
|
|
145
145
|
'@typescript-eslint/no-base-to-string': 'error',
|
|
146
146
|
'@typescript-eslint/no-dynamic-delete': 'error',
|