This ESLint plugin provides rules to enforce best practices and prevent common mistakes in BDD-style test suites, such as accidentally leaving focused tests (fit, fdescribe, etc.) or excluded tests (xit, xdescribe). Version 2.1.1 is the current stable release, with a lightweight peer dependency on ESLint >=0.8.0. Unlike similar plugins targeting specific frameworks (mocha, jasmine), this plugin covers multiple BDD frameworks with generic rules.
npm install eslint-plugin-bddVerified import paths — ran on the pinned version, not inferred.
Shows how to configure eslint-plugin-bdd in .eslintrc and demonstrates rule detection of a focused test.
Consider supplementing with framework-specific plugins for more comprehensive coverage.
Use ESLint comment overrides or configure rule options if available. Check docs for regex options.
Set rule severity to 'warn' or disable it during development.
Run npm install eslint-plugin-bdd --save-dev
Use 0, 1, 2 or 'off', 'warn', 'error' (as string) for rule severity.
Add "bdd" to plugins array in .eslintrc and ensure package is installed.