UNPKG
eslint-prettier-config
Version:
latest (1.0.1)
1.0.1
1.0.0
Eslint+Airbnb+Preitter+TS+Vue JS代码规范自动格式化方案
eslint-prettier-config
/
template
/
.prettierrc.js
10 lines
(9 loc)
•
470 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
module
.
exports
= {
"bracketSpacing"
:
true
,
//在对象字面量声明所使用的的花括号后({)和前(})输出空格
"printWidth"
:
180
,
//指定代码换行的行长度
"singleQuote"
:
true
,
//是否使用单引号,这里选择使用
"trailingComma"
:
"es5"
,
// 在ES5中有效的尾随逗号
"arrowParens"
:
"always"
,
//为单行箭头函数的参数添加圆括号
"endOfLine"
:
"lf"
,
//结束换行符
"useTabs"
:
false
,
//禁止使用Tab空格
}