1.0.0-alpha.7 • Published 3 years ago
@bennyeu/lint-staged-config v1.0.0-alpha.7
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();
1.0.0-alpha.7
3 years ago
1.0.0-alpha.6
3 years ago
1.0.0-alpha.5
3 years ago
1.0.0-alpha.4
3 years ago
1.0.0-alpha.1
3 years ago
1.0.0-alpha.3
3 years ago