Skip to content

Commit 8cc5b7f

Browse files
onlyweiWei Wang
and
Wei Wang
authoredMay 25, 2024··
Resolve other plugins as siblings to this plugin (#342)
Co-authored-by: Wei Wang <wei.wang@mavenclinic.com>
1 parent f61a6d4 commit 8cc5b7f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎.changeset/tasty-eels-watch.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"eslint-plugin-jsonc": minor
3+
---
4+
5+
Resolve other plugins relative to this one (as siblings)

‎lib/utils/get-auto-jsonc-rules-config/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ function getConfigResolver(
4747
"../../../conf/eslint-recommended.js",
4848
),
4949
eslintAllPath: require.resolve("../../../conf/eslint-all.js"),
50+
// other plugins should be resolved as siblings to this one
51+
resolvePluginsRelativeTo: resolve(__dirname, "../../../../../"),
5052
});
5153
return (configResolvers[cwd] = (filePath: string) => {
5254
const absolutePath = resolve(cwd, filePath);

0 commit comments

Comments
 (0)
Please sign in to comment.