Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 493961c

Browse files
committed
feat: linting test with eslint
1 parent 8ececf9 commit 493961c

File tree

4 files changed

+909
-86
lines changed

4 files changed

+909
-86
lines changed

eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const globals = require("globals");
2+
const pluginJs = require("@eslint/js");
3+
4+
module.exports = [
5+
{
6+
files: ["**/*.js"],
7+
languageOptions: {
8+
sourceType: "commonjs",
9+
globals: {
10+
__dirname: "readonly",
11+
__filename: "readonly",
12+
process: "readonly",
13+
},
14+
},
15+
plugins: {},
16+
rules: {
17+
"no-unused-vars": ["warn", { vars: "all", args: "none", ignoreRestSiblings: true }],
18+
},
19+
},
20+
{
21+
files: ["**/*.js"],
22+
languageOptions: {
23+
globals: globals.browser,
24+
},
25+
},
26+
pluginJs.configs.recommended,
27+
];

0 commit comments

Comments
 (0)