@@ -99,7 +99,7 @@
"puppeteer": "^1.10.0"
},
"lint-staged": {
- "**/*.{js,jsx,less}": [
+ "**/*.{js,ts,tsx,json,jsx,less}": [
"node ./scripts/lint-prettier.js",
"git add"
],
@@ -22,6 +22,9 @@ files.forEach(file => {
});
try {
const fileInfo = prettier.getFileInfo.sync(file);
+ if (fileInfo.ignored) {
+ return;
+ }
const input = fs.readFileSync(file, 'utf8');
const withParserOptions = {
...options,
@@ -27,6 +27,9 @@ files.forEach(file => {
config: prettierConfigPath,