Skip to content

Commit

Permalink
chore(deps): update eslint and prettier to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrdam committed Jun 26, 2024
1 parent d4112a8 commit a34b320
Show file tree
Hide file tree
Showing 4 changed files with 283 additions and 276 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

29 changes: 29 additions & 0 deletions eslint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const globals = require("globals");
const path = require("path");
const js = require("@eslint/js");
const FlatCompat = require("@eslint/eslintrc").FlatCompat;

const dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

module.exports = [
{
ignores: ["**/dist"],
},
...compat.extends("eslint:recommended", "prettier"),
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},

ecmaVersion: 2020,
sourceType: "commonjs",
},
}
];
Loading

0 comments on commit a34b320

Please sign in to comment.