mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07:00
WebUI: enforce using prefix operators via ESLint
NPM has a bug that cannot fetch the plugin via git protocol: https://github.com/npm/cli/issues/2610, so fetch a tarball instead.
This commit is contained in:
parent
7a1a214f73
commit
718bfd2aaf
2 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
import Globals from "globals";
|
import Globals from "globals";
|
||||||
import Html from "eslint-plugin-html";
|
import Html from "eslint-plugin-html";
|
||||||
import Js from "@eslint/js";
|
import Js from "@eslint/js";
|
||||||
|
import PluginQbtWebUI from "eslint-plugin-qbt-webui";
|
||||||
import PreferArrowFunctions from "eslint-plugin-prefer-arrow-functions";
|
import PreferArrowFunctions from "eslint-plugin-prefer-arrow-functions";
|
||||||
import Stylistic from "@stylistic/eslint-plugin";
|
import Stylistic from "@stylistic/eslint-plugin";
|
||||||
import * as RegexpPlugin from "eslint-plugin-regexp";
|
import * as RegexpPlugin from "eslint-plugin-regexp";
|
||||||
|
@ -23,6 +24,7 @@ export default [
|
||||||
},
|
},
|
||||||
plugins: {
|
plugins: {
|
||||||
Html,
|
Html,
|
||||||
|
PluginQbtWebUI,
|
||||||
PreferArrowFunctions,
|
PreferArrowFunctions,
|
||||||
RegexpPlugin,
|
RegexpPlugin,
|
||||||
Stylistic
|
Stylistic
|
||||||
|
@ -41,6 +43,7 @@ export default [
|
||||||
"prefer-template": "error",
|
"prefer-template": "error",
|
||||||
"radix": "error",
|
"radix": "error",
|
||||||
"require-await": "error",
|
"require-await": "error",
|
||||||
|
"PluginQbtWebUI/prefix-inc-dec-operators": "error",
|
||||||
"PreferArrowFunctions/prefer-arrow-functions": "error",
|
"PreferArrowFunctions/prefer-arrow-functions": "error",
|
||||||
"Stylistic/no-extra-semi": "error",
|
"Stylistic/no-extra-semi": "error",
|
||||||
"Stylistic/no-mixed-operators": [
|
"Stylistic/no-mixed-operators": [
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
"eslint": "*",
|
"eslint": "*",
|
||||||
"eslint-plugin-html": "*",
|
"eslint-plugin-html": "*",
|
||||||
"eslint-plugin-prefer-arrow-functions": "*",
|
"eslint-plugin-prefer-arrow-functions": "*",
|
||||||
|
"eslint-plugin-qbt-webui": "https://github.com/Chocobo1/eslint-plugin-qbt-webui/tarball/v1",
|
||||||
"eslint-plugin-regexp": "*",
|
"eslint-plugin-regexp": "*",
|
||||||
"happy-dom": "*",
|
"happy-dom": "*",
|
||||||
"html-validate": "*",
|
"html-validate": "*",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue