module.exports = { /** * Print Width * https://prettier.io/docs/en/options.html#print-width * * Specify the line length that the printer will wrap on. * * printWidth: * default: 80 */ // printWidth: 80, /** * Tab Width * https://prettier.io/docs/en/options.html#tab-width * * Specify the number of spaces per indentation-level. * * tabWidth: * default: 2 */ // tabWidth: 2, /** * Tabs * https://prettier.io/docs/en/options.html#tabs * * Indent lines with tabs instead of spaces. * * useTabs: * default: false */ // useTabs: false, /** * Semicolons * https://prettier.io/docs/en/options.html#semicolons * * Print semicolons at the ends of statements * * semi: * default: true */ // semi: true, /** * Quotes * https://prettier.io/docs/en/options.html#quotes * * Use single quotes instead of double quotes. * * singleQuote: * default: false */ singleQuote: true, /** * Quote Props * https://prettier.io/docs/en/options.html#quote-props * * Change when properties in objects are quoted. * * quoteProps: "" * default: "as-needed" */ // quoteProps: 'as-needed', /** * JSX Quotes * https://prettier.io/docs/en/options.html#jsx-quotes * * Use single quotes instead of double quotes in JSX. * * jsxSingleQuote: * default: false */ // jsxSingleQuote: false, /** * Trailing Commas * https://prettier.io/docs/en/options.html#trailing-commas * * Print trailing commas wherever possible when multi-line. (A single-line array, for example, never gets trailing commas.) * * trailingComma: "" * default: 'es5' */ // trailingComma: 'es5', /** * Bracket Spacing * https://prettier.io/docs/en/options.html#bracket-spacing * * Print spaces between brackets in object literals. * * bracketSpacing: * default: true */ // bracketSpacing: true, /** * JSX Brackets * https://prettier.io/docs/en/options.html#jsx-brackets * * Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements). * * jsxBracketSameLine: * default: false */ // jsxBracketSameLine: false, /** * Arrow Function Parentheses * https://prettier.io/docs/en/options.html#arrow-function-parentheses * * Include parentheses around a sole arrow function parameter. * * arrowParens: "" * default: "always" */ // arrowParens: 'always', /** * Range * https://prettier.io/docs/en/options.html#range * * Format only a segment of a file. * * rangeStart: * default: 0 * * rangeEnd: * default: Infinity */ // rangeStart: 0, // rangeEnd: Infinity, /** * Parser * https://prettier.io/docs/en/options.html#parser * * Specify which parser to use. * * parser: "" | require("./my-parser") * no default * */ // parser: '', /** * File Path * https://prettier.io/docs/en/options.html#file-path * * Specify the file name to use to infer which parser to use. * * filepath: "" * no default */ // filepath: '', /** * Require pragma * https://prettier.io/docs/en/options.html#require-pragma * * Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to prettier. * * requirePragma: * default: false */ // requirePragma: false, /** * Insert Pragma * https://prettier.io/docs/en/options.html#insert-pragma * * Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier. This works well when used in tandem with the --require-pragma option. If there is already a docblock at the top of the file then this option will add a newline to it with the @format marker. * * insertPragma: * default: false */ // insertPragma: false, /** * Prose Wrap * https://prettier.io/docs/en/options.html#prose-wrap * * By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer, e.g. GitHub comment and BitBucket. In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out with "never". * * proseWrap: "" * default: "preserve" */ // proseWrap: 'preserve', /** * HTML Whitespace Sensitivity * https://prettier.io/docs/en/options.html#html-whitespace-sensitivity * * Specify the global whitespace sensitivity for HTML files, see whitespace-sensitive formatting for more info. * * htmlWhitespaceSensitivity: "" * default: "css" */ // htmlWhitespaceSensitivity: 'css', /** * Vue files script and style tags indentation * https://prettier.io/docs/en/options.html#vue-files-script-and-style-tags-indentation * * Whether or not to indent the code inside