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/eslint@8.28.0.patch | |
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/eslint@8.28.0.patch')
-rw-r--r-- | patches/eslint@8.28.0.patch | 45 |
1 files changed, 0 insertions, 45 deletions
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 |