From df9dc13209cbac075be8bb16186165e467976431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Mon, 9 Sep 2019 11:33:02 +0200 Subject: [PATCH 1/2] Update packages & add new rules --- jest.js | 1 + package.json | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/jest.js b/jest.js index 66cddc2..67727f2 100644 --- a/jest.js +++ b/jest.js @@ -39,6 +39,7 @@ module.exports = { 'jest/no-if': 'error', 'jest/no-standalone-expect': 'off', 'jest/no-try-expect': 'error', + 'jest/require-top-level-describe': 'error', }, env: { 'jest/globals': true, diff --git a/package.json b/package.json index a434a4d..d91d5d9 100644 --- a/package.json +++ b/package.json @@ -38,26 +38,26 @@ }, "homepage": "https://github.com/kentcdodds/eslint-config-kentcdodds#readme", "dependencies": { - "babel-eslint": "^10.0.2", - "eslint-config-prettier": "^6.1.0", + "babel-eslint": "^10.0.3", + "eslint-config-prettier": "^6.2.0", "eslint-import-resolver-webpack": "^0.11.1", "eslint-plugin-babel": "^5.3.0", "eslint-plugin-import": "^2.18.2", - "eslint-plugin-jest": "^22.15.1", + "eslint-plugin-jest": "^22.17.0", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-react": "^7.14.3", - "eslint-plugin-react-hooks": "^1.7.0", + "eslint-plugin-react-hooks": "^2.0.1", "read-pkg-up": "^6.0.0", "semver": "^6.3.0", - "webpack": "^4.39.2" + "webpack": "^4.39.3" }, "peerDependencies": { "eslint": ">=5" }, "devDependencies": { - "eslint": "^6.2.1", + "eslint": "^6.3.0", "eslint-find-rules": "^3.4.0", - "husky": "^3.0.4", + "husky": "^3.0.5", "npm-run-all": "^4.1.5" } } From fc345cbecab8a101892059922b703733cb8aeb1e Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: Mon, 9 Sep 2019 11:01:50 -0600 Subject: [PATCH 2/2] do not enforce require-top-level-describe --- jest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jest.js b/jest.js index 67727f2..dcf9246 100644 --- a/jest.js +++ b/jest.js @@ -39,7 +39,7 @@ module.exports = { 'jest/no-if': 'error', 'jest/no-standalone-expect': 'off', 'jest/no-try-expect': 'error', - 'jest/require-top-level-describe': 'error', + 'jest/require-top-level-describe': 'off', }, env: { 'jest/globals': true,