UNPKG

@aecworks/bimbox-bimserver-sdk-js

Version:

AECWorks BIMBox 产品线 BIMServer 的 sdk 的 JavaScript 实现,采用Typescript语言

45 lines (35 loc) 1.19 kB
// Prettier 的官网有详细的选项介绍 https://prettier.io/docs/en/options.html module.exports = { parser: 'typescript', // tab缩进大小,默认为2 tabWidth: 4, // 最大宽度 printWidth: 120, // 使用tab缩进,默认false useTabs: false, // 使用分号, 默认true semi: true, // 使用单引号, 默认false(在jsx中配置无效, 默认都是双引号) singleQuote: true, // 行尾逗号,默认none,可选 none|es5|all // es5 包括es5中的数组、对象 // all 包括函数对象等所有可选 trailingComma: 'es5', // 对象中的空格 默认true // true: { foo: bar } // false: {foo: bar} bracketSpacing: false, // JSX标签闭合位置 默认false // false: <div // className="" // style={{}} // > // true: <div // className="" // style={{}} > jsxBracketSameLine: false, // 箭头函数参数括号 默认avoid 可选 avoid| always // avoid 能省略括号的时候就省略 例如x => x // always 总是有括号 arrowParens: 'always' };