Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nate-wilkins/eslint-plugin-bdd
ESLint plugin with rules to lint BDD specs
https://github.com/nate-wilkins/eslint-plugin-bdd
bdd eslint eslint-plugin javascript
Last synced: about 2 months ago
JSON representation
ESLint plugin with rules to lint BDD specs
- Host: GitHub
- URL: https://github.com/nate-wilkins/eslint-plugin-bdd
- Owner: Nate-Wilkins
- License: mit
- Created: 2014-08-22T19:17:30.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T11:25:49.000Z (2 months ago)
- Last Synced: 2024-10-25T07:33:14.799Z (2 months ago)
- Topics: bdd, eslint, eslint-plugin, javascript
- Language: JavaScript
- Homepage: https://www.npmjs.org/package/eslint-plugin-bdd
- Size: 46.9 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [eslint](https://github.com/eslint/eslint)-plugin-bdd
[![npm](http://img.shields.io/npm/v/eslint-plugin-bdd.svg?style=flat-square)](https://www.npmjs.org/package/eslint-plugin-bdd)
[![license](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/Nate-Wilkins/eslint-plugin-bdd/blob/master/LICENSE)
[![status](https://img.shields.io/travis/Nate-Wilkins/eslint-plugin-bdd.svg?style=flat-square)](https://travis-ci.org/Nate-Wilkins/eslint-plugin-bdd)
[![dependencies](https://david-dm.org/nate-wilkins/eslint-plugin-bdd.svg?style=flat-square)](https://david-dm.org/nate-wilkins/eslint-plugin-bdd)> ESLint plugin with rules to lint BDD specs.
```bash
$ npm install eslint-plugin-bdd
```## Usage
Add `bdd` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix.```js
{
"plugins": [
"bdd"
]
}
```Then configure the rules you want to use under the rules section.
```js
{
"rules": {
"bdd/focus": 2,
"bdd/exclude": 2
}
}
```### Supported Rules
- [`bdd/focus`](./docs/rules/focus.md)
- [`bdd/exclude`](./docs/rules/exclude.md)For more examples on what each rule does take a look at the test samples.