Skip to content

Conversation

TheOneFromNorway
Copy link
Contributor

This is part of a PR chain with 3001 as parent
This includes the mirrors-prettier repo into the pre-commit configuration. This is a different approach than the yarn implementation currently used but testing yields similar results. The two configurations will run in parallel in the lint pipeline with, allowing the pre-commit job to fail while the new approach is being tested

@TheOneFromNorway TheOneFromNorway force-pushed the include_prettier_in_pre-commit branch from 8eec6af to d40d806 Compare April 14, 2025 15:30
@TheOneFromNorway TheOneFromNorway force-pushed the include_prettier_in_pre-commit branch from d40d806 to e95da30 Compare April 14, 2025 15:52
@TheOneFromNorway TheOneFromNorway force-pushed the include_prettier_in_pre-commit branch from e95da30 to 9e2f8b6 Compare April 14, 2025 18:52
@TheOneFromNorway TheOneFromNorway force-pushed the include_prettier_in_pre-commit branch from 9e2f8b6 to 2aec007 Compare April 14, 2025 19:22
@TheOneFromNorway TheOneFromNorway force-pushed the include_prettier_in_pre-commit branch from 2aec007 to f40ec21 Compare April 14, 2025 19:42
@TheOneFromNorway TheOneFromNorway force-pushed the pre-commit_implementation branch from 8d35b96 to 209ff11 Compare April 15, 2025 11:45
- Ensure we are formatting properly and consistently
  - Users can in principle choose to opt out of automatic hooks by not
    installing the tool in the repo
- Simplicity of incluing linting into CI
  - For stability we run them initially in parallel to existing linting
    scripts
- Scalability and futher development is simple as we can use existing
  solutions instead of implementing our own linting setup
- Use existing yarn setup for calling prettier
  - Run with --write to replicate linting script behaviour
  - Will run in parallel to existing linting script in ci for evaluation
    purposes
@TheOneFromNorway TheOneFromNorway force-pushed the include_prettier_in_pre-commit branch from f40ec21 to 9f792ce Compare April 15, 2025 11:54
@tvararu tvararu temporarily deployed to mavis-pr-3396 April 15, 2025 11:54 Inactive
Copy link

@TheOneFromNorway TheOneFromNorway merged commit 33008c0 into pre-commit_implementation Apr 15, 2025
14 checks passed
@TheOneFromNorway TheOneFromNorway deleted the include_prettier_in_pre-commit branch April 15, 2025 12:45
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