Cyril Junod

Results comments of Cyril Junod

One more which I think is relevant to this bug ```javascript {/* comment */ } ``` transforms to ```javascript {} ; ```

@vjeux none I'm aware of Let's pull @esbenp in

@lydell Thanks for the tip. I'll update original post accordingly. I've tested with `[email protected]` for the record.

That would be neat. I've currently disabled those json/graphql/postcss as rangeFormatting in the prettier-vscode release I'm working on.

Could you reopen please. Repro on prettier [here](https://prettier.io/#%7B%22content%22%3A%22%7B%5C%22a%5C%22%3A1%2C%5Cn%20%20%5C%22b%5C%22%3A2%7D%22%2C%22options%22%3A%7B%22printWidth%22%3A80%2C%22tabWidth%22%3A2%2C%22singleQuote%22%3Afalse%2C%22trailingComma%22%3A%22all%22%2C%22bracketSpacing%22%3Atrue%2C%22jsxBracketSameLine%22%3Afalse%2C%22parser%22%3A%22json%22%2C%22semi%22%3Atrue%2C%22useTabs%22%3Afalse%2C%22doc%22%3Afalse%2C%22ast%22%3Afalse%7D%7D) and with the cli `echo -e '{"a":1,\n"b":2}'|prettier --trailing-comma all --parser json` ```json { "a": 1, "b": 2, } ``` As a side...

You should write **strict** JSON. The error you have is missing quotes `"`. `ignoreAtRules` -> `"ignoreAtRules"` You should also replace single-quotes in the array and quote strings. And remove trailing...

In core: - [flow parser](https://prettier.io/playground/#%7B%22content%22%3A%22(%7Bx%3D1%7D%3D%7B%7D)%22%2C%22options%22%3A%7B%22printWidth%22%3A80%2C%22tabWidth%22%3A2%2C%22singleQuote%22%3Afalse%2C%22trailingComma%22%3A%22none%22%2C%22bracketSpacing%22%3Atrue%2C%22jsxBracketSameLine%22%3Afalse%2C%22parser%22%3A%22flow%22%2C%22semi%22%3Atrue%2C%22useTabs%22%3Afalse%2C%22doc%22%3Afalse%2C%22ast%22%3Afalse%7D%7D) `({x=1}={})` -> Unexpected token first `=` - [typescript parser](https://prettier.io/playground/#%7B%22content%22%3A%22(%7Bx%3D1%7D%3D%7B%7D)%22%2C%22options%22%3A%7B%22printWidth%22%3A80%2C%22tabWidth%22%3A2%2C%22singleQuote%22%3Afalse%2C%22trailingComma%22%3A%22none%22%2C%22bracketSpacing%22%3Atrue%2C%22jsxBracketSameLine%22%3Afalse%2C%22parser%22%3A%22typescript%22%2C%22semi%22%3Atrue%2C%22useTabs%22%3Afalse%2C%22doc%22%3Afalse%2C%22ast%22%3Afalse%7D%7D) `({x=1}={})` -> `({ x } = {});` missing default value. - As expected with [babylon](https://prettier.io/playground/#%7B%22content%22%3A%22(%7Bx%3D1%7D%3D%7B%7D)%22%2C%22options%22%3A%7B%22printWidth%22%3A80%2C%22tabWidth%22%3A2%2C%22singleQuote%22%3Afalse%2C%22trailingComma%22%3A%22none%22%2C%22bracketSpacing%22%3Atrue%2C%22jsxBracketSameLine%22%3Afalse%2C%22parser%22%3A%22babylon%22%2C%22semi%22%3Atrue%2C%22useTabs%22%3Afalse%2C%22doc%22%3Afalse%2C%22ast%22%3Afalse%7D%7D). `({x=1}={})`...

#2476 is not yet released, but it will allow comments in JSON. In the meantime, if you use prettier-vscode, you can disable prettier on JSON files and use the default...

I'd like to know who has admin rights on the repository? We will need to add collaborators (now and in the future) 😄

I've never done it, but I think it should be in your publishers. Yes, it is far from user-friendly. ![image](https://user-images.githubusercontent.com/1453420/28960409-d11ae41a-78fe-11e7-8bdd-467497c495b1.png) https://marketplace.visualstudio.com/manage/publishers/esbenp