diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-28 13:58:14 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-28 13:59:53 +0100 |
commit | a0a1a4d139b6408419cd564611c26bd0dbade145 (patch) | |
tree | fec1171f5208c500843412cdcc87dcd9da9de538 /patches/eslint-plugin-path-alias@1.0.0.patch | |
parent | bad96b78879f296d5b9e7adacb03756b0f58427a (diff) | |
download | Vencord-a0a1a4d139b6408419cd564611c26bd0dbade145.tar.gz Vencord-a0a1a4d139b6408419cd564611c26bd0dbade145.tar.bz2 Vencord-a0a1a4d139b6408419cd564611c26bd0dbade145.zip |
enforce path aliases with eslint
Diffstat (limited to 'patches/eslint-plugin-path-alias@1.0.0.patch')
-rw-r--r-- | patches/eslint-plugin-path-alias@1.0.0.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/eslint-plugin-path-alias@1.0.0.patch b/patches/eslint-plugin-path-alias@1.0.0.patch new file mode 100644 index 0000000..49c46b3 --- /dev/null +++ b/patches/eslint-plugin-path-alias@1.0.0.patch @@ -0,0 +1,13 @@ +diff --git a/lib/rules/no-relative.js b/lib/rules/no-relative.js +index 71594c83f1f4f733ffcc6047d7f7084348335dbe..d8623d87c89499c442171db3272cba07c9efabbe 100644 +--- a/lib/rules/no-relative.js ++++ b/lib/rules/no-relative.js +@@ -41,7 +41,7 @@ module.exports = { + ImportDeclaration(node) { + const importPath = node.source.value; + +- if (!/^(\.?\.\/)/.test(importPath)) { ++ if (!/^(\.\.\/)/.test(importPath)) { + return; + } +
\ No newline at end of file |