Skip to content

Commit

Permalink
(eslint) update config
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh committed May 7, 2024
1 parent ed9f93e commit c035564
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 21 deletions.
17 changes: 0 additions & 17 deletions .eslintrc.js

This file was deleted.

25 changes: 25 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import babelParser from "@babel/eslint-parser";

import globals from "globals";

export default [
{
languageOptions: {
parser: babelParser,
globals: {
...globals.browser,
...globals.node,
},
},
},
// Override the recommended config
{
files: ["**/test/**/*.{j,t}s?(x)"],
languageOptions: {
globals: {
...globals.mocha,
},
},
},

];
30 changes: 26 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"chai": "^4.2.0",
"dependency-check": "^4.1.0",
"eslint": "^9.2.0",
"globals": "^15.1.0",
"jsdoc": "^4.0.0",
"mocha": "^10.0.0",
"rimraf": "^5.0.0",
Expand Down

0 comments on commit c035564

Please sign in to comment.