prettier.config.js


module.exports = {
	printWidth: 120, // 行長規則通常設置為100或120
	singleQuote: true, // 使用單引號, 默認false
	semi: true, // 使用分號, 默認true
	arrowParens: 'avoid', // 箭頭函數參數添加括號
	trailingComma: 'es5', // 在ES5中有效的結尾逗號(對象,數組等)
	useTabs: true, // 在ES5中有效的結尾逗號(對象,數組等)
};

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM