aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-28 23:41:30 -0300
committerSebastian <sebasjm@gmail.com>2022-03-28 23:41:30 -0300
commitf1110e82de67d9b02550a6e42bed8a59346f0d0b (patch)
tree2876121c92f562afab1c78907e53e897757ad762 /.eslintrc.js
parente2651bdff2eac072ed2394f69e2cf59a8c53cdba (diff)
add eslint import rule
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 50146fe7b..5d6ba1e72 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,12 +1,11 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
- plugins: ["@typescript-eslint"],
+ plugins: ["import","@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
- "preact",
],
rules: {
"no-constant-condition": ["error", { "checkLoops": false }],
@@ -25,5 +24,6 @@ module.exports = {
"error",
{ functions: false, classes: false },
],
+ "import/extensions": ["error", "ignorePackages"],
},
};