diff --git a/eslint.config.mjs b/eslint.config.mjs index de25b0cc..6ce497c8 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -5,7 +5,6 @@ import { defineConfig, globalIgnores } from 'eslint/config'; import prettierConfig from 'eslint-config-prettier/flat'; import { importX } from 'eslint-plugin-import-x'; import jest from 'eslint-plugin-jest'; -import * as jestFormatting from 'eslint-plugin-jest-formatting'; import globals from 'globals'; import tseslint from 'typescript-eslint'; @@ -92,7 +91,10 @@ const config = defineConfig( name: 'Jest config', files: ['**/*.test.ts', '**/*.test.js'], ...jest.configs['flat/recommended'], - ...jestFormatting.configs['flat/recommended'], + rules: { + ...jest.configs['flat/recommended'].rules, + 'jest/padding-around-all': 'error', + }, }, { name: 'Plain JS', diff --git a/package.json b/package.json index 9b4332e3..b1fb3dbf 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ "eslint-import-resolver-typescript": "^4.4.4", "eslint-plugin-import-x": "^4.16.1", "eslint-plugin-jest": "^29.0.1", - "eslint-plugin-jest-formatting": "^3.1.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^7.1.0", "eslint-remote-tester": "^3.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 15a272d1..32491258 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,9 +66,6 @@ importers: eslint-plugin-jest: specifier: ^29.0.1 version: 29.0.1(@typescript-eslint/eslint-plugin@8.43.0(@typescript-eslint/parser@8.43.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.7.2))(eslint@9.35.0(jiti@2.5.1))(typescript@5.7.2))(eslint@9.35.0(jiti@2.5.1))(jest@29.7.0(@types/node@22.15.29)(ts-node@10.9.2(@swc/core@1.13.5)(@types/node@22.15.29)(typescript@5.7.2)))(typescript@5.7.2) - eslint-plugin-jest-formatting: - specifier: ^3.1.0 - version: 3.1.0(eslint@9.35.0(jiti@2.5.1)) eslint-plugin-node: specifier: ^11.1.0 version: 11.1.0(eslint@9.35.0(jiti@2.5.1)) @@ -1714,12 +1711,6 @@ packages: '@typescript-eslint/parser': optional: true - eslint-plugin-jest-formatting@3.1.0: - resolution: {integrity: sha512-XyysraZ1JSgGbLSDxjj5HzKKh0glgWf+7CkqxbTqb7zEhW7X2WHo5SBQ8cGhnszKN+2Lj3/oevBlHNbHezoc/A==} - engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - peerDependencies: - eslint: '>=0.8.0' - eslint-plugin-jest@29.0.1: resolution: {integrity: sha512-EE44T0OSMCeXhDrrdsbKAhprobKkPtJTbQz5yEktysNpHeDZTAL1SfDTNKmcFfJkY6yrQLtTKZALrD3j/Gpmiw==} engines: {node: ^20.12.0 || ^22.0.0 || >=24.0.0} @@ -5811,10 +5802,6 @@ snapshots: - supports-color optional: true - eslint-plugin-jest-formatting@3.1.0(eslint@9.35.0(jiti@2.5.1)): - dependencies: - eslint: 9.35.0(jiti@2.5.1) - eslint-plugin-jest@29.0.1(@typescript-eslint/eslint-plugin@8.43.0(@typescript-eslint/parser@8.43.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.7.2))(eslint@9.35.0(jiti@2.5.1))(typescript@5.7.2))(eslint@9.35.0(jiti@2.5.1))(jest@29.7.0(@types/node@22.15.29)(ts-node@10.9.2(@swc/core@1.13.5)(@types/node@22.15.29)(typescript@5.7.2)))(typescript@5.7.2): dependencies: '@typescript-eslint/utils': 8.43.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.7.2) diff --git a/tests/index.test.ts b/tests/index.test.ts index 0d3ab20d..a5f4fcdc 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -60,6 +60,7 @@ it('should export configs that refer to actual rules', () => { 'flat/svelte', 'flat/marko', ]); + const allConfigRules = Object.values(allConfigs) .map((config) => Object.keys(config.rules ?? {})) .reduce((previousValue, currentValue) => [