diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..d68782580 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - eslint > lodash: + patched: '2020-04-30T21:20:51.291Z' + - eslint > inquirer > lodash: + patched: '2020-04-30T21:20:51.291Z' + - eslint > table > lodash: + patched: '2020-04-30T21:20:51.291Z' diff --git a/package.json b/package.json index 82aa00b6a..2fb299562 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "eslint-plugin-promise": "~3.4.0", "eslint-plugin-react": "~6.7.1", "eslint-plugin-standard": "~2.0.1", - "standard-engine": "~5.2.0" + "standard-engine": "~5.2.0", + "snyk": "^1.316.1" }, "devDependencies": { "babel-eslint": "^7.0.0", @@ -70,6 +71,9 @@ "test-offline": "npm test -- --offline", "test-offline-quick": "npm test -- --offline --quick", "test-quick": "npm test -- --quick", - "update-authors": "./bin/update-authors.sh" - } + "update-authors": "./bin/update-authors.sh", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }