mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
lint
This commit is contained in:
parent
fb4e5948fa
commit
07897a2174
36 changed files with 434 additions and 310 deletions
|
@ -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"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue