1.0.2 • Published 5 years ago

@namics/tslint-config v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

Shared tslint config npm

reusable tslint config

Usage

npm i -D tslint @namics/tslint-config

tslint.json

{
  "defaultSeverity": "error",
  "extends": ["@namics/tslint-config"],
  "jsRules": {},
  "rules": {},
  "rulesDirectory": []
}

package.json

  ...
  "scripts": {
    "lint:ts": "tslint 'src/**/*.{ts,tsx}'",
    ...
  },
  ...

Usage with prettier

The tslint-config-prettier npm package disables all conflicting rules that may cause such problems. Prettier takes care of the formatting whereas tslint takes care of all the other things.

npm i -D tslint tslint-config-prettier @namics/tslint-config

tslint.json

{
  "defaultSeverity": "error",
  "extends": ["@namics/tslint-config", "tslint-config-prettier"],
  "jsRules": {},
  "rules": {},
  "rulesDirectory": []
}

package.json

  ...
  "scripts": {
    "lint:ts": "tslint 'src/**/*.{ts,tsx}'",
    ...
  },
  ...

See @namics/tslint-config on unpkg

License

MIT License

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.2.1

5 years ago

0.2.0

6 years ago

0.1.0

6 years ago