0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 19:28:55 +01:00
wagtail/prettier.config.js
Thibaud Colas 11ccf30f00
Add Prettier configuration & documentation (#7908)
- Install Prettier
- Add Prettier configuration
- Add git-blame-ignore-revs
- Clean up .editorconfig indent_style definition
- Clean up .editorconfig space definitions
- Add documentation for Prettier
- Add missing Prettier run-scripts
- Disable Prettier formatting in CI for now
2022-02-04 11:45:08 +00:00

19 lines
402 B
JavaScript

/**
* See https://prettier.io/docs/en/options.html.
*/
module.exports = {
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
endOfLine: 'lf',
htmlWhitespaceSensitivity: 'css',
jsxSingleQuote: false,
printWidth: 80,
proseWrap: 'preserve',
quoteProps: 'consistent',
semi: true,
singleQuote: true,
trailingComma: 'all',
};