-
Notifications
You must be signed in to change notification settings - Fork 196
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
chore(sdk): OLD adding eslint rules for capitalize comment and explicit member accessibility #3687
Conversation
Signed-off-by: monada-bot[bot] <[email protected]>
…g/wing into tsuf/adding-eslint-rules
Signed-off-by: monada-bot[bot] <[email protected]>
…g/wing into tsuf/adding-eslint-rules
Signed-off-by: monada-bot[bot] <[email protected]>
// Makes sure comments and doc strings are capitalized | ||
"capitalized-comments": [ | ||
"error", | ||
"always", | ||
{ | ||
ignoreConsecutiveComments: true, | ||
ignorePattern: "pragma|ignored", | ||
ignoreInlineComments: true, | ||
}, | ||
], |
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 we change this to only apply to block style comments (/* ... */
)? The other comments (//
) aren't generated in the public APIs like our docs or the Wing IDE extension, so I don't think the capitalization matters as much
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.
yes, I fixed it and created another PR (to prevent rolling back the changes to the line comments)
here it is: #3725
opened a new one: #3725 |
Following @Chriscbr's comment: #3570 (comment)
I added those two rules to the SDK's linter and ran it once to apply them.
The added regulations are:
I also added a sentence to the docs referring to the importance of docstrings, which should be capitalized.
Checklist
pr/e2e-full
label if this feature requires end-to-end testingBy submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.