mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-23 17:30:44 +02:00
Add more ESLint rules and change the formatting scripts (#626)
* Add curly rule in ESLint for consistency * Fix rules * More rules * REturn * Push * no else return * prefer const * destructing
This commit is contained in:
@@ -7,9 +7,8 @@ const cli = new CLIEngine({});
|
||||
module.exports = {
|
||||
"*.{js,ts,tsx}": files => {
|
||||
return (
|
||||
"eslint --max-warnings=0 " +
|
||||
files.filter(file => !cli.isPathIgnored(file)).join(" ")
|
||||
"eslint --fix" + files.filter(file => !cli.isPathIgnored(file)).join(" ")
|
||||
);
|
||||
},
|
||||
"*.{js,css,scss,json,md,ts,tsx,html,yml}": ["prettier --write"],
|
||||
"*.{css,scss,json,md,html,yml}": ["prettier --write"],
|
||||
};
|
||||
|
Reference in New Issue
Block a user