Skip to content

Commit 8b9754d

Browse files
Merge pull request #188 from pyscript/oxlint
removed eslint due CJS and vulnerabilities issues
2 parents ef9ac1f + cdde609 commit 8b9754d

9 files changed

Lines changed: 1368 additions & 1866 deletions

File tree

.eslintrc.json

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

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
.DS_Store
22
.nyc_output
3-
.eslintrc.json
3+
.oxlintrc.json
44
.github/
55
.travis.yml
6-
.eslintrc.json
76
*.log
87
coverage/
98
micropython/

.oxlintrc.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": [],
4+
"categories": {
5+
"correctness": "off"
6+
},
7+
"env": {
8+
"builtin": true,
9+
"es2026": true,
10+
"browser": true
11+
},
12+
"ignorePatterns": [
13+
"**/__template.js",
14+
"**/xworker.js",
15+
"esm/python/*.js",
16+
"esm/3rd-party/*",
17+
"esm/interpreter/pyodide_graph.js"
18+
],
19+
"rules": {
20+
"constructor-super": "error",
21+
"for-direction": "error",
22+
"getter-return": "error",
23+
"no-async-promise-executor": "error",
24+
"no-case-declarations": "error",
25+
"no-class-assign": "error",
26+
"no-compare-neg-zero": "error",
27+
"no-cond-assign": "error",
28+
"no-const-assign": "error",
29+
"no-constant-binary-expression": "error",
30+
"no-constant-condition": "error",
31+
"no-control-regex": "error",
32+
"no-debugger": "error",
33+
"no-delete-var": "error",
34+
"no-dupe-class-members": "error",
35+
"no-dupe-else-if": "error",
36+
"no-dupe-keys": "error",
37+
"no-duplicate-case": "error",
38+
"no-empty": "error",
39+
"no-empty-character-class": "error",
40+
"no-empty-pattern": "error",
41+
"no-empty-static-block": "error",
42+
"no-ex-assign": "error",
43+
"no-extra-boolean-cast": "error",
44+
"no-fallthrough": "error",
45+
"no-func-assign": "error",
46+
"no-global-assign": "error",
47+
"no-import-assign": "error",
48+
"no-invalid-regexp": "error",
49+
"no-irregular-whitespace": "error",
50+
"no-loss-of-precision": "error",
51+
"no-misleading-character-class": "error",
52+
"no-new-native-nonconstructor": "error",
53+
"no-nonoctal-decimal-escape": "error",
54+
"no-obj-calls": "error",
55+
"no-prototype-builtins": "error",
56+
"no-redeclare": "error",
57+
"no-regex-spaces": "error",
58+
"no-self-assign": "error",
59+
"no-setter-return": "error",
60+
"no-shadow-restricted-names": "error",
61+
"no-sparse-arrays": "error",
62+
"no-this-before-super": "error",
63+
"no-unassigned-vars": "error",
64+
"no-unexpected-multiline": "error",
65+
"no-unreachable": "error",
66+
"no-unsafe-finally": "error",
67+
"no-unsafe-negation": "error",
68+
"no-unsafe-optional-chaining": "error",
69+
"no-unused-labels": "error",
70+
"no-unused-private-class-members": "error",
71+
"no-unused-vars": "error",
72+
"no-useless-backreference": "error",
73+
"no-useless-catch": "error",
74+
"no-useless-escape": "error",
75+
"no-with": "error",
76+
"preserve-caught-error": "error",
77+
"require-yield": "error",
78+
"use-isnan": "error",
79+
"valid-typeof": "error"
80+
}
81+
}

.oxlintrc.json.bak

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": [],
4+
"categories": {
5+
"correctness": "off"
6+
},
7+
"env": {
8+
"builtin": true,
9+
"es2026": true,
10+
"browser": true
11+
},
12+
"ignorePatterns": [
13+
"**/__template.js",
14+
"**/xworker.js",
15+
"esm/python/*.js",
16+
"esm/3rd-party/*",
17+
"esm/interpreter/pyodide_graph.js"
18+
],
19+
"rules": {
20+
"constructor-super": "error",
21+
"for-direction": "error",
22+
"getter-return": "error",
23+
"no-async-promise-executor": "error",
24+
"no-case-declarations": "error",
25+
"no-class-assign": "error",
26+
"no-compare-neg-zero": "error",
27+
"no-cond-assign": "error",
28+
"no-const-assign": "error",
29+
"no-constant-binary-expression": "error",
30+
"no-constant-condition": "error",
31+
"no-control-regex": "error",
32+
"no-debugger": "error",
33+
"no-delete-var": "error",
34+
"no-dupe-class-members": "error",
35+
"no-dupe-else-if": "error",
36+
"no-dupe-keys": "error",
37+
"no-duplicate-case": "error",
38+
"no-empty": "error",
39+
"no-empty-character-class": "error",
40+
"no-empty-pattern": "error",
41+
"no-empty-static-block": "error",
42+
"no-ex-assign": "error",
43+
"no-extra-boolean-cast": "error",
44+
"no-fallthrough": "error",
45+
"no-func-assign": "error",
46+
"no-global-assign": "error",
47+
"no-import-assign": "error",
48+
"no-invalid-regexp": "error",
49+
"no-irregular-whitespace": "error",
50+
"no-loss-of-precision": "error",
51+
"no-misleading-character-class": "error",
52+
"no-new-native-nonconstructor": "error",
53+
"no-nonoctal-decimal-escape": "error",
54+
"no-obj-calls": "error",
55+
"no-prototype-builtins": "error",
56+
"no-redeclare": "error",
57+
"no-regex-spaces": "error",
58+
"no-self-assign": "error",
59+
"no-setter-return": "error",
60+
"no-shadow-restricted-names": "error",
61+
"no-sparse-arrays": "error",
62+
"no-this-before-super": "error",
63+
"no-unassigned-vars": "error",
64+
"no-unexpected-multiline": "error",
65+
"no-unreachable": "error",
66+
"no-unsafe-finally": "error",
67+
"no-unsafe-negation": "error",
68+
"no-unsafe-optional-chaining": "error",
69+
"no-unused-labels": "error",
70+
"no-unused-private-class-members": "error",
71+
"no-unused-vars": "error",
72+
"no-useless-backreference": "error",
73+
"no-useless-catch": "error",
74+
"no-useless-escape": "error",
75+
"no-with": "error",
76+
"preserve-caught-error": "error",
77+
"require-yield": "error",
78+
"use-isnan": "error",
79+
"valid-typeof": "error"
80+
}
81+
}

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.

eslint.config.mjs

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

0 commit comments

Comments
 (0)