Skip to content

Commit

Permalink
Resolve other plugins as siblings to this plugin (#342)
Browse files Browse the repository at this point in the history
Co-authored-by: Wei Wang <wei.wang@mavenclinic.com>
  • Loading branch information
onlywei and Wei Wang authored May 25, 2024
1 parent f61a6d4 commit 8cc5b7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-eels-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-jsonc": minor
---

Resolve other plugins relative to this one (as siblings)
2 changes: 2 additions & 0 deletions lib/utils/get-auto-jsonc-rules-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ function getConfigResolver(
"../../../conf/eslint-recommended.js",
),
eslintAllPath: require.resolve("../../../conf/eslint-all.js"),
// other plugins should be resolved as siblings to this one
resolvePluginsRelativeTo: resolve(__dirname, "../../../../../"),
});
return (configResolvers[cwd] = (filePath: string) => {
const absolutePath = resolve(cwd, filePath);
Expand Down

0 comments on commit 8cc5b7f

Please sign in to comment.