From cbfbb90293a713200c4177b4a79247c39ae929d0 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 7 Jul 2020 08:52:32 +0100 Subject: [PATCH 1/3] chore(scripts): use gitignore for ignore-path options --- .prettierignore | 8 -------- package.json | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 .prettierignore diff --git a/.prettierignore b/.prettierignore deleted file mode 100644 index ad1d803c..00000000 --- a/.prettierignore +++ /dev/null @@ -1,8 +0,0 @@ -# blacklist all files -* - -# only format js files in src, json, and md files -!*/ -!src/**/*.js -!*.json -!*.md \ No newline at end of file diff --git a/package.json b/package.json index 49be3b32..2747fd36 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,8 @@ "doc": "jsdoc2md src/index.js > API.md && prettier API.md --write", "dupe-check": "yarn jsinspect ./src", "jest": "jest src --coverage", - "lint": "eslint . --cache --ext js,jsx,ts,tsx", - "prettier": "prettier . --write", + "lint": "eslint . --cache --ext js,jsx,ts,tsx --ignore-path .gitignore", + "prettier": "prettier . --write --ignore-path .gitignore", "test": "yarn lint && yarn test-only", "test-coverage": "cross-env NODE_ENV=test jest --coverage --runInBand", "test-only": "cross-env NODE_ENV=test jest --detectOpenHandles --runInBand" From dc6784ead72cd1766b83ffcaea2044054458e57f Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 7 Jul 2020 08:52:53 +0100 Subject: [PATCH 2/3] build(travis): remove osx os from allowed failures --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index fd7411b0..1ac8ab75 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,8 +25,6 @@ branches: script: echo "Running tests against $(node -v)..." jobs: - allow_failures: - - os: osx include: - stage: Produce Coverage node_js: node From 48a9d3824080d9f07ab5672d47c549c264c15f6e Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 8 Jul 2020 12:02:47 +0100 Subject: [PATCH 3/3] build(travis): use lts version of node for jobs --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1ac8ab75..0957b4a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,11 +27,11 @@ script: echo "Running tests against $(node -v)..." jobs: include: - stage: Produce Coverage - node_js: node + node_js: lts/* os: windows script: jest --coverage && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage - stage: NPM release - node_js: node + node_js: lts/* os: linux deploy: provider: npm