code-style-conventions/prettier/index.js

44 lines
957 B
JavaScript

module.exports = {
// line length
printWidth: 100,
// indentation type
useTabs: false,
// whether to prefer ' over "
singleQuote: false,
// whether we want to quote props (only-if-they-have-a-dash)
quoteProps: "as-needed",
// add trailing comma's everwhere as long as it's supported by es5
trailingComma: "es5",
// space brackets method ( param1, param2 ) { }
bracketSpacing: true,
// places the > sign on a newline when closing a long html tag
jsxBracketSameLine: false,
// always add parentheses on arrow functions (x) => { }
arrowParens: "always",
// ignore pragma, run prettier on all files
requirePragma: false,
// preserve markdown text as-is
proseWrap: "preserve",
// make css leading in whitespace sensitivity
htmlWhitespaceSensitivity: "css",
// always end lines with lf
endOfLine: "lf",
// tabs are 2 spaces.
tabWidth: 2,
// always end statements with a semicolon
semi: true
};