Merge pull request #7693 from continuedev/dallin/con-3885-no-any-rule
feat: no any type rule
This commit is contained in:
commit
4a9ea24ac7
1 changed files with 5 additions and 0 deletions
5
.continue/rules/no-any-types.md
Normal file
5
.continue/rules/no-any-types.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
globs: "**/*.{ts,tsx}"
|
||||
---
|
||||
|
||||
Avoid using the `any` type wherever possible. Use unknown or find the correct type. The only acceptable place to use any is when typecasting for test mocks, and even then it's better to avoid and provide a proper mock.
|
||||
Loading…
Add table
Reference in a new issue