-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
feat: types with intellisense (#152) #177
Conversation
8ca6fe7
to
e05f429
Compare
(PR requires a rebuild and a cleanup, reqiring a review on if it looks properly at all) |
@Julien-R44 ref |
Running Additionally checking the diff after the generation This does not look right to me
|
0a183db
to
e1c018d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The vitest type-check tests are failing, please have a look into them
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not check every rule yet, but when I run pnpm run generate:rules
the result is looking promising 🙂
So good work for now 👍
However, I'm tempted to split this PR into several commits to make it more discoverable in the commit history
I would like to split the "Apply handcrafted hard to generalize fixes" into its own PR and also add a terminal log to notify everytime a rule was "patched"
This now needs to be rebased |
8024f43
to
6718d3b
Compare
I thing I could really use a diff-generator script I have like 10 rules to fix, doing that by hand is becoming hard |
In that case we should use the package rimraf |
@Dimava I have checked and tried to add such a preflight script, but deleting src/rules would also result in deleting other files that wont get regenerated |
@Dimava I checked the PR freshly and run e.g. Beside that, I'm not quite sure what you mean by
Right now the diff of the PR is really huge and I'm not sure if there is even a difference between type and interface in these cases. |
That's why I deleted |
@Dimava please also answer my second question as well Check the branch and run Copy of my question above: Beside that, I'm not quite sure what you mean by
Right now the diff of the PR is really huge and I'm not sure if there is even a difference between type and interface in these cases. |
Co-authored-by: Shinigami <[email protected]>
stale |
Rule<ARuleOptions>
to inlinedRule<[RuleLevel, 'option1' | 'option2']>
to make understandable hover intellisence indefineConfig
interface
totype
to shorten(property) ARule['a-rule']: Rule<[RuleLevel]>
to(property) 'a-rule': Rule<[RuleLevel]>