diff options
author | Justice Almanzar <superdash993@gmail.com> | 2023-08-10 22:14:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-11 00:14:50 +0200 |
commit | fa124d8877ff5f9927a6524768774d5e68b888cc (patch) | |
tree | f63474d27c9efa434191eb6171fda483924e4a0a /patches | |
parent | 135da2a5f35e89bf04cb9a9b2d03f9bb7e48c65d (diff) | |
download | Vencord-fa124d8877ff5f9927a6524768774d5e68b888cc.tar.gz Vencord-fa124d8877ff5f9927a6524768774d5e68b888cc.tar.bz2 Vencord-fa124d8877ff5f9927a6524768774d5e68b888cc.zip |
build: split preload & renderer.css into D. desktop / vesktop (#1629)
Diffstat (limited to 'patches')
-rw-r--r-- | patches/eslint-plugin-simple-header@1.0.1.patch | 13 | ||||
-rw-r--r-- | patches/eslint@8.46.0.patch (renamed from patches/eslint@8.28.0.patch) | 40 |
2 files changed, 22 insertions, 31 deletions
diff --git a/patches/eslint-plugin-simple-header@1.0.1.patch b/patches/eslint-plugin-simple-header@1.0.1.patch deleted file mode 100644 index bb82fb1..0000000 --- a/patches/eslint-plugin-simple-header@1.0.1.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/src/index.js b/src/index.js -index e8a8ee34fbafe310c75e752d59ba3a56109d67f1..6aecfe40f863823c8b115bca00537fcd78934137 100644 ---- a/src/index.js -+++ b/src/index.js -@@ -95,7 +95,7 @@ function create(ctx) { - ?? [Array.isArray(options.text) ? options.text.join("\n") : options.text]; - - /** @type {string} */ -- const src = ctx.sourceCode.getText(); -+ const src = ctx.getSourceCode().getText(); - const srcHeader = findHeader(src, syntax); - const headers = rawHeaders.map((raw) => makeComment(raw, syntax, decor)); - const trailingLines = "\n".repeat(src.slice(srcHeader.length).trim() ? 1 + newlines : 1);
\ No newline at end of file diff --git a/patches/eslint@8.28.0.patch b/patches/eslint@8.46.0.patch index 994481b..c91e45d 100644 --- a/patches/eslint@8.28.0.patch +++ b/patches/eslint@8.46.0.patch @@ -1,11 +1,11 @@ diff --git a/lib/rules/no-useless-escape.js b/lib/rules/no-useless-escape.js -index 2046a148a17fd1d5f3a4bbc9f45f7700259d11fa..f4898c6b57355a4fd72c43a9f32bf1a36a6ccf4a 100644 +index 0e0f6f09f2c35f3276173c08f832cde9f2cf56a0..7dc22851715f3574d935f513c1b5e35552985711 100644 --- a/lib/rules/no-useless-escape.js +++ b/lib/rules/no-useless-escape.js -@@ -97,12 +97,30 @@ module.exports = { +@@ -65,13 +65,31 @@ module.exports = { escapeBackslash: "Replace the `\\` with `\\\\` to include the actual backslash character." }, - + - schema: [] + schema: [{ + type: "object", @@ -22,24 +22,28 @@ index 2046a148a17fd1d5f3a4bbc9f45f7700259d11fa..f4898c6b57355a4fd72c43a9f32bf1a3 + additionalProperties: false + }] }, - + create(context) { + const options = context.options[0] || {}; -+ const { extra, extraCharClass } = options || '' - const sourceCode = context.getSourceCode(); - -+ const NON_CHARCLASS_ESCAPES = union(REGEX_NON_CHARCLASS_ESCAPES, new Set(extra)) -+ const CHARCLASS_ESCAPES = union(REGEX_GENERAL_ESCAPES, new Set(extraCharClass)) ++ 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 -@@ -238,7 +256,7 @@ module.exports = { - .filter(charInfo => charInfo.escaped) - - // Filter out characters that are valid to escape, based on their position in the regular expression. -- .filter(charInfo => !(charInfo.inCharClass ? REGEX_GENERAL_ESCAPES : REGEX_NON_CHARCLASS_ESCAPES).has(charInfo.text)) -+ .filter(charInfo => !(charInfo.inCharClass ? CHARCLASS_ESCAPES : NON_CHARCLASS_ESCAPES).has(charInfo.text)) - - // Report all the remaining characters. - .forEach(charInfo => report(node, charInfo.index, charInfo.text));
\ No newline at end of file +@@ -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; |