Skip to content

Commit

Permalink
chore: fix eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
climba03003 committed Aug 8, 2024
1 parent 14f2797 commit 5d71b64
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

const globals = require('globals')
const js = require('@eslint/js')
const prettier = require('eslint-plugin-prettier/recommended')

module.exports = [
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
},
},
js.configs.recommended,
prettier,
]
2 changes: 1 addition & 1 deletion test/internal/watcherService.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class AsyncHookContainer {
const check = (t) => {
try {
return checkedTypes.includes(t)
} catch (err) {
} catch {
return false
}
}
Expand Down

0 comments on commit 5d71b64

Please sign in to comment.