Skip to content

Add linting and formatting checks for the grammar#302

Merged
aspeddro merged 8 commits into
rescript-lang:mainfrom
aspeddro:sanitize-code-tooling
Jul 13, 2026
Merged

Add linting and formatting checks for the grammar#302
aspeddro merged 8 commits into
rescript-lang:mainfrom
aspeddro:sanitize-code-tooling

Conversation

@aspeddro

@aspeddro aspeddro commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR standardizes the code quality tooling used for grammar.js and enforces it in CI.

Changes

  • Add the official Tree-sitter ESLint configuration.
  • Add Prettier configuration and formatting scripts.
  • Format grammar.js consistently with single quotes and trailing commas.
  • Add JSDoc types and behavior descriptions for grammar helper functions.
  • Add a lint workflow that checks ESLint, formatting, and generated parser consistency.
  • Update the Tree-sitter CLI and regenerate parser artifacts.
  • Update GitHub Actions and use Node.js 22 for compatibility.
  • Configure consistent indentation for corpus test files.
  • Add an update-tests script for refreshing corpus expectations.

@aspeddro aspeddro changed the title Sanitize code and tooling Add linting and formatting checks for the grammar Jul 13, 2026
@aspeddro
aspeddro merged commit e356c0e into rescript-lang:main Jul 13, 2026
4 checks passed
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