krzkaczor/TypeStrict
关于
ESLint config focused on maximizing type safety 💪
其他项目实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
TypeStrict
Squash bugs before shipping them with TypeScript and ESLint!
ESLint config focused on maximizing type safety
Installation
npm install --save-dev @typescript-eslint/eslint-plugin eslint-plugin-sonarjs eslint-config-typestrict
👉 If you still use TSLint please use typestrict@1
Usage
In your .eslintrc.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!
Description
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,
Complete rules list
ESLint
- constructor-super
- no-invalid-this
- no-restricted-syntax (with
"check-parameters"and{"ignore-pattern": "^_" }) - use-isnan
TypeScript ESLint
- @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
SonarTS
- no-all-duplicated-branches
- no-collection-size-mischeck
- no-duplicated-branches
- no-element-overwrite
- no-identical-conditions
- no-identical-expressions
Contributing
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.
License
MIT by Krzysztof Kaczor
探索相关项目
加载中…