upgrade dependencies

This commit is contained in:
Vendicated 2025-11-19 02:57:12 +01:00
parent ddc1b34150
commit f91c6d983a
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
12 changed files with 1070 additions and 761 deletions

View file

@ -90,7 +90,7 @@ export default tseslint.config(
"@stylistic/no-extra-semi": "error",
// TS Rules
"@stylistic/func-call-spacing": ["error", "never"],
"@stylistic/function-call-spacing": ["error", "never"],
// ESLint Rules
"yoda": "error",
@ -115,7 +115,7 @@ export default tseslint.config(
"no-useless-escape": [
"error",
{
"extra": "i"
"allowRegexCharacters": ["i"]
}
],
"no-fallthrough": "error",

View file

@ -40,49 +40,47 @@
"@vap/shiki": "0.10.5",
"fflate": "^0.8.2",
"gifenc": "github:mattdesl/gifenc#64842fca317b112a8590f8fef2bf3825da8f6fe3",
"monaco-editor": "^0.52.2",
"nanoid": "^5.1.5",
"monaco-editor": "^0.54.0",
"nanoid": "^5.1.6",
"virtual-merge": "^1.0.1"
},
"devDependencies": {
"@stylistic/eslint-plugin": "^4.2.0",
"@types/chrome": "^0.0.312",
"@types/diff": "^7.0.2",
"@types/lodash": "^4.17.14",
"@stylistic/eslint-plugin": "^5.6.0",
"@types/chrome": "^0.1.30",
"@types/lodash": "^4.17.20",
"@types/node": "^24.10.1",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"@types/yazl": "^2.4.5",
"@types/yazl": "^3.3.0",
"@vencord/discord-types": "link:packages/discord-types",
"diff": "^7.0.0",
"esbuild": "^0.25.1",
"eslint": "9.20.1",
"diff": "^8.0.2",
"esbuild": "^0.27.0",
"eslint": "9.39.1",
"eslint-import-resolver-alias": "^1.1.2",
"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-import-sort": "^12.1.1",
"eslint-plugin-unused-imports": "^4.1.4",
"eslint-plugin-unused-imports": "^4.3.0",
"highlight.js": "11.11.1",
"html-minifier-terser": "^7.2.0",
"moment": "^2.22.2",
"puppeteer-core": "^24.4.0",
"puppeteer-core": "^24.30.0",
"standalone-electron-types": "^34.2.0",
"stylelint": "^16.17.0",
"stylelint-config-standard": "^37.0.0",
"stylelint": "^16.25.0",
"stylelint-config-standard": "^39.0.1",
"ts-patch": "^3.3.0",
"ts-pattern": "^5.6.0",
"tsx": "^4.19.3",
"type-fest": "^4.38.0",
"tsx": "^4.20.6",
"type-fest": "^5.2.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.28.0",
"typescript-eslint": "^8.47.0",
"typescript-transform-paths": "^3.5.5",
"zip-local": "^0.3.5"
},
"packageManager": "pnpm@10.4.1",
"pnpm": {
"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"
},
"peerDependencyRules": {

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -339,7 +339,7 @@ page.on("console", async e => {
});
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.startsWith("Object") && !e.message.includes("Cannot find module") && !/^.{1,2}$/.test(e.message)) {

View file

@ -16,9 +16,12 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import type { MapValue } from "type-fest/source/entry";
export type Style = MapValue<typeof VencordStyles>;
export interface Style {
name: string;
source: string;
classNames: Record<string, string>;
dom: HTMLStyleElement | null;
}
export const styleMap = window.VencordStyles ??= new Map();

View file

@ -19,7 +19,7 @@
.vc-plugins-grid {
margin-top: 16px;
display: grid;
grid-gap: 16px;
gap: 16px;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

View file

@ -42,7 +42,7 @@
.vc-cloud-settings-sync-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 1em;
gap: 1em;
}
.vc-cloud-erase-data-danger-btn {

View file

@ -1,6 +1,6 @@
.vc-settings-theme-grid {
display: grid;
grid-gap: 16px;
gap: 16px;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
@ -49,4 +49,4 @@
}
--custom-button-button-md-height: 26px;
}
}

9
src/globals.d.ts vendored
View file

@ -16,6 +16,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import { Style } from "@api/Styles";
declare global {
/**
* 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 Vencord: typeof import("./Vencord");
export var VencordStyles: Map<string, {
name: string;
source: string;
classNames: Record<string, string>;
dom: HTMLStyleElement | null;
}>;
export var VencordStyles: Map<string, Style>;
export var appSettings: {
set(setting: string, v: any): void;
};

View file

@ -1,3 +1,3 @@
.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;
}

View file

@ -14,7 +14,7 @@
"esnext.symbol"
],
"module": "esnext",
"moduleResolution": "node",
"moduleResolution": "bundler",
"strict": true,
"noImplicitAny": false,
"target": "ESNEXT",