{"library":"prettier-plugin-gherkin","title":"prettier-plugin-gherkin","description":"A Prettier plugin that formats Gherkin (.feature) files used by Cucumber and BDD frameworks. The current stable version is 3.1.3, compatible with Prettier 3 (use 1.1.1 for Prettier 2). It enforces consistent indentation, table cell alignment, and spacing in feature files. Differentiators include options like `forceNewlineBetweenStepBlocks` and `escapeBackslashes`, and it integrates seamlessly with Prettier's existing configuration and editor plugins.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install prettier-plugin-gherkin"],"cli":{"name":"prettier","version":null}},"imports":["import prettier from 'prettier'","{\n  \"plugins\": [\"prettier-plugin-gherkin\"]\n}","const prettier = require('prettier');\nconst plugin = require('prettier-plugin-gherkin');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// Install: npm install --save-dev prettier prettier-plugin-gherkin\n// .prettierrc\n{\n  \"plugins\": [\"prettier-plugin-gherkin\"],\n  \"forceNewlineBetweenStepBlocks\": true,\n  \"escapeBackslashes\": false\n}","lang":"javascript","description":"Shows installation via npm and minimal Prettier configuration to activate the plugin and set options.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}