1
0
mirror of https://github.com/excalidraw/excalidraw.git synced 2024-11-02 03:25:53 +01:00
excalidraw/.lintstagedrc.js

16 lines
423 B
JavaScript
Raw Normal View History

const { CLIEngine } = require("eslint");
// see https://github.com/okonet/lint-staged#how-can-i-ignore-files-from-eslintignore-
// for explanation
const cli = new CLIEngine({});
module.exports = {
"*.{js,ts,tsx}": files => {
return (
"eslint --max-warnings=0 " +
files.filter(file => !cli.isPathIgnored(file)).join(" ")
);
},
2020-01-24 11:04:54 +01:00
"*.{js,css,scss,json,md,ts,tsx,html,yml}": ["prettier --write"],
};