OpenLake/PixOss

fix(lintstaged): Setup lintstaged

Open

#2 opened on 2023年8月14日

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

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.

コントリビューターガイド