Skip to content

Commit

Permalink
feat!: @typescript-eslint/prefer-as-const
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Oct 16, 2024
1 parent f0ad743 commit f6dfcfd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export const tseslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
'error',
{ allowThrowingAny: false, allowThrowingUnknown: false },
],
'@typescript-eslint/prefer-as-const': ['error'],
'@typescript-eslint/prefer-function-type': ['error'],
'@typescript-eslint/prefer-includes': ['error'],
'@typescript-eslint/prefer-nullish-coalescing': [
Expand Down
1 change: 1 addition & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ export const expectedTseslintRules: Record<
'error',
{ allowThrowingAny: false, allowThrowingUnknown: false },
],
'@typescript-eslint/prefer-as-const': ['error'],
'@typescript-eslint/prefer-function-type': ['error'],
'@typescript-eslint/prefer-includes': ['error'],
'@typescript-eslint/prefer-nullish-coalescing': [
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export const promiseRulesToConsider = [

export const tseslintRulesToConsider = [
'@typescript-eslint/parameter-properties',
'@typescript-eslint/prefer-as-const',
'@typescript-eslint/prefer-destructuring',
'@typescript-eslint/prefer-enum-initializers',
'@typescript-eslint/prefer-find',
Expand Down

0 comments on commit f6dfcfd

Please sign in to comment.