1234567891011121314151617181920212223242526272829303132333435363738 |
- module.exports = {
- //指定每行长度
- printWidth: 150,
- //指定缩进的空格数
- tabWidth: 2,
- //用tab代替空格
- useTabs: false,
- //行尾自动加分号
- semi: true,
- //对Vue文件中<script>和<style>标签内的代码进行缩进
- vueIndentScriptAndStyle: true,
- singleQuote: true,
- //对象里的key是否引号包裹 1.as-needed 2.consistent 3.preserve
- quoteProps: 'as-needed',
- //对象字面增加空格
- bracketSpacing: true,
- //多行情况下,在末尾增加逗号
- trailingComma: 'es5',
- //jsx 单引号代替双引号
- jsxSingleQuote: false,
- //箭头函数单参数是否用括号
- arrowParens: 'always',
- //插入特殊符号
- insertPragma: false,
- //注释代码格式化
- requirePragma: false,
- //是否折叠行
- proseWrap: 'never',
- //html対空格敏感度
- htmlWhitespaceSensitivity: 'strict',
- //结尾自动换行
- endOfLine: 'auto',
- //是否格式化某一部分
- rangeStart: 0,
- //使用单引号
- "singleQuote": true,
- };
-
|