OpenLake/PixOss

fix(lintstaged): Setup lintstaged

Open

#2 aperta il 14 ago 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)TypeScript (48 fork)auto 404
bugenhancementhelp wanted

Metriche repository

Star
 (21 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Description

Lintstaged is installed, but its functionality is not used to its full extent. Husky is linting and formatting every file, but the expected behavior should be that only the changed files should be linted and formatted.

Expected outcome

Commits shouldn't require linting and formatting all the files.

Proposed solution

Change the config file, specify which files need to be linted and formatted, and then use git hook (husky) to lint only staged files, use lintstaged as the library is already installed.

Guida contributor