Skip to content

Commit

Permalink
feat!: move prefer-enum-initializers and prefer-optional-chain to…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
targos committed Oct 5, 2024
1 parent 86a5295 commit 8ee892b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ export default tseslint.config(...cheminfoBase, {
'@typescript-eslint/no-useless-empty-export': 'error',
// Clashes with no-non-null-assertion.
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
'@typescript-eslint/prefer-enum-initializers': 'warn',
'@typescript-eslint/prefer-enum-initializers': 'error',
// TODO: enable when we are ready for it.

Check warning on line 61 in base.js

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Unexpected 'todo' comment: 'TODO: enable when we are ready for it.'
'@typescript-eslint/prefer-nullish-coalescing': 'off',
'@typescript-eslint/prefer-optional-chain': 'warn',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-regexp-exec': 'off',
'@typescript-eslint/require-array-sort-compare': 'error',
// We consider it valid to use `async` without `await` in some cases.
Expand Down

0 comments on commit 8ee892b

Please sign in to comment.