We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
consistent-existence-index-check
prefer-math-min-max
1 parent 4b2bc6a commit 21c73dbCopy full SHA for 21c73db
src/configs/unicorn.ts
@@ -10,6 +10,7 @@ export const unicorn: Config[] = [
10
rules: {
11
'unicorn/catch-error-name': 'error',
12
'unicorn/consistent-empty-array-spread': 'error',
13
+ 'unicorn/consistent-existence-index-check': 'error',
14
'unicorn/consistent-function-scoping': [
15
'error',
16
{ checkArrowFunctions: false },
@@ -59,6 +60,7 @@ export const unicorn: Config[] = [
59
60
'unicorn/prefer-dom-node-text-content': 'error',
61
'unicorn/prefer-includes': 'error',
62
'unicorn/prefer-keyboard-event-key': 'error',
63
+ 'unicorn/prefer-math-min-max': 'error',
64
'unicorn/prefer-math-trunc': 'error',
65
'unicorn/prefer-modern-dom-apis': 'error',
66
'unicorn/prefer-modern-math-apis': 'error',
0 commit comments