Skip to content

chore: enforce code formatting with @stylistic, mirroring nodejs/node#63

Merged
legendecas merged 2 commits into
nodejs:mainfrom
bavulapati:chore/eslint-stylistic
Jun 12, 2026
Merged

chore: enforce code formatting with @stylistic, mirroring nodejs/node#63
legendecas merged 2 commits into
nodejs:mainfrom
bavulapati:chore/eslint-stylistic

Conversation

@bavulapati

Copy link
Copy Markdown
Contributor

Adds machine-enforced JS/TS formatting via @stylistic/eslint-plugin, with rules mirrored from nodejs/node's eslint config — single quotes, trailing commas, 2-space indent, 120 max-len.

Two commits:

  1. add @Stylistic rules — dependency + config (the only commit to review).
  2. format codebase — mechanical eslint --fix, no behavior change.

Deviation from upstream: this repo has TypeScript, so it uses the unified @stylistic/eslint-plugin instead of the JS-only -js package (same rules).

No new CI — the existing lint.yml runs npm run lint on every push/PR, so it now enforces these rules. npm run lint and npm run node:test (40/40) pass.

@legendecas legendecas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@legendecas legendecas merged commit 7ed8b4d into nodejs:main Jun 12, 2026
13 checks passed
@github-project-automation github-project-automation Bot moved this from Need Triage to Done in Node-API Team Project Jun 12, 2026
@bavulapati bavulapati deleted the chore/eslint-stylistic branch June 12, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants