From c3ab843c292484428f045671ea22cbb30eb70559 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Wed, 4 Mar 2020 13:21:14 -0700 Subject: [PATCH] fix: Drop Node 8 (#459) Closes #430 BREAKING CHANGE: This drops support for Node 8. Node 10 or greater is now required. --- .gitattributes | 3 +-- .gitignore | 5 ----- .prettierignore | 3 +-- .prettierrc | 11 ----------- .prettierrc.js | 1 + .travis.yml | 3 +-- package.json | 12 ++++++------ 7 files changed, 10 insertions(+), 28 deletions(-) delete mode 100644 .prettierrc create mode 100644 .prettierrc.js diff --git a/.gitattributes b/.gitattributes index 391f0a4e..6313b56c 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ -* text=auto -*.js text eol=lf +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index cbf34c78..8e0c70cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,7 @@ node_modules coverage dist -.opt-in -.opt-out .DS_Store -.eslintcache -yarn-error.log -.idea/ # these cause more harm than good # when working with contributors diff --git a/.prettierignore b/.prettierignore index 30117ea2..9c628283 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,4 +1,3 @@ -package.json node_modules -dist coverage +dist diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index f3685197..00000000 --- a/.prettierrc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "printWidth": 80, - "tabWidth": 2, - "useTabs": false, - "semi": false, - "singleQuote": true, - "trailingComma": "all", - "bracketSpacing": false, - "jsxBracketSameLine": false, - "proseWrap": "always" -} diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..4679d9bf --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1 @@ +module.exports = require('kcd-scripts/prettier') diff --git a/.travis.yml b/.travis.yml index 29e7bb78..ae7d5a09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ cache: npm notifications: email: false node_js: - - 10.14 + - 10.18 - 12 - node install: npm install @@ -13,7 +13,6 @@ script: branches: only: - master - - next - beta jobs: diff --git a/package.json b/package.json index 3ef5dcd6..b0ae95a9 100644 --- a/package.json +++ b/package.json @@ -17,19 +17,19 @@ "end-to-end", "e2e" ], - "author": "Kent C. Dodds (https://kentcdodds.com/)", + "author": "Kent C. Dodds (https://kentcdodds.com)", "license": "MIT", "engines": { - "node": ">=8" + "node": ">=10.18" }, "scripts": { "build": "kcd-scripts build --ignore \"**/__tests__/**,**/__node_tests__/**,**/__mocks__/**\" && kcd-scripts build --bundle --no-clean", "lint": "kcd-scripts lint", + "setup": "npm install && npm run validate -s", "test": "kcd-scripts test", - "test:update": "npm test -- --updateSnapshot --coverage", "test:debug": "node --inspect-brk ./node_modules/.bin/jest --watch --runInBand", - "validate": "kcd-scripts validate", - "setup": "npm install && npm run validate -s" + "test:update": "npm test -- --updateSnapshot --coverage", + "validate": "kcd-scripts validate" }, "husky": { "hooks": { @@ -71,7 +71,7 @@ ], "repository": { "type": "git", - "url": "https://github.com/testing-library/dom-testing-library.git" + "url": "https://github.com/testing-library/dom-testing-library" }, "bugs": { "url": "https://github.com/testing-library/dom-testing-library/issues"