Skip to content

Maintenance: improve husky pre-commit hook #1359

Closed
@dreamorosi

Description

@dreamorosi

Summary

As reported by @shdq on Discord, the current iteration of the pre-commit hook defined is not applying the eslint fixes in the correct order, and instead it's doing so in the files already committed.

Why is this needed?

The expected behavior should be to lint the staged files instead and fix them before they are committed.

Which area does this relate to?

Automation

Solution

No response

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

Labels

automationThis item relates to automationcompletedThis item is complete and has been merged/shippedinternalPRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions