prettier-plugin-svelte
console-logs some AST thing before it throws, and my vim plugin w0rp/ale
which is running Prettier, overwrites my code with this output. I can undo, but it's sort of scary. So I'm wondering, from the perspective of Prettier, is the fault with vim/ale, or should prettier-plugin-svelte
not print?
why is prettier formatting both the implementations differently —
type O1 = {
A: number
}
type O2 = {A: number}
type O1 = {
A: number;
};
type O2 = { A: number };
Hello. I'm new to prettier and I run to the problem with formatting my async / await functions. In eslint configuration I have this rule dissabled have rule space-before-function-paren but still prettier is formatting the code incorrectly.
Expected formating:
test('Refresh token', async() {
const response = await chakram.post(`/v2/sso/refresh`, {
refreshToken
})
Joi.assert(response.body, validators.responsePostRefresh)
})
Given:
test('Refresh token', async () {
const response = await chakram.post(`/v2/sso/refresh`, {
refreshToken
})
Joi.assert(response.body, validators.responsePostRefresh)
})
Can you help me to not have space between async and brackets. What Am I missing?
autocrlf
. Which is exactly what happened to me now.autocrlf
(unless this was changed recently too), so why oh why would you introduce conflicts with this only to protect from maybe 2% of Windows users who have their git settings wrong?