From beb812851643e55dacf2c69f9c9518c2746c9222 Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Sun, 11 Feb 2018 17:07:25 +0100 Subject: [PATCH] chore: add prettylint --- .travis.yml | 3 ++- package.json | 2 ++ yarn.lock | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 66 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 484c118b4..f1c0762b0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ script: - yarn commitlint --from="$TRAVIS_BRANCH" --to="$TRAVIS_COMMIT" - yarn commitlint --from=$TRAVIS_COMMIT - yarn lint +- yarn prettylint - yarn test after_script: greenkeeper-lockfile-upload jobs: @@ -21,7 +22,7 @@ jobs: - stage: danger node_js: 8 os: linux - script: + script: - npx -p danger@^3 danger ci - stage: release node_js: 8 diff --git a/package.json b/package.json index 5fbdef890..54d91a51b 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ }, "scripts": { "lint": "eslint . --ignore-pattern '!.eslintrc.js'", + "prettylint": "prettylint docs/**/*.md README.md package.json", "test": "jest", "precommit": "lint-staged", "commitmsg": "commitlint -e $GIT_PARAMS" @@ -35,6 +36,7 @@ "jest": "^22.0.4", "lint-staged": "^6.0.0", "prettier": "^1.10.2", + "prettylint": "^1.0.0", "semantic-release": "^12.2.2", "travis-deploy-once": "^4.3.1" }, diff --git a/yarn.lock b/yarn.lock index 0fdec00e1..16502caac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -267,6 +267,10 @@ ansi-escapes@^1.0.0: version "1.4.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" +ansi-escapes@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-2.0.0.tgz#5bae52be424878dd9783e8910e3fc2922e83c81b" + ansi-escapes@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.0.0.tgz#ec3e8b4e9f8064fc02c3ac9b65f1c275bda8ef92" @@ -1587,6 +1591,16 @@ eslint-config-prettier@^2.7.0: dependencies: get-stdin "^5.0.1" +eslint-formatter-pretty@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/eslint-formatter-pretty/-/eslint-formatter-pretty-1.3.0.tgz#985d9e41c1f8475f4a090c5dbd2dfcf2821d607e" + dependencies: + ansi-escapes "^2.0.0" + chalk "^2.1.0" + log-symbols "^2.0.0" + plur "^2.1.2" + string-width "^2.0.0" + eslint-plugin-eslint-plugin@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/eslint-plugin-eslint-plugin/-/eslint-plugin-eslint-plugin-1.4.0.tgz#382dc6692a741a52072d5f3fff5dacdcf291ef49" @@ -1600,6 +1614,13 @@ eslint-plugin-node@^6.0.0: resolve "^1.3.3" semver "^5.4.1" +eslint-plugin-prettier@^2.2.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.0.tgz#33e4e228bdb06142d03c560ce04ec23f6c767dd7" + dependencies: + fast-diff "^1.1.1" + jest-docblock "^21.0.0" + eslint-plugin-prettier@^2.3.1: version "2.4.0" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.4.0.tgz#85cab0775c6d5e3344ef01e78d960f166fb93aae" @@ -2099,6 +2120,16 @@ globby@^5.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" +globby@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" + dependencies: + array-union "^1.0.1" + glob "^7.0.3" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + globby@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/globby/-/globby-7.1.1.tgz#fb2ccff9401f8600945dfada97440cca972b8680" @@ -2383,6 +2414,10 @@ invert-kv@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" +irregular-plurals@^1.0.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/irregular-plurals/-/irregular-plurals-1.4.0.tgz#2ca9b033651111855412f16be5d77c62a458a766" + is-arrayish@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" @@ -3105,6 +3140,10 @@ levn@^0.3.0, levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" +lines-and-columns@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" + lint-staged@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-6.0.0.tgz#7ab7d345f2fe302ff196f1de6a005594ace03210" @@ -3360,7 +3399,7 @@ mem@^1.1.0: dependencies: mimic-fn "^1.0.0" -meow@3.7.0, meow@^3.3.0: +meow@3.7.0, meow@^3.3.0, meow@^3.7.0: version "3.7.0" resolved "https://registry.yarnpkg.com/meow/-/meow-3.7.0.tgz#72cb668b425228290abbfa856892587308a801fb" dependencies: @@ -3868,6 +3907,12 @@ pinkie@^2.0.0: version "2.0.4" resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" +plur@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/plur/-/plur-2.1.2.tgz#7482452c1a0f508e3e344eaec312c91c29dc655a" + dependencies: + irregular-plurals "^1.0.0" + pluralize@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-7.0.0.tgz#298b89df8b93b0221dbf421ad2b1b1ea23fc6777" @@ -3910,6 +3955,18 @@ pretty-format@^22.0.6: ansi-regex "^3.0.0" ansi-styles "^3.2.0" +prettylint@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettylint/-/prettylint-1.0.0.tgz#b71720ad9733e098fdd8ebea90c61cda33371aa1" + dependencies: + eslint-formatter-pretty "^1.3.0" + eslint-plugin-prettier "^2.2.0" + globby "^6.1.0" + ignore "^3.3.5" + lines-and-columns "^1.1.6" + meow "^3.7.0" + tslib "^1.8.0" + private@^0.1.6, private@^0.1.7: version "0.1.8" resolved "https://registry.yarnpkg.com/private/-/private-0.1.8.tgz#2381edb3689f7a53d653190060fcf822d2f368ff" @@ -4762,6 +4819,10 @@ trim-right@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" +tslib@^1.8.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.0.tgz#e37a86fda8cbbaf23a057f473c9f4dc64e5fc2e8" + tunnel-agent@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd"