Skip to content

Conversation

@wwjhu
Copy link
Contributor

@wwjhu wwjhu commented Nov 4, 2025

  • Update some of the dependencies, removes eslint-plugin-prettier which slows down linting.
  • Update GitHub actions to be able to publish to GitHub Packages

wwjhu added 3 commits November 4, 2025 14:00
The main issue: It runs Prettier as an ESLint rule, which means:

Significantly slower linting (Prettier wasn't designed to run this way)
Prettier formatting issues show up as ESLint errors, cluttering your error output with style violations alongside actual code problems
Confusing experience when ESLint reports hundreds of "errors" that are just formatting

Better approach: Run Prettier and ESLint separately:

Use eslint-config-prettier (note: config, not plugin) - this disables ESLint rules that conflict with Prettier
Run Prettier independently (via editor integration, pre-commit hooks, or separate npm scripts)
Let ESLint focus on code quality issues, Prettier handle formatting
Copy link
Contributor

@jaapvanblaaderen jaapvanblaaderen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some small remarks. Maybe it's also nice to have a few words in the readme on how the OIDC auth is configured (link to: https://docs.npmjs.com/trusted-publishers)?

Comment on lines 26 to 30
- name: publish npm stable
uses: epeli/npm-release@v1
with:
type: stable
token: ${{ secrets.NPM_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess specifying the token here should not be needed anymore as this is now covered by the OIDC auth? Also wondering what this action brings instead of just executing npm publish

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but it seems epeli/npm-release requires the token to be set. Not sure if we can continue using that action.

@wwjhu
Copy link
Contributor Author

wwjhu commented Nov 5, 2025

I have some small remarks. Maybe it's also nice to have a few words in the readme on how the OIDC auth is configured (link to: https://docs.npmjs.com/trusted-publishers)?

That makes sense, will add something

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.

3 participants