Skip to content

Commit 25260c1

Browse files
committed
fixed latest JSLint issues and updated all dependencies
1 parent 7d65c91 commit 25260c1

File tree

7 files changed

+471
-748
lines changed

7 files changed

+471
-748
lines changed

docs/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/zip-DeHJVpeC.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/zip-DeHJVpeC.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eslint.config.mjs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import globals from "globals";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default defineConfig([globalIgnores([
17+
"**/__template.js",
18+
"**/xworker.js",
19+
"esm/python/*.js",
20+
"esm/3rd-party/*",
21+
"esm/interpreter/pyodide_graph.js",
22+
]), {
23+
extends: compat.extends("eslint:recommended"),
24+
25+
languageOptions: {
26+
globals: {
27+
...globals.browser,
28+
},
29+
30+
ecmaVersion: "latest",
31+
sourceType: "module",
32+
},
33+
34+
rules: {
35+
"object-curly-spacing": ["error", "always"],
36+
quotes: ["error", "single"],
37+
},
38+
}]);

0 commit comments

Comments
 (0)