This commit is contained in:
dwelle 2023-09-04 00:31:27 +02:00
parent fb4e5948fa
commit 07897a2174
36 changed files with 434 additions and 310 deletions

View file

@ -5,9 +5,10 @@ const { CLIEngine } = require("eslint");
const cli = new CLIEngine({});
module.exports = {
"*.{js,ts,tsx}": files => {
"*.{js,ts,tsx}": (files) => {
return (
"eslint --max-warnings=0 --fix " + files.filter(file => !cli.isPathIgnored(file)).join(" ")
"eslint --max-warnings=0 --fix " +
files.filter((file) => !cli.isPathIgnored(file)).join(" ")
);
},
"*.{css,scss,json,md,html,yml}": ["prettier --write"],