Skip to content

Commit

Permalink
chore(project): detect unresolved imports
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nikku authored and merge-me[bot] committed Oct 26, 2018
1 parent 8fa38dc commit b0ea76d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"plugins": [
"import"
],
"rules": {
"import/no-unresolved": "error"
}
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"chai": "^4.2.0",
"eslint": "^5.7.0",
"eslint-plugin-bpmn-io": "^0.6.0",
"eslint-plugin-import": "^2.14.0",
"istanbul-instrumenter-loader": "^3.0.1",
"jquery": "^3.3.1",
"karma": "^3.1.1",
Expand Down

0 comments on commit b0ea76d

Please sign in to comment.