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.previewoption similar toformat.previewthat controls whether preview mode is enabled for the linter.Closes #7649
Test Plan
I wrapped the
into_settingsof the formatter and linter indbgexpressions 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.--previewoverrides thepreview,lint.preview, andformat.previewoptionpreview = trueandlint.preview = falseenables preview for the formatter only (same test for the linter)