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.
This commit is contained in:
Nico Rehwaldt 2018-10-25 21:32:50 +02:00 committed by merge-me[bot]
parent 61ffd58328
commit 8967362df7
2 changed files with 9 additions and 0 deletions

8
lib/.eslintrc Normal file
View File

@ -0,0 +1,8 @@
{
"plugins": [
"import"
],
"rules": {
"import/no-unresolved": "error"
}
}

View File

@ -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",