Skip to content

Commit

Permalink
feat: enable unicorn consistent-existence-index-check & `prefer-mat…
Browse files Browse the repository at this point in the history
…h-min-max`
  • Loading branch information
sxzz committed Oct 7, 2024
1 parent 4b2bc6a commit 21c73db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/configs/unicorn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const unicorn: Config[] = [
rules: {
'unicorn/catch-error-name': 'error',
'unicorn/consistent-empty-array-spread': 'error',
'unicorn/consistent-existence-index-check': 'error',
'unicorn/consistent-function-scoping': [
'error',
{ checkArrowFunctions: false },
Expand Down Expand Up @@ -59,6 +60,7 @@ export const unicorn: Config[] = [
'unicorn/prefer-dom-node-text-content': 'error',
'unicorn/prefer-includes': 'error',
'unicorn/prefer-keyboard-event-key': 'error',
'unicorn/prefer-math-min-max': 'error',
'unicorn/prefer-math-trunc': 'error',
'unicorn/prefer-modern-dom-apis': 'error',
'unicorn/prefer-modern-math-apis': 'error',
Expand Down

0 comments on commit 21c73db

Please sign in to comment.