OpenLake/PixOss

fix(lintstaged): Setup lintstaged

Open

#2 opened on Aug 14, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (48 forks)auto 404
bugenhancementhelp wanted

Repository metrics

Stars
 (21 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide