aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-13 20:39:09 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-02-13 20:39:09 -0500
commit3d0f8d6284fbff51881ba704f73765100ffc5f47 (patch)
tree43cd14b46b32583cea76b5e0edd709b1c8642636 /.eslintrc.json
parent6a7386a181e788927a4c04e5b39ac2a4275918b6 (diff)
downloadtanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.tar.gz
tanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.tar.bz2
tanzanite-3d0f8d6284fbff51881ba704f73765100ffc5f47.zip
started working on appeals
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json22
1 files changed, 19 insertions, 3 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 1d9ffcf..5209b65 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -10,7 +10,7 @@
"sourceType": "module",
"project": "./tsconfig.json"
},
- "plugins": ["@typescript-eslint", "deprecation", "node", "import"],
+ "plugins": ["@typescript-eslint", "deprecation", "import"],
"ignorePatterns": ["dist"],
"rules": {
"no-return-await": "off",
@@ -61,8 +61,24 @@
"deprecation/deprecation": "warn",
"@typescript-eslint/explicit-member-accessibility": ["warn", { "accessibility": "explicit" }],
"@typescript-eslint/switch-exhaustiveness-check": "warn",
- "node/file-extension-in-import": ["error", "always", { "tryExtensions": [".js", ".json"] }],
"import/no-commonjs": "error",
- "import/extensions": ["error", "ignorePackages"]
+ "import/extensions": ["error", "ignorePackages"],
+ "@typescript-eslint/no-restricted-imports": [
+ "error",
+ {
+ "paths": [
+ {
+ "name": "discord-api-types",
+ "message": "Please use discord-api-types/v9 instead.",
+ "allowTypeImports": true
+ },
+ {
+ "name": "discord-api-types-next",
+ "message": "Please use discord-api-types-next/v9 instead.",
+ "allowTypeImports": true
+ }
+ ]
+ }
+ ]
}
}