-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add lint.preview
#8002
Add lint.preview
#8002
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
PR Check ResultsEcosystem✅ ecosystem check detected no changes. |
Is it intentional that we have |
No. I can add it as part of this or another PR or you can add it. Let me know what you prefer |
d89b4b1
to
ad747f4
Compare
lint.preview
optionlint.preview
and format --preview
options
lint.preview
and format --preview
optionslint.preview
Actually, the CLI options are already supported. It's just that they were hidden until now (because we didn't support any preview styles) |
ad747f4
to
02c269e
Compare
🤦 should have checked, thanks |
Can you update the docs in |
fe03d95
to
499200f
Compare
02c269e
to
0817df9
Compare
Add a new `lint.preview` option that configures the preview mode for the linter only.
0817df9
to
463165c
Compare
I created #8032 for updating the documentation to unblock the code changes and get review feedback on the documentation. |
Summary
This PR adds a new
lint.preview
option similar toformat.preview
that controls whether preview mode is enabled for the linter.Closes #7649
Test Plan
I wrapped the
into_settings
of the formatter and linter indbg
expressions and verified that:lint.preview = true
-> Preview mode is enabled for the linter onlyformat.preview = true
-> Preview mode is enabled for the formatter onlypreview = true
-> Preview mode is enabled for both the linter and the formatter.--preview
overrides thepreview
,lint.preview
, andformat.preview
optionpreview = true
andlint.preview = false
enables preview for the formatter only (same test for the linter)