create tools/eslint-format#1080
create tools/eslint-format#1080rubiagatra wants to merge 2 commits intonodejs:mainfrom rubiagatra:lint/1076-follow-up-js-linter
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. |
|
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 <midawson@redhat.com
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 <midawson@redhat.com
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 <midawson@redhat.com
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 <midawson@redhat.com
Closes #1076
Tasks
tools/eslint-format.jsto has the same behavior withtools/clang-format.js.Note
CLANG_FORMAT_START->FORMAT_STARTExample
@mhdawson I created
tools/eslint-format.jsdo you mind checking this one out? the example looks like this when pre-commit