Skip to content

Conversation

@HinataKah0
Copy link
Contributor

See https://eslint.org/docs/latest/rules/no-unused-vars#argsignorepattern

Declaring function signature type, e.g. (name: string) => void, upsets ESLint. This commit will add rule to ignore pattern starting with _, so you can declare it (_name: string) => void.

@vercel
Copy link

vercel bot commented May 7, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2023 11:54am
nodejs-org-stories ✅ Ready (Inspect) Visit Preview May 10, 2023 11:54am

@vercel vercel bot temporarily deployed to Preview – nodejs-org May 7, 2023 14:02 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories May 7, 2023 14:03 Inactive
@HinataKah0 HinataKah0 force-pushed the chore/no-unused-vars-ignores-underscore branch from d2874b8 to 83e3472 Compare May 7, 2023 14:08
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories May 7, 2023 14:09 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org May 7, 2023 14:09 Inactive
@HinataKah0
Copy link
Contributor Author

HinataKah0 commented May 7, 2023

Cherry-picked from #5341
Let's get this merged so it doesn't block others.

@HinataKah0 HinataKah0 marked this pull request as draft May 7, 2023 14:20
@HinataKah0
Copy link
Contributor Author

HinataKah0 commented May 7, 2023

Ah, the rule is added to the wrong place. It doesn't cover *.ts file. I'll fix it tomorrow.

@HinataKah0 HinataKah0 force-pushed the chore/no-unused-vars-ignores-underscore branch from 83e3472 to 1874539 Compare May 8, 2023 01:14
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories May 8, 2023 01:15 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org May 8, 2023 01:16 Inactive
@HinataKah0 HinataKah0 marked this pull request as ready for review May 8, 2023 01:17
@mikeesto
Copy link
Member

mikeesto commented May 9, 2023

Hi @HinataKah0 . I'm keen to merge this but your commit is not signed, and we have a ruleset that requires all commits to be signed. I had a quick look at some of your other open PRs and it's a similar problem there as well.

Could you please have a look into this for me? I'm not sure exactly what your workflow is. However, there is some information here that may help: https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification

See https://eslint.org/docs/latest/rules/no-unused-vars#argsignorepattern

Declaring function signature type, e.g. (name: string) => void,
upsets ESLint. This commit will add rule to ignore pattern
starting with _, so you can declare it (_name: string) => void.
@HinataKah0 HinataKah0 force-pushed the chore/no-unused-vars-ignores-underscore branch from 1874539 to 0091386 Compare May 10, 2023 11:53
@vercel vercel bot temporarily deployed to Preview – nodejs-org-stories May 10, 2023 11:53 Inactive
@vercel vercel bot temporarily deployed to Preview – nodejs-org May 10, 2023 11:54 Inactive
@HinataKah0
Copy link
Contributor Author

@mikeesto Just signed my commit

However, I saw this:

Merging is blocked
The base branch does not allow updates.

Not sure how we normally proceed?

@AugustinMauroy
Copy link
Member

Because you are not a member of org ?

@HinataKah0
Copy link
Contributor Author

It seems there's an option to bypass but red text always scares me 🙈

@AugustinMauroy
Copy link
Member

You cannot merge an pr if you are not in website team.

@mikeesto
Copy link
Member

mikeesto commented May 10, 2023

@HinataKah0 Thanks, the commit looks good now. Not sure why merging is blocked - I haven't seen that before. Will try to find out. Claudio updated the ruleset for us.

@mikeesto mikeesto merged commit c526a02 into nodejs:major/website-redesign May 11, 2023
@ovflowd
Copy link
Member

ovflowd commented May 11, 2023

@AugustinMauroy, @HinataKah0 is on the team, the "issue" was a security ruleset. Already fixed it, thanks for reporting @mikeesto

@HinataKah0 HinataKah0 deleted the chore/no-unused-vars-ignores-underscore branch May 14, 2023 09:32
ovflowd added a commit that referenced this pull request May 17, 2023
* test(snapshot): Migrate snapshot tests to storybook (#5340)

Co-authored-by: Manish Kumar ⛄ <[email protected]>
Co-authored-by: Wai.Tung <[email protected]>
Co-authored-by: Shanmughapriyan S <[email protected]>
Co-authored-by: Michael Esteban <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: Teja Sai Sandeep Reddy Konala <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: vasanth9 <cheepurupalli.vasanthkumar.com>
Co-authored-by: Aymen Naghmouchi <[email protected]>
Co-authored-by: Teja Sai Sandeep Reddy Konala <[email protected]>
Co-authored-by: Augustin Mauroy <[email protected]>
Co-authored-by: Guilherme Araújo <[email protected]>
Co-authored-by: Augustin Mauroy <[email protected]>
Co-authored-by: HinataKah0 <[email protected]>
Co-authored-by: Olaleye Blessing <[email protected]>
Co-authored-by: ktssr <[email protected]>
Co-authored-by: vasanthkumar <[email protected]>
Co-authored-by: Floran Hachez <[email protected]>
Co-authored-by: Jatin <[email protected]>
fixed styleling misconfig and fixed storybooks (#5281)
fix storybook styles, imports, typescript config and dependencies (#5319
fix(package.json) Lint command is missing slashes (#5321
fix storybook local development mode (#5335)
fix(i18n): translation key (#5347)

* chore: no-unused-vars ignores pattern starting with _ (#5363)

* Contributing Guidelines Update - Add clarity to step 4 based on clone method (#5369)

Add clarity to step 4 based on clone method

Signed-off-by: Vessy Shestorkina <[email protected]>

* fix(test): dir name (#5354)

* feat(stability): migrate component (#5339)

* Migrate JsonLink component (#5370)

* Migrate JsonLink component

Signed-off-by: Vessy Shestorkina <[email protected]>

* Add storybook snap and robot icon

Signed-off-by: Vessy Shestorkina <[email protected]>

* Remove IconContext provider

Signed-off-by: Vessy Shestorkina <[email protected]>

---------

Signed-off-by: Vessy Shestorkina <[email protected]>
Signed-off-by: Claudio Wunder <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>

* refactor(useDownloadLink): Move useDetectOs to useDownloadLink (#5376)

* refactor(useDownloadLink): Move useDetectOs to useDownloadLink

* refactor(useDownloadLink): rename file

* refactor(useDownloadLink): rename file

* Apply suggestions from code review

Signed-off-by: Claudio Wunder <[email protected]>

* refactor(useDownloadLink): undo deleted file

---------

Signed-off-by: Claudio Wunder <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>

* feat: Add MUI Config and Theme Provider (#5368)

* feat: Add MUI Config and Theme Provider

* added createTheme

* refactor themeConfig

* feat(theme): Fix linting and package-lock

* feat(theme): Add emotion styled and emtion react

---------

Co-authored-by: Harkunwar Kochar <[email protected]>

* refactor(delete): duplicate test file (#5377)

refactor(test): Delete duplicate test file

Co-authored-by: Claudio Wunder <[email protected]>

* feat(useClickOutside): introduce (#5359)

* feat(useClickOutside): introduce

* Update hooks/useClickOutside.ts

Co-authored-by: Claudio Wunder <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* feat(useClickOutside): fix and twix

* feat(dropdown): remove useless ref

* feat(useClickOutside): update unit test

* feat(UseClickOutside): update type

* fix: usage of type

* Update hooks/useClickOutside.ts

Co-authored-by: Claudio Wunder <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* update listener

* Update components/Common/LanguageSelector/index.tsx

Co-authored-by: Shanmughapriyan S <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* fix: languageSelector

* update with feedback

* better unit test

* Update hooks/useClickOutside.ts

Co-authored-by: Harkunwar Kochar <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* feat(useClickOutside): update with feedback

* Update hooks/useClickOutside.ts

Co-authored-by: Shanmughapriyan S <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* Update hooks/useClickOutside.ts

Co-authored-by: Shanmughapriyan S <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* fix: if click on modal

* Update hooks/useClickOutside.ts

Co-authored-by: Harkunwar Kochar <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* Update hooks/useClickOutside.ts

Signed-off-by: Harkunwar Kochar <[email protected]>

* Update hooks/useClickOutside.ts

Co-authored-by: Harkunwar Kochar <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* Update useClickOutside.ts

* Update hooks/useClickOutside.ts

Co-authored-by: Shanmughapriyan S <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* Update useClickOutside.ts

* Apply suggestions from code review

Signed-off-by: Claudio Wunder <[email protected]>

* Update hooks/useClickOutside.ts

Co-authored-by: Claudio Wunder <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* Update hooks/useClickOutside.ts

Co-authored-by: Claudio Wunder <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>

* fix: build

---------

Signed-off-by: Augustin Mauroy <[email protected]>
Signed-off-by: Harkunwar Kochar <[email protected]>
Signed-off-by: Claudio Wunder <[email protected]>
Co-authored-by: Claudio Wunder <[email protected]>
Co-authored-by: Shanmughapriyan S <[email protected]>
Co-authored-by: Harkunwar Kochar <[email protected]>

---------

Signed-off-by: Vessy Shestorkina <[email protected]>
Signed-off-by: Claudio Wunder <[email protected]>
Signed-off-by: Augustin Mauroy <[email protected]>
Signed-off-by: Harkunwar Kochar <[email protected]>
Co-authored-by: Harkunwar Kochar <[email protected]>
Co-authored-by: Manish Kumar ⛄ <[email protected]>
Co-authored-by: Wai.Tung <[email protected]>
Co-authored-by: Shanmughapriyan S <[email protected]>
Co-authored-by: Michael Esteban <[email protected]>
Co-authored-by: Teja Sai Sandeep Reddy Konala <[email protected]>
Co-authored-by: Aymen Naghmouchi <[email protected]>
Co-authored-by: Teja Sai Sandeep Reddy Konala <[email protected]>
Co-authored-by: Augustin Mauroy <[email protected]>
Co-authored-by: Guilherme Araújo <[email protected]>
Co-authored-by: Augustin Mauroy <[email protected]>
Co-authored-by: HinataKah0 <[email protected]>
Co-authored-by: Olaleye Blessing <[email protected]>
Co-authored-by: ktssr <[email protected]>
Co-authored-by: vasanthkumar <[email protected]>
Co-authored-by: Floran Hachez <[email protected]>
Co-authored-by: Jatin <[email protected]>
Co-authored-by: Vessy <[email protected]>
Co-authored-by: Mert Can Altın <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants