Skip to content

Commit

Permalink
ignore 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Oct 23, 2024
1 parent 9dd8c70 commit 7199f93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ export const config = tseslint.config(eslint.configs.recommended, ...tseslint.co
],
'@typescript-eslint/no-extra-semi': 'off',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/no-magic-numbers': 'warn',
'@typescript-eslint/no-magic-numbers': [
'warn',
{
ignore: [0]
}
],
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
Expand Down
7 changes: 6 additions & 1 deletion eslint.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ export const config = tseslint.config(
],
'@typescript-eslint/no-extra-semi': 'off',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/no-magic-numbers': 'warn',
'@typescript-eslint/no-magic-numbers': [
'warn',
{
ignore: [0]
}
],
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
Expand Down

0 comments on commit 7199f93

Please sign in to comment.