Skip to content

Commit

Permalink
Update to latest ESLint v9 (#71)
Browse files Browse the repository at this point in the history
* Update to latest ESLint v9

* Tweak
  • Loading branch information
jstayton committed Aug 26, 2024
1 parent 25c05f6 commit 2e52303
Show file tree
Hide file tree
Showing 6 changed files with 377 additions and 402 deletions.
29 changes: 0 additions & 29 deletions .eslintrc.json

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
const js = require('@eslint/js')
const prettier = require('eslint-config-prettier')
const jest = require('eslint-plugin-jest')
const node = require('eslint-plugin-n')
const globals = require('globals')

module.exports = [
{
languageOptions: {
globals: { ...globals.node },
sourceType: 'commonjs',
},
},
js.configs.recommended,
node.configs['flat/recommended'],
prettier,
{
files: ['src/**/*.test.js'],
...jest.configs['flat/recommended'],
...jest.configs['flat/style'],
languageOptions: {
globals: { ...jest.environments.globals.globals },
},
},
]
Loading

0 comments on commit 2e52303

Please sign in to comment.