Skip to content
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

fix(action): correct lint path, clean up warnings, fix lints #7043

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

bmuenzenmeyer
Copy link
Collaborator

@bmuenzenmeyer bmuenzenmeyer commented Sep 13, 2024

Description

https://github.com/nodejs/nodejs.org/actions/runs/10850360175/job/30111620392 failed due to incorrect eslint configuration/invocation

Validation

npx eslint "apps/site/pages/**/*.md?(x)" --fix --cache --cache-strategy=metadata --cache-file=apps/site/.eslintmdcache --config=apps/site/eslint.config.js

⬆️ succeeds now

A cleaned up and rebased #7040 should succeed

Related Issues

supports #7040 cleanly

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

Copy link

vercel bot commented Sep 13, 2024

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

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Sep 13, 2024 9:59pm

@bmuenzenmeyer
Copy link
Collaborator Author

bmuenzenmeyer commented Sep 13, 2024

with only 97eeda0, we get

Pages directory cannot be found at C:\src\nodejsorg\pages or C:\src\nodejsorg\src\pages. If using a custom path, please configure with the `no-html-link-for-pages` rule in your eslint config file.

414f133 addresses this

@bmuenzenmeyer
Copy link
Collaborator Author

bmuenzenmeyer commented Sep 13, 2024

we also get

(node:3164) ESLintIgnoreWarning: The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files
(Use `node --trace-warnings ...` to show where the warning was created)

cb1a961 addresses this

@bmuenzenmeyer bmuenzenmeyer changed the title fix(action): supply config path fix(action): correct lint path, clean up warnings, fix lints Sep 13, 2024
Copy link

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 92%
90.47% (589/651) 76.29% (177/232) 94.35% (117/124)

Unit Test Report

Tests Skipped Failures Errors Time
131 0 💤 0 ❌ 0 🔥 5.185s ⏱️

@AugustinMauroy AugustinMauroy added this pull request to the merge queue Sep 16, 2024
Merged via the queue into main with commit d9e0865 Sep 16, 2024
14 checks passed
@AugustinMauroy AugustinMauroy deleted the crowdin-format-fix branch September 16, 2024 07:59
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.

4 participants