prettier: format and check stylesheets

This commit is contained in:
Jesse Chan
2020-08-14 13:44:35 +08:00
parent 24dff9a057
commit f4f83f6efc
49 changed files with 128 additions and 455 deletions

View File

@@ -4,7 +4,7 @@ const glob = require('glob');
const path = require('path');
const prettier = require('prettier');
const SOURCE_PATTERN = `{client,scripts,server,shared}${path.sep}!(assets){${path.sep},}{**${path.sep}*,*}.{js,jsx,ts,tsx,json,md}`;
const SOURCE_PATTERN = `{client,scripts,server,shared}${path.sep}!(assets){${path.sep},}{**${path.sep}*,*}.{js,jsx,ts,tsx,json,md,css,scss,sass,less}`;
const readFile = (filePath) => {
return new Promise((resolve, reject) => {