grailed/grailed_app/prettier.config.ts

21 lines
913 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const config = {
semi: false, // 使用分号
trailingComma: 'none', // 不在多行的末尾使用尾随逗号
singleQuote: true, // 使用单引号而不是双引号
printWidth: 100, // 一行的字符数如果超过会进行换行默认为80
tabWidth: 2, // tab的宽度默认为2
useTabs: false, // 使用空格而不是tab
endOfLine: 'auto', // 根据系统的换行符操作。如果你是Windows用户或者你在git中有一个特定的配置可能会遇到与LF和CRLF相关的问题。
vueIndentScriptAndStyle: false,
quoteProps: 'as-needed',
bracketSpacing: true, // 对象字面量的大括号间使用空格默认true
jsxSingleQuote: false,
arrowParens: 'always',
insertPragma: false,
requirePragma: false,
proseWrap: 'never',
htmlWhitespaceSensitivity: 'strict',
rangeStart: 0,
};
export default config;