1.0.0-alpha.7 • Published 3 years ago

@bennyeu/lint-staged-config v1.0.0-alpha.7

Weekly downloads
50
License
MIT
Repository
-
Last release
3 years ago

lint-staged-config

⚠️Note:

  1. When only commit package.json, it will cause the lint-staged prevented an empty git commit error .The solution is set allowEmty to true.
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();