fisker Cheung
fisker Cheung
I like the idea, but may it can be done by spellcheck?
I guess you mean forbid ```js const { a, b } = {...EXAMPLE}; ``` If `EXAMPLE` is unknown type, it can be nullish, and ``` const { a, b }...
Still not enough, `const { a, b } = {...EXAMPLE};` only access enumerable properties, but `const { a, b } = EXAMPLE;` access non-enumerable properties too, but maybe we can...
According to https://github.com/typescript-eslint/typescript-eslint/issues/11630#issuecomment-3337108888 Are we missing `RestElement`? (Babel can't parse as tested)
Personally I'm fine to add it. What I can't understand is why it's necessary to add a special script. Can't we try run "test" by default? Or can't we have...
No, I mean, the test should run `test` script by default, but run `test:js` for us. This should be done on ESLint side, not plugin side. Add a script that...
If you don't want consider it as line break, the `("\u2028")` case is incorrect then.
I thought we already did that, but as I checked, [it's not](https://github.com/prettier/prettier/blob/dde5a389e135b7cf0a23cffb063a370d440cf704/src/main/plugins/load-plugin.js#L40). It should be a bug.
This bug is not easy to fix, can't be fixed immediately. I suggest using the workaround @MattIPv4 suggested https://github.com/prettier/prettier/issues/17565#issuecomment-2949214831, or running Prettier from the config file for now.
Smaller **Prettier 3.6.2** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEAzCAnAFAbQLoSr4CUwAOlAASUCGANKgMwB0A5nDFjMcwM4dYANnWC9IABzhIYdALYcAFhAAmAORrykwhMvEQAlrAAicVDQCugmLyTK6yuJAw0Y+6DZoBfYhU8UKIHQgEOKu7sigNBgYEADuAApRCLzIIDSCsTQAnilBAEbOYADWHADKGnAAMoZwyGaC-EEQeQBWjjAA6s7iqeIYcPwYAG61+YUlMKXiNGCGrMgwGOZwQfyy+gtLKyBwAB6SGPrysOkA8gcumPEQvPphUKk6gTv7cIfHMOkAKm9QUfoDOrpRogW5QViCOAARXMEHgQIa2xavF2pTmkJhcNqSHqIIAjrD4PEYuIUigaLwALRQOBwBzKZ6LGj6QRzADCEFkshoqXSgmeYIhcAAgjBFvo8uYiW9qjSESCFDBZIIOgo7gNpmA4KVknd9EM7llUmBeLkQENlgBJKAOWClMCHULCm2lGBZSHy7Z9G5wLo0HooPoDN4jZ6GQYwYk0Vjcz1BaYYQapPI0PJwfnxw6wDr6ZQwBTIAAcAAYgv0Cfp+lGYzyccDtp88jm8wWkAAmILmfhfVNk3HbOCyNPKemVGjg8zRuAAMUw3LFc15UogIE8niAA) ```sh --parser babel ``` **Input:** ```jsx for([]of[]){ a,f3.get(t).set(l,{scope:t,methodName:l,endpointDefaults:d,decorations:a}) } ``` **Output:** ```jsx for ([] of []) { (a, f3 .get(t) .set(l, { scope: t, methodName:...