-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to ESLint 9 for dev tooling
Lots of breaking changes in ESLint 9.
- Loading branch information
Showing
5 changed files
with
271 additions
and
372 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import eslint from "@eslint/js"; | ||
import node from "eslint-plugin-n"; | ||
import prettier from "eslint-plugin-prettier/recommended"; | ||
|
||
import globals from "globals"; | ||
|
||
export default [ | ||
eslint.configs.recommended, | ||
node.configs["flat/recommended"], | ||
prettier, | ||
{ | ||
ignores: ["/tmp"], | ||
languageOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
globals: { | ||
...globals.es2021, | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ["./test/test.js"], | ||
rules: { | ||
"node/no-extraneous-import": "off", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.