@bennyeu/lint-staged-config

⚠️Note:

Usage no npm install needed!

<script type="module">
  import bennyeuLintStagedConfig from 'https://cdn.skypack.dev/@bennyeu/lint-staged-config';
</script>

README

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();