From fa124d8877ff5f9927a6524768774d5e68b888cc Mon Sep 17 00:00:00 2001 From: Justice Almanzar Date: Thu, 10 Aug 2023 22:14:50 +0000 Subject: build: split preload & renderer.css into D. desktop / vesktop (#1629) --- patches/eslint-plugin-simple-header@1.0.1.patch | 13 ------- patches/eslint@8.28.0.patch | 45 ----------------------- patches/eslint@8.46.0.patch | 49 +++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 58 deletions(-) delete mode 100644 patches/eslint-plugin-simple-header@1.0.1.patch delete mode 100644 patches/eslint@8.28.0.patch create mode 100644 patches/eslint@8.46.0.patch (limited to 'patches') 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.28.0.patch deleted file mode 100644 index 994481b..0000000 --- a/patches/eslint@8.28.0.patch +++ /dev/null @@ -1,45 +0,0 @@ -diff --git a/lib/rules/no-useless-escape.js b/lib/rules/no-useless-escape.js -index 2046a148a17fd1d5f3a4bbc9f45f7700259d11fa..f4898c6b57355a4fd72c43a9f32bf1a36a6ccf4a 100644 ---- a/lib/rules/no-useless-escape.js -+++ b/lib/rules/no-useless-escape.js -@@ -97,12 +97,30 @@ 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.getSourceCode(); - -+ 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 diff --git a/patches/eslint@8.46.0.patch b/patches/eslint@8.46.0.patch new file mode 100644 index 0000000..c91e45d --- /dev/null +++ b/patches/eslint@8.46.0.patch @@ -0,0 +1,49 @@ +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; -- cgit