-
Notifications
You must be signed in to change notification settings - Fork 465
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
create tools/eslint-format #1080
Conversation
@rubiagatra thanks, on my list to review, just have not gotten to it yet. |
I tried this out today, but it does not seem to run the linter/find changed files in this case:
I expect you probably tested when you were on a branch other than main, but I think we need this scenario to work as well as I think it's what will run in the CI. If I modify @rubiagatra can you take a look? |
@rubiagatra just a reminder that I ran into a few issues and was hoping you could take a look. |
thank you @mhdawson for the reminder, I will take a look today and tomorrow. sorry, I am not in GitHub for a while |
I am still continuing checking out this will give an update on friday |
@mhdawson I follow your instruction.
it will have outcome.
maybe the linter of your code editor automatically fixes your update to the code? I am just creating no-unused-vars error for example. For styling issue it will fix automatically with my code editor |
I've not had a chance yet but will try to take a look sometime this week. |
@rubiagatra I'm not sure what I was doing before, I went through the steps again and all seems to be working as expected sorry for the noise. |
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
Improve JS linting and add option to fix linting errors Fixes: #1076 PR-URL: #1080 Reviewed-By: Michael Dawson <[email protected]
Landed in 706b199 |
thanks! @mhdawson |
Improve JS linting and add option to fix linting errors Fixes: nodejs/node-addon-api#1076 PR-URL: nodejs/node-addon-api#1080 Reviewed-By: Michael Dawson <[email protected]
Improve JS linting and add option to fix linting errors Fixes: nodejs/node-addon-api#1076 PR-URL: nodejs/node-addon-api#1080 Reviewed-By: Michael Dawson <[email protected]
Improve JS linting and add option to fix linting errors Fixes: nodejs/node-addon-api#1076 PR-URL: nodejs/node-addon-api#1080 Reviewed-By: Michael Dawson <[email protected]
Improve JS linting and add option to fix linting errors Fixes: nodejs/node-addon-api#1076 PR-URL: nodejs/node-addon-api#1080 Reviewed-By: Michael Dawson <[email protected]
Closes #1076
Tasks
tools/eslint-format.js
to has the same behavior withtools/clang-format.js
.Note
CLANG_FORMAT_START
->FORMAT_START
Example
@mhdawson I created
tools/eslint-format.js
do you mind checking this one out? the example looks like this when pre-commit