Skip to content

Commit a34b320

Browse files
committed
chore(deps): update eslint and prettier to latest version
1 parent d4112a8 commit a34b320

File tree

4 files changed

+283
-276
lines changed

4 files changed

+283
-276
lines changed

.eslintignore

-1
This file was deleted.

eslint.config.cjs

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const globals = require("globals");
2+
const path = require("path");
3+
const js = require("@eslint/js");
4+
const FlatCompat = require("@eslint/eslintrc").FlatCompat;
5+
6+
const dirname = path.dirname(__filename);
7+
const compat = new FlatCompat({
8+
baseDirectory: dirname,
9+
recommendedConfig: js.configs.recommended,
10+
allConfig: js.configs.all
11+
});
12+
13+
module.exports = [
14+
{
15+
ignores: ["**/dist"],
16+
},
17+
...compat.extends("eslint:recommended", "prettier"),
18+
{
19+
languageOptions: {
20+
globals: {
21+
...globals.node,
22+
...globals.mocha,
23+
},
24+
25+
ecmaVersion: 2020,
26+
sourceType: "commonjs",
27+
},
28+
}
29+
];

0 commit comments

Comments
 (0)