Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No support for .prettierrc.mjs #170

Open
Swivelgames opened this issue Oct 19, 2023 · 2 comments
Open

No support for .prettierrc.mjs #170

Swivelgames opened this issue Oct 19, 2023 · 2 comments

Comments

@Swivelgames
Copy link

My project uses .prettierrc.mjs for it's rc file, but it doesn't appear to be getting used by coc-prettier. When I format a document in VIM, it's markedly different than when running prettier from the console.

/** @type {import("prettier").Config} **/
const config = {
	arrowParens: "avoid",
	endOfLine: "lf",
	printWidth: 100,
	trailingComma: "all",
	useTabs: true,
};

export default config;
@joemckenney
Copy link
Contributor

This is because coc-prettier is on prettier 2.6.2. Support for esm module config files wasn't added until 3.0 https://prettier.io/blog/2023/07/05/3.0.0.html#api.

@joemckenney
Copy link
Contributor

#172

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants