add eslint import rule

This commit is contained in:
Sebastian 2022-03-28 23:41:30 -03:00
parent e2651bdff2
commit f1110e82de
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -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"],
},
};