From 60e6bed770d86895dace5f3b0abb83924da0522f Mon Sep 17 00:00:00 2001 From: Diogo Felix Date: Thu, 31 Oct 2019 22:55:47 -0300 Subject: [PATCH 1/4] Upgrade dependencies --- lib/__snapshots__/index.test.js.snap | 4 ++++ package.json | 28 ++++++++++++++-------------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/lib/__snapshots__/index.test.js.snap b/lib/__snapshots__/index.test.js.snap index bf9779c..c71b79a 100644 --- a/lib/__snapshots__/index.test.js.snap +++ b/lib/__snapshots__/index.test.js.snap @@ -3,6 +3,7 @@ exports[`stylelint-no-unsupported-browser-features ignore option should ignore a single property 1`] = ` Object { "deprecations": Array [], + "errored": false, "invalidOptionWarnings": Array [], "parseErrors": Array [], "warnings": Array [], @@ -12,6 +13,7 @@ Object { exports[`stylelint-no-unsupported-browser-features ignore option should ignore multiple properties 1`] = ` Object { "deprecations": Array [], + "errored": false, "invalidOptionWarnings": Array [], "parseErrors": Array [], "warnings": Array [], @@ -21,6 +23,7 @@ Object { exports[`stylelint-no-unsupported-browser-features multiple browsers should allow display:table for IE 8 and IE 9 1`] = ` Object { "deprecations": Array [], + "errored": false, "invalidOptionWarnings": Array [], "parseErrors": Array [], "warnings": Array [], @@ -48,6 +51,7 @@ Object { exports[`stylelint-no-unsupported-browser-features single browser should allow display:table for IE 8 1`] = ` Object { "deprecations": Array [], + "errored": false, "invalidOptionWarnings": Array [], "parseErrors": Array [], "warnings": Array [], diff --git a/package.json b/package.json index 11d8dd7..a4b672a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stylelint-no-unsupported-browser-features", - "version": "3.0.2", + "version": "3.0.3", "description": "Disallow features that are unsupported by the browsers that you are targeting", "homepage": "https://github.com/ismay/stylelint-no-unsupported-browser-features#readme", "author": "ismay", @@ -49,23 +49,23 @@ }, "dependencies": { "doiuse": "^4.2.0", - "lodash": "^4.17.4", - "postcss": "^7.0.0" + "lodash": "^4.17.15", + "postcss": "^7.0.21" }, "peerDependencies": { - "stylelint": ">=5.0.0" + "stylelint": ">=11.1.1" }, "devDependencies": { - "coveralls": "^3.0.0", - "eslint": "^4.19.1", - "eslint-config-airbnb-base": "^13.0.0", - "eslint-config-prettier": "^2.9.0", - "eslint-plugin-import": "^2.13.0", - "husky": "^0.14.3", - "jest": "^23.4.1", + "coveralls": "^3.0.7", + "eslint": "^6.6.0", + "eslint-config-airbnb-base": "^14.0.0", + "eslint-config-prettier": "^6.5.0", + "eslint-plugin-import": "^2.18.2", + "husky": "^3.0.9", + "jest": "^24.9.0", "key-del": "^1.3.0", - "lint-staged": "^7.0.0", - "prettier": "^1.13.2", - "stylelint": "^9.0.0" + "lint-staged": "^9.4.2", + "prettier": "^1.18.2", + "stylelint": "^11.1.1" } } From cf4f93fb718d41c29ea92add224cf78db7955542 Mon Sep 17 00:00:00 2001 From: Diogo Felix Date: Thu, 31 Oct 2019 23:05:50 -0300 Subject: [PATCH 2/4] Move husky from scripts to husky.hooks --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a4b672a..d27aa64 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "lib" ], "scripts": { - "precommit": "lint-staged", "test": "jest", "test:coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls", "lint:prettier": "prettier --list-different '**/*.js'", @@ -67,5 +66,10 @@ "lint-staged": "^9.4.2", "prettier": "^1.18.2", "stylelint": "^11.1.1" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } } } From 758db4801503204c03155884a0c8252dd1e379dc Mon Sep 17 00:00:00 2001 From: ismay Date: Sun, 3 Nov 2019 09:35:59 +0100 Subject: [PATCH 3/4] Drop unsupported node versions for travis --- .travis.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index fc0f3f0..4a156ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,8 @@ language: node_js -cache: - directories: - - node_modules +node_js: lts/* notifications: email: false -node_js: - - "6" - - "8" - - "10" -jobs: - include: - - stage: coverage - node_js: "10" - script: - - npm run test:coverage - - stage: lint - node_js: "10" - script: - - npm run lint:prettier - - npm run lint:js +script: + - npm run lint:prettier + - npm run lint:js + - npm run test:coverage From eff18390e7453656411784166e12581f26ac0867 Mon Sep 17 00:00:00 2001 From: ismay Date: Sun, 3 Nov 2019 09:54:40 +0100 Subject: [PATCH 4/4] Revert version bump --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d27aa64..0898dba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stylelint-no-unsupported-browser-features", - "version": "3.0.3", + "version": "3.0.2", "description": "Disallow features that are unsupported by the browsers that you are targeting", "homepage": "https://github.com/ismay/stylelint-no-unsupported-browser-features#readme", "author": "ismay",