Skip to content

Add EditorConfig and replace ESLint with Oxc tools - #157

Merged
donatj merged 3 commits into
masterfrom
chore/editorconfig
Nov 3, 2026
Merged

donatj merged 3 commits into
masterfrom
chore/editorconfig

Conversation

@donatj

@donatj donatj commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

The project needs shared editor settings and consistent checks for source formatting and code quality.

Add EditorConfig. Replace ESLint with Oxlint and Oxfmt, using the settings from CsvToMarkdownTable. Format the source and regenerate the committed output. Run formatting and lint checks in continuous integration.

Validation: clean dependency install, build, formatting and lint checks, and command-line flag tests. Verified that a second build leaves generated output unchanged.

@donatj donatj changed the title Add project EditorConfig Add EditorConfig and replace ESLint with Oxc tools Nov 3, 2026
@donatj
donatj force-pushed the chore/editorconfig branch from 338ce3e to 42467c0 Compare November 3, 2026 08:45
@donatj
donatj marked this pull request as ready for review November 3, 2026 08:47
Copilot AI balanced review requested due to automatic review settings November 3, 2026 08:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are recorded for the tooling and formatting changes.

No open issues 🎉

What changed in this PR

Standardizes editor settings and replaces ESLint with Oxlint and Oxfmt for the Shielded.dev CLI and SDK, adding automated formatting and lint checks.

Changes:

  • Adds shared editor, formatter, and linter configuration and updates dependencies and scripts.
  • Reformats source and existing tests, regenerates committed output, and limits TypeScript compilation to src.
  • Adds a dedicated CI quality job and updates package exclusions for the new tooling.
File Description
tsconfig.json Limits compilation inputs to src.
test/​mock-fetch.cjs Reformats the fetch mock without changing behavior.
test/​cli.test.cjs Reformats existing CLI tests.
src/​sdk.ts Applies consistent SDK formatting.
src/​bin.ts Applies consistent CLI formatting.
package.json Replaces ESLint dependencies and adds Oxc scripts.
package-lock.json Records the updated tooling dependencies.
oxlint.config.mts Configures Node.js linting and error categories.
oxfmt.config.mts Defines shared formatting settings.
dist/​sdk.js Regenerates SDK JavaScript from formatted source.
dist/​sdk.d.ts Updates generated declaration formatting.
dist/​pkg.json Synchronizes generated package metadata.
dist/​bin.js Regenerates CLI JavaScript from formatted source.
.oxfmtignore Excludes generated output and source package metadata.
.npmignore Excludes Oxc configuration from published packages.
.github/​workflows/​ci.yml Adds a dedicated formatting and lint job.
.eslintrc.cjs Removes the obsolete ESLint configuration.
.editorconfig Defines encoding, line endings, and indentation.

Review effort: Balanced

@donatj
donatj merged commit 6f43b2c into master Nov 3, 2026
7 checks passed
@donatj
donatj deleted the chore/editorconfig branch November 3, 2026 08:50
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.

2 participants