From 293fbae746b4fadecdd9a391d4d67127c8ac6498 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sun, 18 Nov 2018 09:16:55 -0800 Subject: [PATCH] feat: add `npm run format` script (#279) --- package.json | 1 + test/fixtures/package-empty_expected.json | 1 + test/fixtures/package-normal_expected.json | 1 + 3 files changed, 3 insertions(+) diff --git a/package.json b/package.json index c0ad9478..49782ce2 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"", "lint": "npm-run-all --print-label --parallel lint:*", "prettier:write": "prettier --write --ignore-path .gitignore \"**/*.{html,json,md,yaml,yml}\"", + "format": "npm-run-all --print-label --parallel lint:js:fix prettier:write", "release": "standard-version --sign", "release:dry-run": "npm run release -- --dry-run" }, diff --git a/test/fixtures/package-empty_expected.json b/test/fixtures/package-empty_expected.json index e9364714..b1c2833f 100644 --- a/test/fixtures/package-empty_expected.json +++ b/test/fixtures/package-empty_expected.json @@ -8,6 +8,7 @@ "lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"", "lint": "npm-run-all --print-label --parallel lint:*", "prettier:write": "prettier --write --ignore-path .gitignore \"**/*.{html,json,md,yaml,yml}\"", + "format": "npm-run-all --print-label --parallel lint:js:fix prettier:write", "release": "standard-version --sign", "release:dry-run": "npm run release -- --dry-run" }, diff --git a/test/fixtures/package-normal_expected.json b/test/fixtures/package-normal_expected.json index 7a242d7b..7613c50b 100644 --- a/test/fixtures/package-normal_expected.json +++ b/test/fixtures/package-normal_expected.json @@ -8,6 +8,7 @@ "lint:md": "markdownlint --ignore node_modules --ignore CHANGELOG.md \"**/*.md\"", "lint": "npm-run-all --print-label --parallel lint:*", "prettier:write": "prettier --write --ignore-path .gitignore \"**/*.{html,json,md,yaml,yml}\"", + "format": "npm-run-all --print-label --parallel lint:js:fix prettier:write", "release": "standard-version --sign", "release:dry-run": "npm run release -- --dry-run" },