Skip to content

Commit f6dfcfd

Browse files
committed
feat!: @typescript-eslint/prefer-as-const
1 parent f0ad743 commit f6dfcfd

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

src/rules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export const tseslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
222222
'error',
223223
{ allowThrowingAny: false, allowThrowingUnknown: false },
224224
],
225+
'@typescript-eslint/prefer-as-const': ['error'],
225226
'@typescript-eslint/prefer-function-type': ['error'],
226227
'@typescript-eslint/prefer-includes': ['error'],
227228
'@typescript-eslint/prefer-nullish-coalescing': [

src/test/_expected-exported-value.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ export const expectedTseslintRules: Record<
392392
'error',
393393
{ allowThrowingAny: false, allowThrowingUnknown: false },
394394
],
395+
'@typescript-eslint/prefer-as-const': ['error'],
395396
'@typescript-eslint/prefer-function-type': ['error'],
396397
'@typescript-eslint/prefer-includes': ['error'],
397398
'@typescript-eslint/prefer-nullish-coalescing': [

src/test/_rules_to_consider.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ export const promiseRulesToConsider = [
183183

184184
export const tseslintRulesToConsider = [
185185
'@typescript-eslint/parameter-properties',
186-
'@typescript-eslint/prefer-as-const',
187186
'@typescript-eslint/prefer-destructuring',
188187
'@typescript-eslint/prefer-enum-initializers',
189188
'@typescript-eslint/prefer-find',

0 commit comments

Comments
 (0)