@bennyeu/lint-staged-config
v1.0.0-alpha.7
Published
⚠️Note:
Downloads
14
Readme
lint-staged-config
⚠️Note:
- When only commit
package.json
, it will cause the lint-stagedprevented an empty git commit
error .The solution is setallowEmty
totrue
.
import lintStaged from "lint-staged";
import { configs } from "@bennyeu/lint-staged-config";
export const runLintStaged = async () => {
await lintStaged({
allowEmpty: true, // <-- set it to true
config: configs,
});
};
runLintStaged();