ESLint config focused on maximizing type safety
npm install eslint-config-typestrict

Squash bugs before shipping them with TypeScript and ESLint!
ESLint config focused on maximizing type safety
``bash`
npm install --save-dev @typescript-eslint/eslint-plugin eslint-plugin-sonarjs eslint-config-typestrict
š If you still use TSLint please use typestrict@1
In your .eslintrc.json:
`json`
{
"extends": "typestrict"
// ... add here your own rules
}
Unfortunately, you need to install plugins that we depend on manually: @typescript-eslint/eslint-plugin, eslint-plugin-sonarjs
Remember to use strict compiler setting in tsconfig.json!
All rules in this config are focused on catching bugs in your code and be as not annoying as possible. They don't
care about your code style or formatting.
TypeStrict combines rules from various rule sets: typescript-eslint,
sonarJS,
- constructor-super
- no-invalid-this
- no-restricted-syntax (with "check-parameters" and {"ignore-pattern": "^_" })
- use-isnan
- @typescript-eslint/no-unused-vars with {"argsIgnorePattern": "^_"}`
- @typescript-eslint/await-thenable
- @typescript-eslint/no-floating-promises
- @typescript-eslint/no-misused-new
- @typescript-eslint/restrict-plus-operands
- @typescript-eslint/no-unnecessary-condition
- no-all-duplicated-branches
- no-collection-size-mischeck
- no-duplicated-branches
- no-element-overwrite
- no-identical-conditions
- no-identical-expressions
Do you have idea for new rule to be added? You don't agree with one of rules included? Feel free to create issue / PR.
Logo by @codeandcats.
MIT by Krzysztof Kaczor