Skip to content

Commit aa4d888

Browse files
authored
feat(compat) add eslint-plugin-import compat (#3836)
1 parent ae041dd commit aa4d888

File tree

3 files changed

+69
-2
lines changed

3 files changed

+69
-2
lines changed

.pnp.cjs

Lines changed: 31 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarn/versions/5cf97250.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
releases:
2+
"@yarnpkg/cli": patch
3+
"@yarnpkg/plugin-compat": patch
4+
5+
declined:
6+
- "@yarnpkg/plugin-constraints"
7+
- "@yarnpkg/plugin-dlx"
8+
- "@yarnpkg/plugin-essentials"
9+
- "@yarnpkg/plugin-init"
10+
- "@yarnpkg/plugin-interactive-tools"
11+
- "@yarnpkg/plugin-nm"
12+
- "@yarnpkg/plugin-npm-cli"
13+
- "@yarnpkg/plugin-pack"
14+
- "@yarnpkg/plugin-patch"
15+
- "@yarnpkg/plugin-pnp"
16+
- "@yarnpkg/plugin-pnpm"
17+
- "@yarnpkg/plugin-stage"
18+
- "@yarnpkg/plugin-typescript"
19+
- "@yarnpkg/plugin-version"
20+
- "@yarnpkg/plugin-workspace-tools"
21+
- "@yarnpkg/builder"
22+
- "@yarnpkg/core"
23+
- "@yarnpkg/doctor"

packages/plugin-compat/sources/extensions.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,4 +710,19 @@ export const packageExtensions: Array<[string, PackageExtensionData]> = [
710710
jimp: optionalPeerDep,
711711
},
712712
}],
713+
// https://github.com/import-js/eslint-plugin-import/pull/2283
714+
[`eslint-module-utils@*`, {
715+
peerDependenciesMeta: {
716+
'eslint-import-resolver-node': optionalPeerDep,
717+
'eslint-import-resolver-typescript': optionalPeerDep,
718+
'eslint-import-resolver-webpack': optionalPeerDep,
719+
'@typescript-eslint/parser': optionalPeerDep,
720+
},
721+
}],
722+
// https://github.com/import-js/eslint-plugin-import/pull/2283
723+
[`eslint-plugin-import@*`, {
724+
peerDependenciesMeta: {
725+
'@typescript-eslint/parser': optionalPeerDep,
726+
},
727+
}],
713728
];

0 commit comments

Comments
 (0)