{"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,"search_vec":"'3.1.0':16 '8':19 'activ':68 'after-al':33 'around':27 'auto':41 'auto-fix':40 'blank':25 'block':29 'break':66 'cadenc':58 'chang':67 'config':55 'consist':23 'describ':31 'differenti':43 'enforc':22 'eslint':2,6,18,72,75 'eslint-plugin':74 'eslint-plugin-jest-format':1 'eslintplugin':73 'etc':36 'fixabl':42 'focus':44 'format':5,9,47,78,79 'javascript':71 'jest':4,12,77 'last':61 'like':30 'line':26 'lint':49 'logic':50 'mainten':69 'major':62 'pad':24,80 'plugin':3,7,76 'preset':56 'provid':8 'recommend':52 'releas':57 'rule':10,38 'sole':45 'sporad':60 'status':70 'strict':54 'suit':14 'support':17 'test':13,28,32 'v3.0.0':64 'version':15 'x':20","created_at":"2026-04-25T11:19:44.866435+00:00","updated_at":"2026-04-25T11:19:44.866435+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/dangreenisrael/eslint-plugin-jest-formatting","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-plugin-jest-formatting","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}