Skip to content

chore: setup lint and formatter with oxc#7

Open
SyahrulBhudiF wants to merge 2 commits intoglommer:mainfrom
SyahrulBhudiF:main
Open

chore: setup lint and formatter with oxc#7
SyahrulBhudiF wants to merge 2 commits intoglommer:mainfrom
SyahrulBhudiF:main

Conversation

@SyahrulBhudiF
Copy link
Copy Markdown
Contributor

This pull request introduces code quality tooling and applies consistent formatting and linting across the codebase. It adds configuration files for formatting and linting, updates scripts and documentation for style consistency, and enhances the developer workflow with new npm scripts. The most important changes are grouped below:

Tooling and Configuration:

  • Added .oxfmtrc.json and .oxlintrc.json files to configure code formatting (oxfmt) and linting (oxlint) rules for the project. (.oxfmtrc.json, .oxlintrc.json) [1] [2]
  • Updated package.json to add oxfmt and oxlint as dev dependencies, and introduced new npm scripts for linting and formatting (lint, lint:fix, format, format:fix). (package.json) [1] [2]

Code Style and Formatting:

  • Reformatted TypeScript and JavaScript files (e.g., scripts/bench-fts-configs.ts, scripts/bench-fts-slim.ts) to use consistent semicolons, trailing commas, and other style rules as specified in the new formatter config. [1] [2] [3]
  • Updated code examples in README.md to match the new style guidelines (consistent semicolons and formatting).

Documentation Improvements:

  • Fixed Markdown table formatting in README.md for better readability and consistency. [1] [2] [3] [4] [5] [6]
  • Minor documentation clarifications and whitespace adjustments.

These changes collectively improve code consistency, enforce best practices, and streamline the development workflow.

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.

1 participant