0.2.0 • Published 21 days ago

eslint-plugin-ebdd v0.2.0

Weekly downloads
78
License
ISC
Repository
github
Last release
21 days ago

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