diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-08 00:29:15 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-02-08 00:29:15 -0500 |
commit | b71c4f69f1d74c2756fdcd77715089347e5e1989 (patch) | |
tree | da297f61334979f6eb8ae3f0decc79d24bda6ccb /.eslintrc.json | |
parent | 1f59d0f0545d9ba69165be6f718ceb08bf373c07 (diff) | |
download | tanzanite-b71c4f69f1d74c2756fdcd77715089347e5e1989.tar.gz tanzanite-b71c4f69f1d74c2756fdcd77715089347e5e1989.tar.bz2 tanzanite-b71c4f69f1d74c2756fdcd77715089347e5e1989.zip |
more eslint rules
Diffstat (limited to '.eslintrc.json')
-rw-r--r-- | .eslintrc.json | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json index d2b68f5..1d9ffcf 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -10,7 +10,7 @@ "sourceType": "module", "project": "./tsconfig.json" }, - "plugins": ["@typescript-eslint", "deprecation", "node"], + "plugins": ["@typescript-eslint", "deprecation", "node", "import"], "ignorePatterns": ["dist"], "rules": { "no-return-await": "off", @@ -61,6 +61,8 @@ "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"] }] + "node/file-extension-in-import": ["error", "always", { "tryExtensions": [".js", ".json"] }], + "import/no-commonjs": "error", + "import/extensions": ["error", "ignorePackages"] } } |