-
-
Notifications
You must be signed in to change notification settings - Fork 11
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: Add plugin-kit package #99
Conversation
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.
LGTM. Went through the files related to actions/readme/build. Will wait for others to review files in source and test folders
"dist/esm/index.js", | ||
"dist/esm/index.d.ts", | ||
"dist/esm/types.ts", | ||
"dist/esm/types.d.ts", |
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.
can be rewritten:
"dist/esm/index.js", | |
"dist/esm/index.d.ts", | |
"dist/esm/types.ts", | |
"dist/esm/types.d.ts", | |
"dist/esm/" |
?
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'm following the convention we have in the other packages. If we want to change that convention, let's do that for all packages in a separate PR.
Co-authored-by: 唯然 <weiran.zsd@outlook.com>
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.
LGTM. Would like another review before merging.
target: object; | ||
target: unknown; |
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.
Why this change, isn't this expected to be an object (AST node)?
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.
unknown
forces consumers to specify the type of the object before working with it, which ensures that it's properly typed.
object
will just cause squiggles every time you access a property or method that isn't on Object.prototype
.
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
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.
LGTM, thanks!
Prerequisites checklist
What is the purpose of this pull request?
Created the new
plugin-kit
packageWhat changes did you make? (Give an overview)
plugin-kit
directoryConfigCommentParser
,VisitNodeStep
, andCallMethodStep
classesRelated Issues
fixes #97
Is there anything you'd like reviewers to focus on?
Just starting with the basics for this package. These are some commonalities I've found across the different languages. There will likely be more.
I slightly changed the interface of
ConfigCommentParser
to be more generic as the one ineslint/eslint
was very specific to the way Espree represents comments. I tested thisConfigCommentParser
in ESLint directly to ensure the new interface works correctly.