Skip to content

Commit 21c73db

Browse files
committedOct 7, 2024··
feat: enable unicorn consistent-existence-index-check & prefer-math-min-max
1 parent 4b2bc6a commit 21c73db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎src/configs/unicorn.ts

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const unicorn: Config[] = [
1010
rules: {
1111
'unicorn/catch-error-name': 'error',
1212
'unicorn/consistent-empty-array-spread': 'error',
13+
'unicorn/consistent-existence-index-check': 'error',
1314
'unicorn/consistent-function-scoping': [
1415
'error',
1516
{ checkArrowFunctions: false },
@@ -59,6 +60,7 @@ export const unicorn: Config[] = [
5960
'unicorn/prefer-dom-node-text-content': 'error',
6061
'unicorn/prefer-includes': 'error',
6162
'unicorn/prefer-keyboard-event-key': 'error',
63+
'unicorn/prefer-math-min-max': 'error',
6264
'unicorn/prefer-math-trunc': 'error',
6365
'unicorn/prefer-modern-dom-apis': 'error',
6466
'unicorn/prefer-modern-math-apis': 'error',

0 commit comments

Comments
 (0)
Please sign in to comment.