Skip to content

Commit fb55061

Browse files
committed
updated eslint, babel, husky
1 parent 470a5ad commit fb55061

File tree

4 files changed

+520
-481
lines changed

4 files changed

+520
-481
lines changed

.eslintrc

Lines changed: 0 additions & 20 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import globals from "globals";
3+
4+
export default defineConfig([globalIgnores(["src/**/*.test.js"]), {
5+
languageOptions: {
6+
globals: {
7+
...globals.browser,
8+
...globals.node,
9+
Atomics: "readonly",
10+
SharedArrayBuffer: "readonly",
11+
},
12+
13+
ecmaVersion: 8,
14+
sourceType: "commonjs",
15+
},
16+
17+
rules: {
18+
"no-unused-vars": ["warn", {
19+
argsIgnorePattern: "^_",
20+
varsIgnorePattern: "^_",
21+
}],
22+
},
23+
}]);

0 commit comments

Comments
 (0)