New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New: Implement DotCompat class #20
Conversation
Just pushed a new version where the contents of Still one open comment I need to investigate regarding the |
Co-authored-by: Brandon Mills <btmills@users.noreply.github.com>
Co-authored-by: Brandon Mills <btmills@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old config system is complex, so there are probably edge cases that this doesn't handle yet. I'm satisfied that this is good enough to address the vast majority of use cases. We can let actual usage reveal what other cases, if any, this needs to handle.
hey @nzakas is there anywhere (including source code) you could point me to that could tell me a little more about how this new "dot config" format works? I looked around for a bit but couldn't find much - my apologies if I missed something. |
This implements a new
DotCompat
class that translates between the ESLintRC-style configs and the new-style (which I'm now calling the "dot config" style). There are four main methods:config()
- translates an entire configenv()
- translates only environmentsextends()
- translates only extends fieldplugins()
- loads pluginsI think I got all of the cases, but do let me know if it seems like I missed anything.