@fmfe/tslint-config-fmfe-nodejs
v0.0.2
Published
TSLint configuration of Followme Frontend Team Node.js group Edit
Downloads
2
Readme
@fmfe/tslint-config-fmfe-nodejs
TSLint configuration of Followme Frontend Team Node.js group, base on standard.
usage
edit configuration file:
$ touch tslint.json
{
"extends": "@fmfe/tslint-config-fmfe-nodejs"
}
install
$ npm install @fmfe/tslint-config-fmfe-nodejs -D
$ ./node_modules/.bin/tslint --type-check --project tslint.json *.ts
or
$ npm install tslint @fmfe/tslint-config-fmfe-nodejs -g
$ tslint *.js
rules
- 基本规则
- 附加规则
- 行尾必须加分号
- 缩进使用 4 个空格
- 要求使用 let 或 const 而不是 var
- if,do,while等必须加花括号
- 不允许行末出现空格
- 使用单引号
- 强制使用空格
contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
license
this repo is released under the MIT License.