standardx icon indicating copy to clipboard operation
standardx copied to clipboard

resolve eslint config and plugins manually

Open Flet opened this issue 3 years ago • 4 comments

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?

Flet avatar Jun 15 '21 23:06 Flet

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.

Flet avatar Jun 16 '21 00:06 Flet

Solved this by deleting my old .eslintrc.js re-running yarn lint from the command line. Next automatically added the new eslintrc.json file

r3dm4n avatar Jun 19 '21 11:06 r3dm4n

Any progress on merging this? We are still stuck with #27

tcurdt avatar Aug 03 '21 20:08 tcurdt

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.

KidkArolis avatar Aug 07 '22 16:08 KidkArolis