Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

ensure all JS (and JSON) files are prettified pre-commit

Christopher Hiller3548294e5f50
diff --git a/.lintstagedrc.json b/.lintstagedrc.json
index 19b7946f..086ba1b6 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"]
}