Skip to content

Commit

Permalink
refactor: re-activate unicorn/prefer-number-properties
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Sep 20, 2023
1 parent 69a1261 commit 46391f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ module.exports = {
'unicorn/no-useless-promise-resolve-reject': 'off',
'unicorn/no-useless-undefined': 'off',
'unicorn/prefer-module': 'off',
'unicorn/prefer-number-properties': 'off',
'unicorn/prefer-spread': 'off',
'unicorn/prefer-string-slice': 'off',
'unicorn/prefer-ternary': 'off',
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/alb-handler/src/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ export function callbackInsidePromiseHandler(event, context, callback) {
}

export const throwExceptionInPromiseHandler = async () => {
throw NaN
throw Number.NaN
}

export const throwExceptionInCallbackHandler = () => {
throw NaN
throw Number.NaN
}

export const NoAnswerInPromiseHandler = async () => {}
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/handler/src/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ export function callbackInsidePromiseHandler(event, context, callback) {
}

export const throwExceptionInPromiseHandler = async () => {
throw NaN
throw Number.NaN
}

export const throwExceptionInCallbackHandler = () => {
throw NaN
throw Number.NaN
}

export const NoAnswerInPromiseHandler = async () => {}
Expand Down

0 comments on commit 46391f1

Please sign in to comment.