10 lines
485 B
JavaScript
10 lines
485 B
JavaScript
// prettier.config.js or .prettierrc.js 返回对象
|
||
module.exports = {
|
||
eslintIntegration: true, // 开启 eslint 支持
|
||
singleQuote: true, // 使用单引号
|
||
tabWidth: 2, // 一个tab代表几个空格数,默认为80
|
||
useTabs: false, // 是否使用tab进行缩进,默认为false,表示用空格进行缩减
|
||
semi: false, // 行位是否使用分号,默认为true
|
||
bracketSpacing: true //对象大括号直接是否有空格,默认为true,效果:{ foo: bar }
|
||
}
|