not-an-aardvark / eslint-plugin-self

Allows ESLint plugins to lint themselves
MIT License
18 stars 4 forks source link

Not working with pnpm #7

Open mmkal opened 3 years ago

mmkal commented 3 years ago

Hi there - I'm trying to use this project in a repo that uses pnpm rather than yarn/npm. pnpm installs packages differently so the assumption that ../.. will find the correct module breaks down. In my case, the installed is located at /path/to/my/project/node_modules/.pnpm/eslint-plugin-self@1.2.1/node_modules/eslint-plugin-self/index.js.

Looks like #4 would likely fix.

meteorlxy commented 2 years ago

You can use "eslint-plugin-foo": "file:." directly in your project