Skip to content

Commit

Permalink
Update to latest ESLint v9 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
jstayton authored Aug 26, 2024
1 parent 54b8906 commit 92f6253
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 23 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

28 changes: 28 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import prettier from 'eslint-config-prettier'
import node from 'eslint-plugin-n'
import globals from 'globals'

export default [
{
languageOptions: {
globals: { ...globals.node },
},
},
{
ignores: ['docs'],
},
js.configs.recommended,
node.configs['flat/recommended'],
{
rules: {
'n/no-unsupported-features/node-builtins': [
'error',
{
ignores: ['test', 'test.describe', 'test.it'],
},
],
},
},
prettier,
]
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
"test": "node --test"
},
"devDependencies": {
"eslint": "^8.57.0",
"@eslint/js": "^9.9.1",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-n": "^17.9.0",
"eslint-plugin-n": "^17.10.2",
"globals": "^15.9.0",
"jsdoc": "^4.0.3",
"prettier": "3.3.2",
"release-it": "^17.4.0"
Expand Down

0 comments on commit 92f6253

Please sign in to comment.