aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package.json1
-rw-r--r--src/.eslintrc.json7
2 files changed, 8 insertions, 0 deletions
diff --git a/package.json b/package.json
index 106417d07..1bb21b7c9 100644
--- a/package.json
+++ b/package.json
@@ -30,6 +30,7 @@
"commitplease": "3.2.0",
"core-js-bundle": "3.0.0",
"eslint-config-jquery": "2.0.0",
+ "eslint-plugin-import": "2.18.2",
"grunt": "1.0.4",
"grunt-babel": "8.0.0",
"grunt-cli": "1.3.2",
diff --git a/src/.eslintrc.json b/src/.eslintrc.json
index 44cb3a179..4ac59e28b 100644
--- a/src/.eslintrc.json
+++ b/src/.eslintrc.json
@@ -8,6 +8,13 @@
"sourceType": "module"
},
+ "plugins": [ "import" ],
+
+ "rules": {
+ "import/extensions": [ "error", "always" ],
+ "import/no-cycle": "error"
+ },
+
"overrides": [
{
"files": "wrapper.js",