From 4e2ae4d7babba6658c31bffbd2fd32df9b207bf3 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Fri, 17 Aug 2018 12:44:33 +0200 Subject: [PATCH] Unify lint-staged --- package.json | 19 ++++++++++++------- packages/metascraper-amazon/package.json | 6 ------ .../metascraper-clearbit-logo/package.json | 6 ------ .../metascraper-logo-favicon/package.json | 6 ------ packages/metascraper-soundcloud/package.json | 6 ------ packages/metascraper-youtube/package.json | 6 ------ 6 files changed, 12 insertions(+), 37 deletions(-) diff --git a/package.json b/package.json index 7b491c40d..994a49b64 100644 --- a/package.json +++ b/package.json @@ -52,13 +52,18 @@ "private": true, "license": "MIT", "lint-staged": { - "src/**/*.{js,css}": [ - "prettier-standard", - "git add" - ], - "package.json": [ - "finepack", - "git add" + "linters": { + "*.js": [ + "prettier-standard", + "git add" + ], + "package.json": [ + "finepack", + "git add" + ] + }, + "ignore": [ + "static/*.{js, css}" ] }, "standard": { diff --git a/packages/metascraper-amazon/package.json b/packages/metascraper-amazon/package.json index 21eb73d3e..655ea7884 100644 --- a/packages/metascraper-amazon/package.json +++ b/packages/metascraper-amazon/package.json @@ -41,12 +41,6 @@ "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test nyc mocha test" }, "license": "MIT", - "lint-staged": { - "*.js": [ - "prettier-standard", - "git add" - ] - }, "standard": { "env": [ "mocha" diff --git a/packages/metascraper-clearbit-logo/package.json b/packages/metascraper-clearbit-logo/package.json index 7cb87c955..09b41f184 100644 --- a/packages/metascraper-clearbit-logo/package.json +++ b/packages/metascraper-clearbit-logo/package.json @@ -36,12 +36,6 @@ "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test nyc mocha test" }, "license": "MIT", - "lint-staged": { - "*.js": [ - "prettier-standard", - "git add" - ] - }, "standard": { "env": [ "mocha" diff --git a/packages/metascraper-logo-favicon/package.json b/packages/metascraper-logo-favicon/package.json index 7ccf49946..b71aaf4bf 100644 --- a/packages/metascraper-logo-favicon/package.json +++ b/packages/metascraper-logo-favicon/package.json @@ -38,12 +38,6 @@ "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test nyc mocha test" }, "license": "MIT", - "lint-staged": { - "*.js": [ - "prettier-standard", - "git add" - ] - }, "standard": { "env": [ "mocha" diff --git a/packages/metascraper-soundcloud/package.json b/packages/metascraper-soundcloud/package.json index 32f58d383..bdb48657f 100644 --- a/packages/metascraper-soundcloud/package.json +++ b/packages/metascraper-soundcloud/package.json @@ -40,12 +40,6 @@ "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test nyc mocha test" }, "license": "MIT", - "lint-staged": { - "*.js": [ - "prettier-standard", - "git add" - ] - }, "standard": { "env": [ "mocha" diff --git a/packages/metascraper-youtube/package.json b/packages/metascraper-youtube/package.json index 8745e7280..df9ddbe0c 100644 --- a/packages/metascraper-youtube/package.json +++ b/packages/metascraper-youtube/package.json @@ -44,12 +44,6 @@ "test": "NODE_PATH=.. TZ=UTC NODE_ENV=test nyc mocha test" }, "license": "MIT", - "lint-staged": { - "*.js": [ - "prettier-standard", - "git add" - ] - }, "standard": { "env": [ "mocha"