mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-08 22:33:11 -04:00
9 lines
250 B
JavaScript
9 lines
250 B
JavaScript
// lint-staged.js
|
|
const { execSync } = require("child_process");
|
|
const files = process.argv
|
|
.slice(2)
|
|
.filter((f) => /^src\/.*\.(js|jsx|ts|tsx)$/.test(f));
|
|
if (files.length) {
|
|
execSync(`yarn eslint ${files.join(" ")}`, { stdio: "inherit" });
|
|
}
|