@bhsd/codemirror-mediawiki 2.25.1 → 2.25.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/linter.mjs +2 -2
- package/dist/main.min.js +14 -14
- package/dist/mw.min.js +16 -16
- package/dist/wiki.min.js +16 -16
- package/i18n/en.json +1 -1
- package/i18n/zh-hans.json +1 -1
- package/i18n/zh-hant.json +1 -1
- package/package.json +1 -1
package/dist/linter.mjs
CHANGED
|
@@ -51,7 +51,7 @@ ${sanitizeInlineStyle(childNodes[1].childNodes[0].data).replace(/\n/gu, " ")}
|
|
|
51
51
|
};
|
|
52
52
|
const getJsLinter = async () => {
|
|
53
53
|
var _a;
|
|
54
|
-
await loadScript("npm/eslint-
|
|
54
|
+
await loadScript("npm/@bhsd/eslint-browserify", "eslint");
|
|
55
55
|
const esLinter = new eslint.Linter(), conf = {
|
|
56
56
|
env: { browser: true, es2024: true },
|
|
57
57
|
parserOptions: { ecmaVersion: 15, sourceType: "module" }
|
|
@@ -103,7 +103,7 @@ const getCssLinter = async () => {
|
|
|
103
103
|
return linter;
|
|
104
104
|
};
|
|
105
105
|
const getLuaLinter = async () => {
|
|
106
|
-
await loadScript("npm/luacheck-browserify
|
|
106
|
+
await loadScript("npm/luacheck-browserify", "luacheck");
|
|
107
107
|
const luachecker = await luacheck(void 0);
|
|
108
108
|
return async (text) => (await luachecker.queue(text)).filter(({ severity }) => severity);
|
|
109
109
|
};
|