Skip to content

Commit 7948253

Browse files
committed
fixup! feat(yarn-plugin-eslint): Yarn plugin with integrated ESLint command
1 parent baf61f4 commit 7948253

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

incubator/yarn-plugin-eslint/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
"email": "[email protected]"
1010
},
1111
"files": [
12-
"lib/**/*.d.ts",
13-
"lib/**/*.js"
12+
"lib/index.js"
1413
],
1514
"main": "lib/index.js",
16-
"types": "lib/index.d.ts",
1715
"repository": {
1816
"type": "git",
1917
"url": "https://github.com/microsoft/rnx-kit",

incubator/yarn-plugin-eslint/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ export class Lint extends BaseCommand {
2424
const configuration = await Configuration.find(cwd, this.context.plugins);
2525
const { project } = await Project.find(configuration, cwd);
2626

27-
await project.restoreInstallState({ restoreResolutions: false });
28-
2927
const [overrideConfigFile, overrideConfig] = await this.loadConfig(cwd);
3028

3129
const eslint = new ESLint({

test-repos/rnx-kit-workspaces.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"@rnx-kit/tsconfig": "packages/tsconfig",
4949
"@rnx-kit/typescript-service": "packages/typescript-service",
5050
"@rnx-kit/yarn-plugin-dynamic-extensions": "incubator/yarn-plugin-dynamic-extensions",
51+
"@rnx-kit/yarn-plugin-eslint": "incubator/yarn-plugin-eslint",
5152
"@rnx-kit/yarn-plugin-external-workspaces": "incubator/yarn-plugin-external-workspaces"
5253
}
5354
}

0 commit comments

Comments
 (0)