From 179dd6969c1b96934b33c9a1e5c934db4dbc3577 Mon Sep 17 00:00:00 2001 From: Chris Breiding Date: Wed, 22 Nov 2017 16:30:38 -0500 Subject: [PATCH] bump eslint plugin and lint precommit --- package-lock.json | 31 ++++++++++++++++++++++++++++--- package.json | 12 ++++++------ 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 801d9de05c..37b3eb2fff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3174,9 +3174,9 @@ } }, "eslint-plugin-cypress-dev": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-cypress-dev/-/eslint-plugin-cypress-dev-1.0.0.tgz", - "integrity": "sha1-IENXAG5+QP1uPFykM5vi+DqfLxc=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-cypress-dev/-/eslint-plugin-cypress-dev-1.1.1.tgz", + "integrity": "sha512-G2o1eoHizcvfZLyXfG9hy6jNd1BaruvJZ4llHg2+auiremZg/Y4ld/X5bWMw9EHsCGHd2iQBQAPskVS1eYPjew==", "dev": true }, "eslint-scope": { @@ -6985,6 +6985,31 @@ "integrity": "sha1-AFeXNFR2TDq8vrKu1hL8lkTmhIg=", "dev": true }, + "husky": { + "version": "0.14.3", + "resolved": "https://registry.npmjs.org/husky/-/husky-0.14.3.tgz", + "integrity": "sha512-e21wivqHpstpoiWA/Yi8eFti8E+sQDSS53cpJsPptPs295QTOQR0ZwnHo2TXy1XOpZFD9rPOd3NpmqTK6uMLJA==", + "dev": true, + "requires": { + "is-ci": "1.0.10", + "normalize-path": "1.0.0", + "strip-indent": "2.0.0" + }, + "dependencies": { + "normalize-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-1.0.0.tgz", + "integrity": "sha1-MtDkcvkf80VwHBWoMRAY07CpA3k=", + "dev": true + }, + "strip-indent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz", + "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=", + "dev": true + } + } + }, "iconv-lite": { "version": "0.4.19", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", diff --git a/package.json b/package.json index 1bae65326b..29e8ea4f1b 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ "url": "https://github.com/cypress-io/cypress-documentation.git" }, "scripts": { - "postinstall": "echo 'This project needs: npm run build'", "deps": "deps-ok && dependency-check . --no-default-entries --entry cy_scripts/deploy.js", "prebuild": "npm run clean && npm run deps && gulp pre:build", "build": "node --stack-size=8192 ./index.js generate", @@ -34,8 +33,8 @@ "test-e2e": "start-server-and-test start http://localhost:2222 cypress:run", "test": "mocha --compilers coffee:coffee-script/register --recursive", "test-watch": "npm run test --silent -- --watch", - "lint": "echo 'linting scripts'", - "postlint": "eslint --fix *.js cy_scripts/*.js scripts/*.js" + "lint": "echo 'Linting scripts...' && eslint --fix *.js cy_scripts/*.js scripts/*.js && echo 'Lint successful'", + "precommit": "npm run lint" }, "devDependencies": { "@cypress/deploy-bits": "1.7.1", @@ -54,7 +53,7 @@ "dependency-check": "^2.9.1", "deps-ok": "^1.2.0", "eslint": "^4.6.1", - "eslint-plugin-cypress-dev": "^1.0.0", + "eslint-plugin-cypress-dev": "^1.1.1", "fs-extra": "^4.0.2", "ggit": "^2.3.0", "git-last": "^1.2.0", @@ -66,6 +65,7 @@ "gulp-debug": "^3.1.0", "gulp-rev-all": "^0.9.7", "human-interval": "^0.1.6", + "husky": "0.14.3", "inquirer": "^4.0.0", "minimist": "^1.2.0", "mocha": "^4.0.1", @@ -77,8 +77,8 @@ "run-sequence": "^2.2.0", "sinon": "^4.1.2", "sinon-chai": "^2.10.0", - "start-server-and-test": "1.0.0", "snap-shot-it": "^4.0.1", + "start-server-and-test": "1.0.0", "underscore.string": "^3.3.4", "wait-on": "^2.0.2", "yamljs": "^0.3.0" @@ -106,4 +106,4 @@ "menuspy": "1.2.1", "scrollingelement": "1.5.2" } -} \ No newline at end of file +}