ts-cruftless v0.1.2
Introduction
Lint away TypeScript's evolutionary cruft
Use the TSLint rules in ts-cruftless
to prevent introducing problematic and dated language features to your codebase. Find links to articles detailing the reasons for each rule below:
Rules
no-class-access-modifiers - explanatory article
no-enums *
no-angle-bracket-type-assertions *
no-abstract-classes-and-methods *
no-namespaces-and-internal-modules *
Do you think another rule should be included, disagree with with one of the rules listed, or have an idea for a better explanation? File an issue to start a discussion about it.
*Blog post coming soon... if I get the time :)
Getting Started
Install ts-cruftless
just like you would any other dev dependency:
npm install ts-cruftless --save-dev
Then in your tslint.json
file extend ts-cruftless
:
{
"extends": ["ts-cruftless"]
}
You can disable individual rules as follows:
{
"extends": ["ts-cruftless"],
"rules": {
// Name of rule you'd like to disable, for example:
"no-class-access-modifiers": false
}
}