fisker Cheung
fisker Cheung
Have you try ```js require('@prettier/sync').resolveConfigFile() ``` ?
We can consider add it to options, but my reason is different. [This part](https://github.com/prettier/prettier/blob/678de0289cb8b75159febd078641ebfacfcff579/src/config/resolve-config.js#L67) is actually wrong, we should resolve plugin when we try to load.
@alexander-akait Personally, I use space around `/`. I did a search - [With space](https://sourcegraph.com/search?q=context:global+lang:css+/aspect-ratio:+%5Cd*+%5C/+%5Cd*/+-file:%5C.min%5C.css%24+count:all&patternType=standard&sm=1&groupBy=repo) - [Without space](https://sourcegraph.com/search?q=context:global+lang:css+/aspect-ratio:+%5Cd*%5C/%5Cd*/+-file:%5C.min%5C.css%24+count:all&patternType=standard&sm=1&groupBy=repo) ~It seems the space version is more popular?~ Update: No space version has...
I guess it's bug.
I'm working on adding support for ["Explicit Resource Management"](https://github.com/tc39/proposal-explicit-resource-management/) proposal in [Prettier](https://github.com/prettier/prettier/pull/13752/file), there are two tests added in [babel PR](https://github.com/babel/babel/pull/14968). ``` for await (using \u006ff of of); ``` ``` for...
Thanks for sharing more examples. > However, from ESTree's perspective, I don't think we should expand the AST. Yes, it's like `Property.shorthand` and `Literal.raw`, only useful for generator. But still...
FYI: Prettier is removing this option.
Put `{plugins: []}` in your `.prettierrc`.
If it doesn't work, it's bug in prettier, you can open an issue on prettier repo. You can also try ```js // prettier.config.cjs module.exports = { plugins: [require("your-plugin")] }; ```...
Use file path as we agreed https://github.com/prettier/prettier/issues/15879#issuecomment-1885212033