add eslint import rule
This commit is contained in:
parent
e2651bdff2
commit
f1110e82de
@ -1,12 +1,11 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
root: true,
|
root: true,
|
||||||
parser: "@typescript-eslint/parser",
|
parser: "@typescript-eslint/parser",
|
||||||
plugins: ["@typescript-eslint"],
|
plugins: ["import","@typescript-eslint"],
|
||||||
extends: [
|
extends: [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
"plugin:@typescript-eslint/eslint-recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"preact",
|
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
"no-constant-condition": ["error", { "checkLoops": false }],
|
"no-constant-condition": ["error", { "checkLoops": false }],
|
||||||
@ -25,5 +24,6 @@ module.exports = {
|
|||||||
"error",
|
"error",
|
||||||
{ functions: false, classes: false },
|
{ functions: false, classes: false },
|
||||||
],
|
],
|
||||||
|
"import/extensions": ["error", "ignorePackages"],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user