However, I ran into the following error when using it in a Yarn 2 project.
Error: Failed to load plugin 'sort-keys-fix' declared in '.eslintrc.js': eslint-plugin-sort-keys-fix tried to access esutils, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
I have added these to the package.json. I mirrored exactly the versions that the require calls were actually resolving to, so this is why there are no changes to the yarn.lock file.
In the mean time, Yarn 2 users can add the following to their .yarnrc.yml
Thanks for the awesome plugin!
However, I ran into the following error when using it in a Yarn 2 project.
I have added these to the
package.json
. I mirrored exactly the versions that therequire
calls were actually resolving to, so this is why there are no changes to theyarn.lock
file.In the mean time, Yarn 2 users can add the following to their
.yarnrc.yml
https://yarnpkg.com/configuration/yarnrc#packageExtensions