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 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..0898dba 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'", @@ -49,23 +48,28 @@ }, "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" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } } }