standardx
standardx copied to clipboard
resolve eslint config and plugins manually
fixes #27
What is the purpose of this pull request? (put an "X" next to item)
[ ] Documentation update [💋] Bug fix [ ] New feature [ ] Other, please explain:
What changes did you make? (Give an overview)
- Resolve exact locations of extended config files.
- Add
resolvePluginsRelativeTo: true
to eslint config to ensure plugins resolve correctly.
Which issue (if any) does this pull request address? #27
Is there anything you'd like reviewers to focus on?
Well shoot. this seems to not work if there are any plugins specified in a local .eslintrc.json file. Its trying to resolve the plugins relative to the standardx __dirname
. Unfortunately not seeing a way to resolve individual plugins to with different paths.
Solved this by deleting my old .eslintrc.js re-running yarn lint from the command line. Next automatically added the new eslintrc.json file
Any progress on merging this? We are still stuck with #27
Might be possible to fix with the new FlatConfig .. https://eslint.org/blog/2022/08/new-config-system-part-2/ Of course, depends on how everything else will migrate to it.