aboutsummaryrefslogtreecommitdiff
path: root/patches/eslint-plugin-path-alias@1.0.0.patch
blob: 49c46b3dd49b1fd6ab42a0f9e8cda3f4dd723b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
 				}