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;