Skip to content

Add linting workflow and update Prettier configuration - #535

Merged
jliermann merged 5 commits into
mainfrom
lint
Aug 26, 2026
Merged

Add linting workflow and update Prettier configuration#535
jliermann merged 5 commits into
mainfrom
lint

Conversation

@jliermann

Copy link
Copy Markdown
Contributor

This pull request introduces a comprehensive linting workflow for the project, adds and updates formatting configuration, and documents the new linting commands. The main goal is to automate and standardize code and content linting across the repository, improving code quality and consistency.

Linting workflow and automation:

  • Added a new GitHub Actions workflow .github/workflows/lint.yml to automatically run linting and formatting checks on pull requests and pushes to key branches, as well as on manual dispatch. The workflow installs dependencies, runs content lint, detects changed files, and applies Prettier formatting checks to only those files.

Formatting configuration:

  • Added a .prettierignore file to exclude common build, dependency, and output directories from Prettier formatting.
  • Simplified the .prettierrc file to include only core Prettier configuration options, removing editor-specific settings and language overrides.

Package and dependency updates:

  • Updated package.json to add scripts for running content and formatting lint (lint, lint:all, lint:format, lint:content, lint:fix), and added prettier and lint as development dependencies. Also updated @crowdin/cli to the latest patch version. [1] [2]

Documentation:

  • Updated readme/testing.md to document the new linting commands and fixed minor formatting issues for consistency. [1] [2]

Add a new GitHub Actions lint workflow for pull requests, pushes to main/localisation, and manual runs.
Run content validation first, then run formatting checks only on changed files to avoid blocking on legacy formatting drift.
Add npm scripts for standard linting, full linting, format checks, and automatic fixes:
lint for default content validation
lint:all for combined format and content checks
lint:format for Prettier check
lint:fix for automatic formatting
Add Prettier as a direct dev dependency and update the lockfile accordingly.
Simplify Prettier configuration to valid formatter-only options and remove editor-specific settings.
Add a Prettier ignore list for dependencies, generated artifacts, and package-lock.json.
Update local testing docs with the new lint commands and recommended default flow.
Result: reliable CI linting for new changes while intentionally ignoring legacy formatting debt.
@jliermann
jliermann merged commit 2998c57 into main Aug 26, 2026
2 checks passed
@jliermann
jliermann deleted the lint branch August 26, 2026 12:08
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