upgrade dependencies
This commit is contained in:
parent
ddc1b34150
commit
f91c6d983a
12 changed files with 1070 additions and 761 deletions
|
|
@ -90,7 +90,7 @@ export default tseslint.config(
|
||||||
"@stylistic/no-extra-semi": "error",
|
"@stylistic/no-extra-semi": "error",
|
||||||
|
|
||||||
// TS Rules
|
// TS Rules
|
||||||
"@stylistic/func-call-spacing": ["error", "never"],
|
"@stylistic/function-call-spacing": ["error", "never"],
|
||||||
|
|
||||||
// ESLint Rules
|
// ESLint Rules
|
||||||
"yoda": "error",
|
"yoda": "error",
|
||||||
|
|
@ -115,7 +115,7 @@ export default tseslint.config(
|
||||||
"no-useless-escape": [
|
"no-useless-escape": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
"extra": "i"
|
"allowRegexCharacters": ["i"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"no-fallthrough": "error",
|
"no-fallthrough": "error",
|
||||||
|
|
|
||||||
36
package.json
36
package.json
|
|
@ -40,49 +40,47 @@
|
||||||
"@vap/shiki": "0.10.5",
|
"@vap/shiki": "0.10.5",
|
||||||
"fflate": "^0.8.2",
|
"fflate": "^0.8.2",
|
||||||
"gifenc": "github:mattdesl/gifenc#64842fca317b112a8590f8fef2bf3825da8f6fe3",
|
"gifenc": "github:mattdesl/gifenc#64842fca317b112a8590f8fef2bf3825da8f6fe3",
|
||||||
"monaco-editor": "^0.52.2",
|
"monaco-editor": "^0.54.0",
|
||||||
"nanoid": "^5.1.5",
|
"nanoid": "^5.1.6",
|
||||||
"virtual-merge": "^1.0.1"
|
"virtual-merge": "^1.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@stylistic/eslint-plugin": "^4.2.0",
|
"@stylistic/eslint-plugin": "^5.6.0",
|
||||||
"@types/chrome": "^0.0.312",
|
"@types/chrome": "^0.1.30",
|
||||||
"@types/diff": "^7.0.2",
|
"@types/lodash": "^4.17.20",
|
||||||
"@types/lodash": "^4.17.14",
|
|
||||||
"@types/node": "^24.10.1",
|
"@types/node": "^24.10.1",
|
||||||
"@types/react": "^19.0.10",
|
"@types/react": "^19.0.10",
|
||||||
"@types/react-dom": "^19.0.4",
|
"@types/react-dom": "^19.0.4",
|
||||||
"@types/yazl": "^2.4.5",
|
"@types/yazl": "^3.3.0",
|
||||||
"@vencord/discord-types": "link:packages/discord-types",
|
"@vencord/discord-types": "link:packages/discord-types",
|
||||||
"diff": "^7.0.0",
|
"diff": "^8.0.2",
|
||||||
"esbuild": "^0.25.1",
|
"esbuild": "^0.27.0",
|
||||||
"eslint": "9.20.1",
|
"eslint": "9.39.1",
|
||||||
"eslint-import-resolver-alias": "^1.1.2",
|
"eslint-import-resolver-alias": "^1.1.2",
|
||||||
"eslint-plugin-path-alias": "2.1.0",
|
"eslint-plugin-path-alias": "2.1.0",
|
||||||
"eslint-plugin-react": "^7.37.3",
|
"eslint-plugin-react": "^7.37.5",
|
||||||
"eslint-plugin-simple-header": "^1.2.1",
|
"eslint-plugin-simple-header": "^1.2.1",
|
||||||
"eslint-plugin-simple-import-sort": "^12.1.1",
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
||||||
"eslint-plugin-unused-imports": "^4.1.4",
|
"eslint-plugin-unused-imports": "^4.3.0",
|
||||||
"highlight.js": "11.11.1",
|
"highlight.js": "11.11.1",
|
||||||
"html-minifier-terser": "^7.2.0",
|
"html-minifier-terser": "^7.2.0",
|
||||||
"moment": "^2.22.2",
|
"moment": "^2.22.2",
|
||||||
"puppeteer-core": "^24.4.0",
|
"puppeteer-core": "^24.30.0",
|
||||||
"standalone-electron-types": "^34.2.0",
|
"standalone-electron-types": "^34.2.0",
|
||||||
"stylelint": "^16.17.0",
|
"stylelint": "^16.25.0",
|
||||||
"stylelint-config-standard": "^37.0.0",
|
"stylelint-config-standard": "^39.0.1",
|
||||||
"ts-patch": "^3.3.0",
|
"ts-patch": "^3.3.0",
|
||||||
"ts-pattern": "^5.6.0",
|
"ts-pattern": "^5.6.0",
|
||||||
"tsx": "^4.19.3",
|
"tsx": "^4.20.6",
|
||||||
"type-fest": "^4.38.0",
|
"type-fest": "^5.2.0",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"typescript-eslint": "^8.28.0",
|
"typescript-eslint": "^8.47.0",
|
||||||
"typescript-transform-paths": "^3.5.5",
|
"typescript-transform-paths": "^3.5.5",
|
||||||
"zip-local": "^0.3.5"
|
"zip-local": "^0.3.5"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.4.1",
|
"packageManager": "pnpm@10.4.1",
|
||||||
"pnpm": {
|
"pnpm": {
|
||||||
"patchedDependencies": {
|
"patchedDependencies": {
|
||||||
"eslint@9.20.1": "patches/eslint@9.20.1.patch",
|
|
||||||
"eslint-plugin-path-alias@2.1.0": "patches/eslint-plugin-path-alias@2.1.0.patch"
|
"eslint-plugin-path-alias@2.1.0": "patches/eslint-plugin-path-alias@2.1.0.patch"
|
||||||
},
|
},
|
||||||
"peerDependencyRules": {
|
"peerDependencyRules": {
|
||||||
|
|
|
||||||
|
|
@ -1,49 +0,0 @@
|
||||||
diff --git a/lib/rules/no-useless-escape.js b/lib/rules/no-useless-escape.js
|
|
||||||
index 0e0f6f09f2c35f3276173c08f832cde9f2cf56a0..7dc22851715f3574d935f513c1b5e35552985711 100644
|
|
||||||
--- a/lib/rules/no-useless-escape.js
|
|
||||||
+++ b/lib/rules/no-useless-escape.js
|
|
||||||
@@ -65,13 +65,31 @@ module.exports = {
|
|
||||||
escapeBackslash: "Replace the `\\` with `\\\\` to include the actual backslash character."
|
|
||||||
},
|
|
||||||
|
|
||||||
- schema: []
|
|
||||||
+ schema: [{
|
|
||||||
+ type: "object",
|
|
||||||
+ properties: {
|
|
||||||
+ extra: {
|
|
||||||
+ type: "string",
|
|
||||||
+ default: ""
|
|
||||||
+ },
|
|
||||||
+ extraCharClass: {
|
|
||||||
+ type: "string",
|
|
||||||
+ default: ""
|
|
||||||
+ },
|
|
||||||
+ },
|
|
||||||
+ additionalProperties: false
|
|
||||||
+ }]
|
|
||||||
},
|
|
||||||
|
|
||||||
create(context) {
|
|
||||||
+ const options = context.options[0] || {};
|
|
||||||
+ const { extra, extraCharClass } = options;
|
|
||||||
const sourceCode = context.sourceCode;
|
|
||||||
const parser = new RegExpParser();
|
|
||||||
|
|
||||||
+ const NON_CHARCLASS_ESCAPES = union(REGEX_NON_CHARCLASS_ESCAPES, new Set(extra));
|
|
||||||
+ const CHARCLASS_ESCAPES = union(REGEX_GENERAL_ESCAPES, new Set(extraCharClass));
|
|
||||||
+
|
|
||||||
/**
|
|
||||||
* Reports a node
|
|
||||||
* @param {ASTNode} node The node to report
|
|
||||||
@@ -200,9 +218,9 @@ module.exports = {
|
|
||||||
let allowedEscapes;
|
|
||||||
|
|
||||||
if (characterClassStack.length) {
|
|
||||||
- allowedEscapes = unicodeSets ? REGEX_CLASSSET_CHARACTER_ESCAPES : REGEX_GENERAL_ESCAPES;
|
|
||||||
+ allowedEscapes = unicodeSets ? REGEX_CLASSSET_CHARACTER_ESCAPES : CHARCLASS_ESCAPES;
|
|
||||||
} else {
|
|
||||||
- allowedEscapes = REGEX_NON_CHARCLASS_ESCAPES;
|
|
||||||
+ allowedEscapes = NON_CHARCLASS_ESCAPES;
|
|
||||||
}
|
|
||||||
if (allowedEscapes.has(escapedChar)) {
|
|
||||||
return;
|
|
||||||
1708
pnpm-lock.yaml
generated
1708
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -339,7 +339,7 @@ page.on("console", async e => {
|
||||||
});
|
});
|
||||||
|
|
||||||
page.on("error", e => logStderr("[Error]", e.message));
|
page.on("error", e => logStderr("[Error]", e.message));
|
||||||
page.on("pageerror", e => {
|
page.on("pageerror", (e: any) => {
|
||||||
if (e.message.includes("Sentry successfully disabled")) return;
|
if (e.message.includes("Sentry successfully disabled")) return;
|
||||||
|
|
||||||
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module") && !/^.{1,2}$/.test(e.message)) {
|
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module") && !/^.{1,2}$/.test(e.message)) {
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,12 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { MapValue } from "type-fest/source/entry";
|
export interface Style {
|
||||||
|
name: string;
|
||||||
export type Style = MapValue<typeof VencordStyles>;
|
source: string;
|
||||||
|
classNames: Record<string, string>;
|
||||||
|
dom: HTMLStyleElement | null;
|
||||||
|
}
|
||||||
|
|
||||||
export const styleMap = window.VencordStyles ??= new Map();
|
export const styleMap = window.VencordStyles ??= new Map();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
.vc-plugins-grid {
|
.vc-plugins-grid {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 16px;
|
gap: 16px;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
.vc-cloud-settings-sync-grid {
|
.vc-cloud-settings-sync-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(3, 1fr);
|
||||||
grid-gap: 1em;
|
gap: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vc-cloud-erase-data-danger-btn {
|
.vc-cloud-erase-data-danger-btn {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
.vc-settings-theme-grid {
|
.vc-settings-theme-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-gap: 16px;
|
gap: 16px;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -49,4 +49,4 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
--custom-button-button-md-height: 26px;
|
--custom-button-button-md-height: 26px;
|
||||||
}
|
}
|
||||||
9
src/globals.d.ts
vendored
9
src/globals.d.ts
vendored
|
|
@ -16,6 +16,8 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { Style } from "@api/Styles";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
/**
|
/**
|
||||||
* This exists only at build time, so references to it in patches should insert it
|
* This exists only at build time, so references to it in patches should insert it
|
||||||
|
|
@ -45,12 +47,7 @@ declare global {
|
||||||
|
|
||||||
export var VencordNative: typeof import("./VencordNative").default;
|
export var VencordNative: typeof import("./VencordNative").default;
|
||||||
export var Vencord: typeof import("./Vencord");
|
export var Vencord: typeof import("./Vencord");
|
||||||
export var VencordStyles: Map<string, {
|
export var VencordStyles: Map<string, Style>;
|
||||||
name: string;
|
|
||||||
source: string;
|
|
||||||
classNames: Record<string, string>;
|
|
||||||
dom: HTMLStyleElement | null;
|
|
||||||
}>;
|
|
||||||
export var appSettings: {
|
export var appSettings: {
|
||||||
set(setting: string, v: any): void;
|
set(setting: string, v: any): void;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
.messagelogger-deleted {
|
.messagelogger-deleted {
|
||||||
background-color: hsla(var(--red-430-hsl, 0 85% 61%) / 15%) !important;
|
background-color: hsl(var(--red-430-hsl, 0 85% 61%) / 15%) !important;
|
||||||
}
|
}
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
"esnext.symbol"
|
"esnext.symbol"
|
||||||
],
|
],
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "bundler",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noImplicitAny": false,
|
"noImplicitAny": false,
|
||||||
"target": "ESNEXT",
|
"target": "ESNEXT",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue