eslint-plugin-ebdd

0.2.0 • Public • Published

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
    }
}

Package Sidebar

Install

npm i eslint-plugin-ebdd

Weekly Downloads

3

Version

0.2.0

License

ISC

Unpacked Size

3.44 kB

Total Files

4

Last publish

Collaborators

  • fasttime