OpenLake/PixOss

fix(lintstaged): Setup lintstaged

Open

#2 建立於 2023年8月14日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (48 fork)auto 404
bugenhancementhelp wanted

倉庫指標

Star
 (21 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南