diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c1de738 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:tunnel-agent:20170305': + - next > glob-promise > codeclimate-test-reporter > request > tunnel-agent: + patched: '2018-06-26T07:15:13.973Z' diff --git a/package.json b/package.json index e1a1ef6..f6853bf 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,9 @@ "eslint-check": "eslint --print-config package.json | eslint-config-prettier-check", "prettier": "prettier --ignore-path './.next/*' --config 'package.json' --write '**/*.js'", "fix": "eslint **/*.js --fix", - "lint": "eslint -- ." + "lint": "eslint -- .", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "eslintConfig": { "parser": "babel-eslint", @@ -125,7 +127,8 @@ "reselect": "^3.0.1", "seamless-immutable": "7.1.2", "styled-components": "^2.2.2", - "sw-precache-webpack-plugin": "0.11.4" + "sw-precache-webpack-plugin": "0.11.4", + "snyk": "^1.85.0" }, "devDependencies": { "babel-eslint": "8.0.1", @@ -140,5 +143,6 @@ "eslint-plugin-redux-saga": "0.5.0", "prettier": "1.7.4", "redux-devtools-extension": "2.13.2" - } + }, + "snyk": true }