Skip to content

Commit

Permalink
feat: no-magic-numbers.enforceConst: false
Browse files Browse the repository at this point in the history
closes #1786
  • Loading branch information
mightyiam committed Oct 5, 2024
1 parent d3c210a commit c711820
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ export const tseslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
ignoreArrayIndexes: false,
ignoreDefaultValues: false,
ignoreClassFieldInitialValues: false,
enforceConst: true,
// https://github.com/mightyiam/eslint-config-love/issues/1786
enforceConst: false,
detectObjects: true,
ignoreEnums: true,
ignoreNumericLiteralTypes: false,
Expand Down
2 changes: 1 addition & 1 deletion src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export const expectedTseslintRules: Record<
ignoreArrayIndexes: false,
ignoreDefaultValues: false,
ignoreClassFieldInitialValues: false,
enforceConst: true,
enforceConst: false,
detectObjects: true,
ignoreEnums: true,
ignoreNumericLiteralTypes: false,
Expand Down

0 comments on commit c711820

Please sign in to comment.