ns8-tslint

2.0.0 • Public • Published

ns8-tslint

These are the NS8 company-wide tslint rules to be used across all projects that use TypeScript.

Install in your project

  1. Be sure you have typescript and tslint installed locally
  2. Run yarn add ns8-tslint --dev
  3. Add a file called tslint.json to the root of your project with the following JSON
{
  "extends": "ns8-tslint"
}
  1. Running tslint in your project should now utilize these rules

A Note on Overrides

A rule-set listed later in the extends array will override any common rules from
the sets that preceded it.

{
  "extends": ["tslint-react", "ns8-tslint"]
}

In the example shown above:

If the rule "jsx-no-multiline-js": false," exists in tslint-react and the competing rule "jsx-no-multiline-js": true, exists in ns8-tslint, the rule from ns8-tslint would be enforced because it was declared later in the extends array.

Package Sidebar

Install

npm i ns8-tslint

Weekly Downloads

3

Version

2.0.0

License

ISC

Unpacked Size

5.49 kB

Total Files

4

Last publish

Collaborators

  • ben.zhong
  • bizopsignite
  • ns8-buildbot
  • ns8-npm-publisher
  • onuralptaner
  • akichin