fisker Cheung
fisker Cheung
Currently, we first parse the whole file and find the suitable range to format, and reparse the text in range, but we lost context eg `yield` expression become top level...
Fixes #267
We should have better struct for case like this https://github.com/prettier/prettier/blob/811eb0a08505c2a1aad4ef9dfae6db8065063dd5/src/language-js/print/angular.js#L91 And this https://github.com/prettier/prettier/blob/811eb0a08505c2a1aad4ef9dfae6db8065063dd5/src/language-js/print/angular.js#L65
## Description Instead scanning license per entry, scan after all js entry bundled. ## Checklist - [ ] I’ve added tests to confirm my change works. - [ ] (If...
From my experience [autofix.ci](https://autofix.ci/) is a highly recommended tool to auto-fix Prettier format issues for PRs, we should consider documenting how to use it. Setup PR on our codebase https://github.com/prettier/prettier/pull/15749
**Prettier 3.3.2** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEABAZhCAhAhmAawHMAnCAVygBMkAbASyjgFpTcr6EYAKAYnQAMAgJQBuADpRJuAATBJMmQCN8xMpRoyMWPIVIVqEqAF8QAGhAQADjHrQAzslC4SZAO4AFFwkcpctN1wAT0cLJRJVOBgAZVwAWzgAGUY4ZHR-ezgwiMIo6Kt8RiJkGBJyLJBMuPoSsoq4AA8rOBJ6BNh-ABUWqBdOX3TaTIt7Ito4AEVyCHg0jIqAK3sG6LHJ6dmkQeGQAEcNuA8yK18QXHtmJjgqa-MQUtx6BigiAGEIOLjcZDPaWjvRi9xgBBGClehKcjwDwtZJMOZDCoACxgcVoAHUkfR4PYCmA4NEfNj6AA3bFBH5geyhEAk8oASWoXGiYFaNmB1GiMCC4wROysZEy6IiVh+ArgmRIJNSFkYkpgR1wRC+fIqBRIkp+42pdwFjBg6PoVBgSOQAA4BBYSHB9vRrYrld8tvMLDBcEpDcbTUgAEwWciZTrugYukBwOJKa43KiJXAvchKuAAMQgJC+YKKP1wUIgIGMxiAA) ```sh --parser less ``` **Input:** ```less @fooBackground:line-gradient(#f00); a { background: @fooBackground; } ``` **Output:** ```less @foobackground:line-gradient (#f00); a { background: @fooBackground; } ``` **Expected output:** ```less...
## Description It's common to tag the released version as `v1.0.0`, but we missed `v`. - babel https://github.com/babel/babel/tags - eslint https://github.com/eslint/eslint/tags Question: 1, should we fix it? 2, should we...
**Prettier 3.2.5** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEAzArlMMCW0AEqEEAFAJT7AA6U++ANtAOYD6jUr7nzbPXLUAIYBbOPgC8DPtI69Z-IaIB0ggEZgA2gAYAuvgA++yjTqnCxJPlWCATgBoTpgL4BuGk5B2QEAA65oAM7IoLY2EADuAAq2CEEogvThggCeQV6qNoJgANZwMADKInAAMjhQcMioCQFw6Zk5efk+WWVMyDA26LUgNcI47Z3dcAAePnA2OKKwCQAq40ITcHFV9DVeAa30cACK6BDwldXdAFYBw-mbO3sHSCtrIACO13CRYT5xIIIBALTlcAAmAM8IA6ghw9FaAGEIMJhIJkJ96PRgRsOFsAIIwDo4VToeCRcalcqHVbdAAWMGE9AA6mScPAAs0wHB8rF6TgAG705IIsABNIgDldACSUEBsHyYAmfnRYvyMGSWxJ9x8YRq1MyPgRqqW4w5FS8ZRqNhgr0ETDhyu6zRsxoR1lUcGRXlVZRg1Jw-xgZOQAA4tF4bHAnjgg2aLfDbkcvDA1B6vT6kAAmLzoGozNTLaMgODCR3-QH-YqCDjoc1wABiEBscKxrQRgjxEBATicQA) ```sh --parser babel ``` **Input:** ```jsx function foo() { long_long_long_long_long_long_name = long_long_long_long_long_name.abc[0] || { foo: bar, }; } ``` **Output:** ```jsx function foo() { long_long_long_long_long_long_name =...
## Description I have ```js "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" } ``` in all my packages. When using yarn berry, np throws a error, > External registry is not...
**What rule do you want to change?** `next-tick-style` **Does this change cause the rule to produce more or fewer warnings?** No. **How will the change be implemented? (New option, new...