From 3548294e5f50298214e22f6d2e52e2ab15d2ac15 Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Thu, 29 Nov 2018 11:16:40 -0800 Subject: [PATCH] ensure all JS (and JSON) files are prettified pre-commit --- .lintstagedrc.json | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.lintstagedrc.json b/.lintstagedrc.json index 19b7946fff..086ba1b6d1 100644 --- a/.lintstagedrc.json +++ b/.lintstagedrc.json @@ -1,12 +1,6 @@ { "linters": { - "(bin/*|**/*.js)": [ - "prettier-eslint --write", - "git add" - ] + "(bin/*|*.{js,json}|**/*.{js,json})": ["prettier-eslint --write", "git add"] }, - "ignore": [ - "docs/**/*.js", - "test/**/*.fixture.js" - ] + "ignore": ["docs/**/*.js", "test/**/*.fixture.js"] }