Prettier configuration file

The document

module.exports = {
    / / length
    printWidth: 100.// Indent length
    tabWidth: 4.// Use TAB indent
    useTabs: false./ / a semicolon
    semi: true.// Whether to indent 
    vueIndentScriptAndStyle: true./ / single quotation marks
    singleQuote: true.// Add quotes around object attributes only when needed
    quoteProps: 'as-needed'.// Prints Spaces between parentheses in the object text
    bracketSpacing: true.// end comma
    trailingComma: 'none'./ / > position
    jsxBracketSameLine: false.// JSX uses single quotes
    jsxSingleQuote: false.// Whether the arrow function arguments are wrapped in parentheses
    arrowParens: 'always'.// Insert compilation instructions
    insertPragma: false.// Compile instructions are required
    requirePragma: false./ / MarkDown newline
    proseWrap: 'never'.// HTML whitespace sensitivity
    htmlWhitespaceSensitivity: 'strict'.// Newline format
    endOfLine: 'lf'.// Formats the given character offset
    rangeStart: 0
};
Copy the code