From 66387721f31fef41bd2b0d89fa0cf694151f50d2 Mon Sep 17 00:00:00 2001 From: "Micael Levi L. Cavalcante" Date: Fri, 27 May 2022 00:05:29 -0400 Subject: [PATCH] chore: fix mismatch between lint-staged config and `format` --- .prettierignore | 3 ++- package.json | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.prettierignore b/.prettierignore index 59fc75a6f04..cb4f4fe9348 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,2 +1,3 @@ packages/**/*.d.ts -packages/**/*.js \ No newline at end of file +packages/**/*.js +.nyc_output diff --git a/package.json b/package.json index 9aa4f8682b9..4803ef2247f 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "clean": "gulp clean:bundle", "codechecks:benchmarks": "codechecks ./tools/benchmarks/check-benchmarks.ts", "coverage": "nyc report --reporter=text-lcov | coveralls", - "format": "prettier \"**/*.ts\" --ignore-path ./.prettierignore --write && git status", + "format": "prettier \"**/*.ts\" \"packages/**/*.json\" --ignore-path ./.prettierignore --write && git status", "postinstall": "opencollective", "test": "nyc mocha packages/**/*.spec.ts --reporter spec", "test:integration": "mocha \"integration/*/{,!(node_modules)/**/}/*.spec.ts\" --reporter spec", @@ -44,7 +44,10 @@ "prepare": "husky install" }, "lint-staged": { - "packages/**/*.{ts,json}": [ + "**/*.ts": [ + "prettier --ignore-path ./.prettierignore --write" + ], + "packages/**/*.json": [ "prettier --ignore-path ./.prettierignore --write" ] },