aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json18
1 files changed, 17 insertions, 1 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 111648c..0eb6689 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -6,8 +6,22 @@
"@typescript-eslint",
"header",
"simple-import-sort",
- "unused-imports"
+ "unused-imports",
+ "path-alias"
],
+ "settings": {
+ "import/resolver": {
+ "alias": {
+ "map": [
+ ["@webpack", "./src/webpack"],
+ ["@webpack/common", "./src/webpack/common"],
+ ["@utils", "./src/utils"],
+ ["@api", "./src/api"],
+ ["@components", "./src/components"]
+ ]
+ }
+ }
+ },
"rules": {
// Since it's only been a month and Vencord has already been stolen
// by random skids who rebranded it to "AlphaCord" and erased all license
@@ -95,6 +109,8 @@
"unused-imports/no-unused-imports": "error",
+ "path-alias/no-relative": "error",
+
"@typescript-eslint/no-restricted-imports": [
"error",
{