Skip to content

Commit

Permalink
chore(eslint): Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 8, 2024
1 parent bbb94ba commit 0598ff9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 15 deletions.
12 changes: 0 additions & 12 deletions .eslintrc.cjs

This file was deleted.

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

export default [
{ languageOptions: { globals: globals.browser } },
{ ignores: ["src/*/libs"] },
pluginJs.configs.recommended,
eslintConfigPrettier,
{
rules: {
"no-unused-vars": "off",
"no-undef": "off",
},
},
];
20 changes: 17 additions & 3 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
"format": "prettier . --write"
},
"devDependencies": {
"@eslint/js": "9.2.0",
"eslint": "9.2.0",
"eslint-config-prettier": "9.1.0",
"globals": "15.1.0",
"prettier": "3.2.5"
}
}

0 comments on commit 0598ff9

Please sign in to comment.