eslint-plugin-ebdd

v0.1.1
ESLint environment for Mocha EBDD interface
bdd ebdd eslint eslint-plugin eslintplugin mocha test

eslint-plugin-ebdd ยท npm version

ESLint environment for Mocha EBDD interface.

Installation

Install ESLint and eslint-plugin-ebdd:

npm i --save-dev eslint eslint-plugin-ebdd

Note

If you installed ESLint globally (using the -g flag) then you must also install plugins globally:

npm i -g eslint-plugin-ebdd

Usage

Flat Config

Import "eslint-plugin-ebdd" in your eslint.config.js configuration file. Use the globals export to define languageOptions.globals in your config.

import { globals: ebddGlobals } from "eslint-plugin-ebdd";

export default [{ languageOptions: { globals: ebddGlobals } }];

Legacy Config

Add "ebdd" to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix. Then configure the environment ebdd/ebdd under the "env" section.

{
    "plugins": [
        "ebdd"
    ],
    "env": {
        "ebdd/ebdd": true
    }
}

Metadata

  • ISC
  • Whatever
  • Francesco Trotta
  • released 10/27/2019

Downloads

Maintainers