Repository navigation
Add EditorConfig and replace ESLint with Oxc tools - #157
Merged
Merged
Conversation
donatj
force-pushed
the
chore/editorconfig
branch
from
November 3, 2026 08:45
338ce3e to
42467c0
Compare
donatj
marked this pull request as ready for review
November 3, 2026 08:47
Contributor
There was a problem hiding this comment.
🟢 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.