@privacycloud/tslint-config
v2.0.1
Published
Shared configuration for TypeScript projects with TSLint
Downloads
5
Readme
PrivacyCloud shared TSLint configuration
Usage
First, you need to install all the required dependencies:
npm i --save-dev typescript tslint @privacycloud/tslint-config
Once every package is installed, it is time to setup your local TSLint configuration. Depending on the project, you may want to extend one file or another from the shared configuration.
NOTE: you can still overwrite any extended rule in your local configuration.
Client-side projects
tslint.json
:
{
"extends": "@privacycloud/tslint-config"
}
Server-side projects
tslint.json
:
{
"extends": "@privacycloud/tslint-config/server"
}
privacycloud-tslint-config/server
inherits the whole base
configuration but it overwrites some rules for server-side projects (i.e. it disables the no-console
rule).
Contributing
In order to publish any update from this package to the npm registry, please follow the following instructions about publishing packages to npm and working with scoped packages on npm.
TL;DR
npm adduser # "npm login" if you already have an account
npm publish --access=public
NOTE: Your user must be a member of the @privacycloud organization on npm.