Prettier 3.0.0
module.exports = {
semi: true,
singleQuote: true,
singleAttributePerLine: true,
trailingComma: 'es5',
printWidth: 120,
arrowParens: 'avoid',
endOfLine: 'lf',
overrides: [
{
files: '.prettierrc',
options: { parser: 'json' },
},
],
};
Input:
<!DOCTYPE html>
<html
lang="zh-Hans"
translate="no"
>
<head> </head>
<body></body>
</html>
Output:
<!doctype html>
<html
lang="zh-Hans"
translate="no"
>
<head> </head>
<body></body>
</html>
Expected behavior:
Please do not modify the DOCTYPE.
Prettier 3.0.0
Input:
Output:
Expected behavior:
Please do not modify the
DOCTYPE.