diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index 7ba02a2a..84a2476a 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -13,7 +13,7 @@ "eslint-config-prettier": "^8.5.0", "eslint-import-resolver-typescript": "^3.5.0", "eslint-plugin-import": "^2.26.0", - "eslint-plugin-jest": "^26.9.0", + "eslint-plugin-jest": "^27.0.1", "eslint-plugin-jsx-a11y": "^6.6.1", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^4.2.1", diff --git a/packages/eslint-config/src/rules/jest-rules.ts b/packages/eslint-config/src/rules/jest-rules.ts index 389737c3..5efaaba8 100644 --- a/packages/eslint-config/src/rules/jest-rules.ts +++ b/packages/eslint-config/src/rules/jest-rules.ts @@ -17,7 +17,7 @@ const jestRules: eslint.Linter.Config['rules'] = { 'jest/consistent-test-it': 'off', // have control over test and it usages 'jest/expect-expect': 'warn', // enforce assertion to be made in a test body 'jest/max-nested-describe': ['error', { max: 3 }], // enforces a maximum depth to nested describe calls - 'jest/no-alias-methods': 'warn', // disallow alias methods + 'jest/no-alias-methods': 'error', // disallow alias methods 'jest/no-commented-out-tests': 'warn', // disallow commented out tests 'jest/no-conditional-expect': 'error', // prevent calling expect conditionally 'jest/no-conditional-in-test': 'off', // disallow conditional logic in tests @@ -31,7 +31,6 @@ const jestRules: eslint.Linter.Config['rules'] = { 'jest/no-identical-title': 'error', // disallow identical titles 'jest/no-interpolation-in-snapshots': 'error', // disallow string interpolation inside snapshots 'jest/no-jasmine-globals': 'error', // disallow Jasmine globals - 'jest/no-jest-import': 'error', // disallow importing Jest 'jest/no-large-snapshots': 'off', // disallow large snapshots 'jest/no-mocks-import': 'error', // disallow manually importing from __mocks__ 'jest/no-restricted-matchers': 'off', // disallow specific matchers & modifiers diff --git a/yarn.lock b/yarn.lock index ef79a09e..3bf9c3a7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7157,7 +7157,7 @@ __metadata: eslint-config-prettier: ^8.5.0 eslint-import-resolver-typescript: ^3.5.0 eslint-plugin-import: ^2.26.0 - eslint-plugin-jest: ^26.9.0 + eslint-plugin-jest: ^27.0.1 eslint-plugin-jsx-a11y: ^6.6.1 eslint-plugin-node: ^11.1.0 eslint-plugin-prettier: ^4.2.1 @@ -7273,20 +7273,20 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-jest@npm:^26.9.0": - version: 26.9.0 - resolution: "eslint-plugin-jest@npm:26.9.0" +"eslint-plugin-jest@npm:^27.0.1": + version: 27.0.1 + resolution: "eslint-plugin-jest@npm:27.0.1" dependencies: "@typescript-eslint/utils": ^5.10.0 peerDependencies: "@typescript-eslint/eslint-plugin": ^5.0.0 - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 + eslint: ^7.0.0 || ^8.0.0 peerDependenciesMeta: "@typescript-eslint/eslint-plugin": optional: true jest: optional: true - checksum: 6d5fd5c95368f1ca2640389aeb7ce703d6202493c3ec6bdedb4eaca37233710508b0c75829e727765a16fd27029a466d34202bc7f2811c752038ccbbce224400 + checksum: 269d4dc46bb925eb4c19106fd9e03775a863f53e05716628cc47777abc15887775ee47d73c4f8bdd98bb26b7462d8d8f654610bb2a367f8c97881204a2c3f42e languageName: node linkType: hard