diff options
Diffstat (limited to '.eslintrc.json')
-rw-r--r-- | .eslintrc.json | 22 |
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 + } + ] + } + ] } } |