Skip to content

Commit

Permalink
chore: upgrade to ESLint 9 for dev tooling
Browse files Browse the repository at this point in the history
Lots of breaking changes in ESLint 9.
  • Loading branch information
Trott committed Apr 13, 2024
1 parent 03b7a5c commit a213da9
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 372 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

23 changes: 0 additions & 23 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 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",
},
},
];
Loading

0 comments on commit a213da9

Please sign in to comment.