eslint-plugin-stronk-ts
Provides a set of rules for making your types stronger in TypeScript. Meant to be used in
conjunction with stronk-ts.
Installation
npm install --save-dev eslint eslint-plugin-stronk-ts
Usage
Extend the recommended ruleset in your .eslintrc
file:
{
"extends": ["plugin:stronk-ts/recommended"]
}
Or add stronk-ts
to the plugins section of your .eslintrc
configuration file. You can omit the
eslint-plugin-
prefix:
{
"plugins": ["stronk-ts"]
}
Configure the rules you want to use or change under the rules section:
{
"rules": {
"stronk-ts/no-typeof": "off",
"stronk-ts/no-typeof-comparison": "error"
}
}