WebUI: enforce using prefix operators via ESLint
Some checks failed
cpp.yaml / WebUI: enforce using prefix operators via ESLint (push) Failing after 0s
js.yaml / WebUI: enforce using prefix operators via ESLint (push) Failing after 0s
CI - macOS / Build (push) Has been cancelled
CI - Ubuntu / Build (push) Has been cancelled
CI - File health / Check (push) Has been cancelled
CI - Python / Check (push) Has been cancelled
CI - WebUI / Check (push) Has been cancelled
CI - Windows / Build (push) Has been cancelled

NPM has a bug that cannot fetch the plugin via git protocol:
https://github.com/npm/cli/issues/2610, so fetch a tarball instead.

PR #23110.
This commit is contained in:
Chocobo1 2025-08-18 03:05:25 +08:00 committed by GitHub
commit feacfb0627
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,7 @@
import Globals from "globals";
import Html from "eslint-plugin-html";
import Js from "@eslint/js";
import PluginQbtWebUI from "eslint-plugin-qbt-webui";
import PreferArrowFunctions from "eslint-plugin-prefer-arrow-functions";
import Stylistic from "@stylistic/eslint-plugin";
import * as RegexpPlugin from "eslint-plugin-regexp";
@ -23,6 +24,7 @@ export default [
},
plugins: {
Html,
PluginQbtWebUI,
PreferArrowFunctions,
RegexpPlugin,
Stylistic
@ -41,6 +43,7 @@ export default [
"prefer-template": "error",
"radix": "error",
"require-await": "error",
"PluginQbtWebUI/prefix-inc-dec-operators": "error",
"PreferArrowFunctions/prefer-arrow-functions": "error",
"Stylistic/no-extra-semi": "error",
"Stylistic/no-mixed-operators": [

View file

@ -15,6 +15,7 @@
"eslint": "*",
"eslint-plugin-html": "*",
"eslint-plugin-prefer-arrow-functions": "*",
"eslint-plugin-qbt-webui": "https://github.com/Chocobo1/eslint-plugin-qbt-webui/tarball/v1",
"eslint-plugin-regexp": "*",
"happy-dom": "*",
"html-validate": "*",