Skip to content

Commit

Permalink
Infrastructure: Upgrade to ESLint 9
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed May 7, 2024
1 parent 2b0095f commit 185dc21
Show file tree
Hide file tree
Showing 4 changed files with 244 additions and 282 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.js

This file was deleted.

26 changes: 26 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import js from "@eslint/js";
import globals from "globals";

export default [
js.configs.recommended,
{
languageOptions: {
globals: {
...globals.node,
},
parserOptions: {
ecmaVersion: "latest",
moduleType: "commonjs"
},
},
},
{
files: ["test/*.js"],
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
},
];
Loading

0 comments on commit 185dc21

Please sign in to comment.