{"id":19804,"library":"eslint-plugin-jest-formatting","title":"eslint-plugin-jest-formatting","description":"ESLint plugin providing formatting rules for Jest test suites, version 3.1.0 (supports ESLint 8.x). It enforces consistent padding (blank lines) around test blocks like describe, test, after-all, etc. Most rules are auto-fixable. Differentiators: focused solely on formatting (not linting logic), with recommended and strict config presets. Release cadence is sporadic; last major was v3.0.0 with breaking changes. Active maintenance status.","status":"active","version":"3.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/dangreenisrael/eslint-plugin-jest-formatting","tags":["javascript","eslint","eslintplugin","eslint-plugin","jest","format","formatting","padding"],"install":[{"cmd":"npm install eslint-plugin-jest-formatting","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-jest-formatting","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-jest-formatting","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESLint automatically strips the eslint-plugin- prefix for plugin references.","wrong":"plugins: ['eslint-plugin-jest-formatting']","symbol":"plugin","correct":"plugins: ['jest-formatting']"},{"note":"Must include the plugin: prefix when referencing configs.","wrong":"extends: ['jest-formatting/recommended']","symbol":"recommended config","correct":"extends: ['plugin:jest-formatting/recommended']"},{"note":"Strict config enables all rules; plain 'jest-formatting' is invalid.","wrong":"extends: ['jest-formatting']","symbol":"strict config","correct":"extends: ['plugin:jest-formatting/strict']"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"plugins\": [\"jest-formatting\"],\n  \"rules\": {\n    \"jest-formatting/padding-around-describe-blocks\": 2,\n    \"jest-formatting/padding-around-test-blocks\": 2\n  }\n}\n\n// test file example\ndescribe('suite', () => {\n  beforeEach(() => {\n    jest.clearAllMocks();\n  });\n\n  it('test', () => {\n    expect(true).toBe(true);\n  });\n});","lang":"javascript","description":"Configures ESLint to enforce padding around describe and test blocks in Jest files."},"warnings":[{"fix":"Review tests that relied on padding between consecutive awaits or sync statements; adjust expectations accordingly.","message":"Breaking change in v3.0.0: Padding is no longer enforced between statements and awaited statements of the same kind.","severity":"breaking","affected_versions":"3.0.0 - 3.1.0"},{"fix":"Migrate to the new padding-around-* rules (e.g., padding-around-test-blocks instead of padding-before-test-blocks).","message":"Breaking change in v3.0.0: Removed deprecated rules (padding-before-*).","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Update Node to a supported version (10.12+ or 12+).","message":"Breaking change in v2.0.0: Minimum Node version raised to ^10.12.0 || >=12.0.0.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use new rule names: 'padding-around-test-blocks' etc.","message":"Old rule names like 'padding-before-test-blocks' are deprecated in v1.1.1+.","severity":"deprecated","affected_versions":">=1.1.1"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install eslint-plugin-jest-formatting --save-dev' and add 'jest-formatting' to plugins in .eslintrc.","cause":"Plugin not installed or not in ESLint plugins config.","error":"Definition for rule 'jest-formatting/padding-around-describe-blocks' was not found."},{"fix":"Use 'extends: [\"plugin:jest-formatting/recommended\"]' instead of 'extends: [\"jest-formatting/recommended\"]'.","cause":"Missing 'plugin:' prefix in extends.","error":"ESLint couldn't find the config \"plugin:jest-formatting/recommended\"."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}