From 7613521a8d38fc51f50f70a83ae83a6557fbd36c Mon Sep 17 00:00:00 2001 From: Christopher Hiller Date: Thu, 3 May 2018 20:36:04 -0700 Subject: [PATCH] fix busted lint-staged config --- .lintstagedrc.json | 12 ++++++++++++ package.json | 9 ++------- 2 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .lintstagedrc.json diff --git a/.lintstagedrc.json b/.lintstagedrc.json new file mode 100644 index 0000000000..19b7946fff --- /dev/null +++ b/.lintstagedrc.json @@ -0,0 +1,12 @@ +{ + "linters": { + "(bin/*|**/*.js)": [ + "prettier-eslint --write", + "git add" + ] + }, + "ignore": [ + "docs/**/*.js", + "test/**/*.fixture.js" + ] +} diff --git a/package.json b/package.json index bccad95b68..1c40ba5143 100644 --- a/package.json +++ b/package.json @@ -454,7 +454,8 @@ "scripts": { "prepublishOnly": "nps test clean build", "start": "nps", - "test": "nps test" + "test": "nps test", + "precommit": "lint-staged" }, "dependencies": { "browser-stdout": "1.3.1", @@ -527,12 +528,6 @@ }, "homepage": "https://mochajs.org", "logo": "https://cldup.com/S9uQ-cOLYz.svg", - "lint-staged": { - "*.js": [ - "prettier-eslint --write", - "git add" - ] - }, "prettier": { "singleQuote": true, "bracketSpacing": false