zl程序教程

您现在的位置是:首页 >  后端

当前栏目

prettier.config.js

JS config
2023-09-14 08:58:48 时间
module.exports = {
	printWidth: 120, // 行长规则通常设置为100或120
	singleQuote: true, // 使用单引号, 默认false
	semi: true, // 使用分号, 默认true
	arrowParens: 'avoid', // 箭头函数参数添加括号
	trailingComma: 'es5', // 在ES5中有效的结尾逗号(对象,数组等)
	useTabs: true, // 在ES5中有效的结尾逗号(对象,数组等)
};