Skip to content

Commit

Permalink
Disable resolving node_modules from the root of the repo (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrm007 committed Jul 6, 2023
1 parent 971455c commit 8fedc87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sixty-days-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-config-seek': patch
---

Disable resolving `node_modules` from the root of the repo. This is problematic for JavaScript-only monorepos (where there are multiple `node_modules` directories).
2 changes: 1 addition & 1 deletion base.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const baseConfig = {
settings: {
'import/resolver': {
node: {
moduleDirectory: [root, path.join(root, 'node_modules')],
moduleDirectory: [root, 'node_modules'],
},
},
},
Expand Down

0 comments on commit 8fedc87

Please sign in to comment.