@rebeccastevens/tslint-rebeccastevens
v0.2.6 tslint
tslint-rebeccastevens
A TSLint sharable config with custom rules I made for myself.
Install
# Install with npm:
npm install --save-dev @rebeccastevens/tslint-rebeccastevens
# Install with yarn:
yarn add -D @rebeccastevens/tslint-rebeccastevens
Usage
Choose one of the rule sets below and add it to your tslint.json
file to use it.
Standard (default)
The standard rule set contains all the custom rules defined by this project with a default configuration set for each.
tslint.json
config:
{
"extends": [
"@rebeccastevens/tslint-rebeccastevens"
]
}
Recommended
The recommended rule set not only contains custom rules from this project but also from many other projects as well as the default rule set.
This rule set is a useful starting point for a new project.
tslint.json
config:
{
"extends": [
"@rebeccastevens/tslint-rebeccastevens/ruleset-recommended"
]
}
Custom Rules
Rules | Description |
---|---|
no-return-readonly-array | Prevents the type ReadonlyArray<T> from being returned from a function. |
npm i @rebeccastevens/tslint-rebeccastevens
Metadata
- BSD-3-Clause
- Whatever
- Rebecca Stevens
- released 3/7/2019