2 Star 0 Fork 0

mirrors_hyperledger/iroha-javascript

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.prettierrc.js 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
0x009922 提交于 2022-03-22 13:11 . lint: update formatting
module.exports = {
// max 120 characters per line
printWidth: 120,
// use 24spaces for indentation
tabWidth: 2,
// use spaces instead of indentations
useTabs: false,
// semicolon at the end of the line
semi: false,
// use single quotes
singleQuote: true,
// object's key is quoted only when necessary
quoteProps: 'as-needed',
// use double quotes instead of single quotes in jsx
jsxSingleQuote: false,
// no comma at the end
trailingComma: 'all',
// spaces are required at the beginning and end of the braces
bracketSpacing: true,
// end tag of jsx need to wrap
jsxBracketSameLine: false,
// brackets are required for arrow function parameter, even when there is only one parameter
arrowParens: 'always',
// format the entire contents of the file
rangeStart: 0,
rangeEnd: Infinity,
// no need to write the beginning @prettier of the file
requirePragma: false,
// No need to automatically insert @prettier at the beginning of the file
insertPragma: false,
// use default break criteria
proseWrap: 'preserve',
// decide whether to break the html according to the display style
htmlWhitespaceSensitivity: 'css',
// vue files script and style tags indentation
vueIndentScriptAndStyle: false,
// lf for newline
endOfLine: 'lf',
// formats quoted code embedded
embeddedLanguageFormatting: 'auto',
overrides: [
{
files: 'packages/docs-recipes/src/**/*.ts',
options: {
// decrease printWidth to fit code into snippets in the vitepress
printWidth: 90,
tabWidth: 2,
},
},
],
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_hyperledger/iroha-javascript.git
git@gitee.com:mirrors_hyperledger/iroha-javascript.git
mirrors_hyperledger
iroha-javascript
iroha-javascript
main

搜索帮助