From 7d6dafe46630d9a1606c7d5139cef1cfc6703459 Mon Sep 17 00:00:00 2001 From: Quaid Bartolomei Date: Mon, 8 Nov 2021 20:11:11 -0800 Subject: [PATCH] fix: lint-staged settings --- .eslintignore | 3 +-- .lintstagedrc.js | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.eslintignore b/.eslintignore index 3c7d66312..4d9e3a006 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,5 +2,4 @@ dist/ coverage/ node_modules/ -package-lock.json -*.css \ No newline at end of file +package-lock.json \ No newline at end of file diff --git a/.lintstagedrc.js b/.lintstagedrc.js index e43f27955..bab90bff2 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -1,4 +1,6 @@ module.exports = { - '*.{js,jsx,ts,tsx,html,css}': ['prettier --write', 'eslint --fix'], - '*.{md,json,yml,yaml}': ['prettier --write'], + // format all file types recognized by prettier + '*': ['prettier --ignore-unknown --write'], + // lint javascript after formatting + '*.{js,jsx}': ['eslint --fix --cache'], };