From 09c30189c4defa604c8771f581f816a449178da0 Mon Sep 17 00:00:00 2001 From: Lipis Date: Thu, 1 Feb 2018 11:56:58 +0100 Subject: [PATCH] Simplify package.json --- package.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 32fa8cc1..fd9b7925 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build-lib": "BABEL_ENV=publish babel lib -d dist --ignore __tests__ --copy-files", "clean": "rimraf dist/", "flow": "flow", - "format": "eslint --fix ./lib ./tests/src ./tests/lib", + "format": "npm run lint -- --fix", "lint": "eslint ./lib ./tests/src ./tests/lib", "precommit": "lint-staged", "prepublish": "npm run clean && npm run build", @@ -131,11 +131,7 @@ "eslint --fix", "git add" ], - "tests/src/**/*.js": [ - "eslint --fix", - "git add" - ], - "tests/lib/**/*.js": [ + "tests/{src|lib}/**/*.js": [ "eslint --fix", "git add" ]