Socket
Book a DemoInstallSign in
Socket

@fmfe/tslint-config-fmfe-nodejs

Package Overview
Dependencies
Maintainers
9
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fmfe/tslint-config-fmfe-nodejs

TSLint configuration of Followme Frontend Team Node.js group Edit

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
0
Maintainers
9
Weekly downloads
 
Created
Source

@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.

Keywords

tslint

FAQs

Package last updated on 02 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts