From 8967362df76618186f39ed058376423ee4b006ef Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Thu, 25 Oct 2018 21:32:50 +0200 Subject: [PATCH] chore(project): detect unresolved lint rules This ensures we don't accidently require files in the lib directory via the global `lib` import. That stuff works during tests but does not work in the final bundle. Considerations: This plugin adds some runtime overhead to our linting process. --- lib/.eslintrc | 8 ++++++++ package.json | 1 + 2 files changed, 9 insertions(+) create mode 100644 lib/.eslintrc diff --git a/lib/.eslintrc b/lib/.eslintrc new file mode 100644 index 00000000..68555a9b --- /dev/null +++ b/lib/.eslintrc @@ -0,0 +1,8 @@ +{ + "plugins": [ + "import" + ], + "rules": { + "import/no-unresolved": "error" + } +} \ No newline at end of file diff --git a/package.json b/package.json index 363c1661..e13ed082 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "del": "^3.0.0", "eslint": "^5.7.0", "eslint-plugin-bpmn-io": "^0.6.0", + "eslint-plugin-import": "^2.14.0", "execa": "^1.0.0", "istanbul-instrumenter-loader": "^3.0.1", "karma": "^3.1.1",