-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible eslint rules to consider adding (living document) #626
Comments
For no-explicit-any rtkq lazy queries need to be typed better somehow I didn't spend time to figure it out so I put any in there. |
Which one do we want for @typescript-eslint/array-type ? |
I would prefer |
How well does it work with complex types? Or should we then convert all rtkq request/response types into actual type declarations instead of being inline? |
* Add @typescript-eslint/no-explicit-any (issue #626) * Remove rule and extend the plugin * Add @typescript-eslint/array-type
wait... This is not supposed to be closed. That's why it says "living document". |
@hidden4003 Check if we should extend this also. For more consistency plugin:@typescript-eslint/stylistic-type-checked -> More "styling" rules. eg., Prefer |
Extend
plugin:@typescript-eslint/recommended
Function
,() => {}
as type, recommends usage ofRecord
@typescript-eslint/array-type -> Force usage of either
Array<T>
orT[]
@typescript-eslint/consistent-type-definitions -> Force usage of
Type
overInterface
Extend plugin:@typescript-eslint/stylistic-type-checked -> More "styling" rules. eg., Prefer
Record
over[key: T]: T
, prefer??
over||
, etc. Also includes@typescript-eslint/array-type
which we have added beforeThe text was updated successfully, but these errors were encountered: