@aaronchenwei/tslint-config 中文文档教程
tslint-config
< a href="https://david-dm.org/aaronchenwei/tslint-config.svg">
这是一个带有prettier
的tslint
配置。
Installation
yarn add --dev @aaronchenwei/tslint-config tslint
Usage
在文件 tslint.json
{
"extends": ["@aaronchenwei/tslint-config", "tslint-config-prettier"]
}
中为了配置 pretitier
,安装包然后将以下内容添加到文件 package.json
yarn add --dev husky prettier pretty-quick
"prettier": {
"singleQuote": true,
"trailingComma": "es5"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
Versioning
+----- Major version.
| +--- Minor version has BREAKING CHANGE and feature.
| | +- Patch version has patch.
| | |
x.x.x
License
MIT
tslint-config
This is an opinioned tslint
configuration with prettier
.
Installation
yarn add --dev @aaronchenwei/tslint-config tslint
Usage
In file tslint.json
{
"extends": ["@aaronchenwei/tslint-config", "tslint-config-prettier"]
}
In order to configure pretitier
, install packages and then add following to file package.json
yarn add --dev husky prettier pretty-quick
"prettier": {
"singleQuote": true,
"trailingComma": "es5"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
Versioning
+----- Major version.
| +--- Minor version has BREAKING CHANGE and feature.
| | +- Patch version has patch.
| | |
x.x.x
License
MIT