/tslint-viralize

Viralize tslint rules

Primary LanguageJavaScriptMIT LicenseMIT

tslint-viralize

Tslint rules to enforce Viralize standards and best practices during development of typescript project in Viralize

Install

  1. Install the correct versions of each package, which are listed by the command:
npm info "tslint-viralize@latest" peerDependencies

If using npm 5+, use this shortcut

npx install-peerdeps --dev tslint-viralize

If using npm < 5, Linux/OSX users can run

(
  export PKG=tslint-viralize;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)

If using npm < 5, Windows users can either install all the peer dependencies manually, or use the install-peerdeps cli tool.

npm install -g install-peerdeps
install-peerdeps --dev tslint-viralize
  1. Add to your tslint.json:
"extends": "tslint-viralize",
"rulesDirectory": [
  "node_modules/tslint-microsoft-contrib"
]

Some of the rules require type information. So in order to provide as much value as possible run TSLint with type-checker