UNPKG

@nationalbankbelgium/code-style

Version:
94 lines (84 loc) 1.93 kB
module.exports = { /** * The line length where Prettier will try wrap. * Default: `80` * * See: https://prettier.io/docs/en/options.html#print-width */ printWidth: 140, /** * Number of spaces per indentation level. * Default: `2` * * See: https://prettier.io/docs/en/options.html#tab-width */ tabWidth: 4, /** * Indent with tabs instead of spaces. * Default: `false` * * https://prettier.io/docs/en/options.html#tabs */ useTabs: true, /** * Print trailing commas wherever possible when multi-line. * Default: `"es5"` * * See: https://prettier.io/docs/en/options.html#trailing-commas */ trailingComma: "none", /** * Print spaces between brackets. * Default: `true` * * See: https://prettier.io/docs/en/options.html#bracket-spacing */ bracketSpacing: true, /** * Which end of line characters to apply. * Default: `lf` * * See: https://prettier.io/docs/en/options.html#end-of-line */ endOfLine: "auto", /** * Include parentheses around a sole arrow function parameter. * Default: `"always"` * * See: https://prettier.io/docs/en/options.html#arrow-function-parentheses */ arrowParens: "always", /** * Control how Prettier formats quoted code embedded in the file. * Default: `"auto"` * * See: https://prettier.io/docs/en/options.html#embedded-language-formatting */ embeddedLanguageFormatting: "auto", /** * Enforce single attribute per line in HTML, Vue and JSX. * Default: `false` * * Valid options: * - `false` - Do not enforce single attribute per line. * - `true` - Enforce single attribute per line. * * See: https://prettier.io/docs/en/options#single-attribute-per-line */ singleAttributePerLine: false, overrides: [ { files: "*.{pcss,scss,css,json,md,yml}", options: { tabWidth: 2, useTabs: false } }, { files: "*.html", options: { parser: "angular" } } ] };