9 lines
244 B
JavaScript
9 lines
244 B
JavaScript
|
import path from "node:path";
|
||
|
|
||
|
const CONFIG_PATH = path.resolve(import.meta.dirname, "eslint.config.js");
|
||
|
|
||
|
export default {
|
||
|
"*.{js,jsx,mjs,ts,tsx}": (filenames) =>
|
||
|
`eslint --config ${CONFIG_PATH} --cache --fix ${filenames.join(" ")}`,
|
||
|
};
|