/eslint-plugin-bayzat

Custom rules used by FE team in Bayzat

Primary LanguageJavaScript

eslint-plugin-bayzat

ESLint plugin with custom rules we use at Bayzat

Installation

You'll first need to install ESLint:

$ yarn add -D eslint

Next, install eslint-plugin-bayzat:

$ yarn add -D eslint-plugin-bayzat

Note: If you installed ESLint globally then you must also install eslint-plugin-bayzat globally.

Usage

Add bayzat to the plugins section of your .eslintrc.js configuration file. You can omit the eslint-plugin- prefix:

{
    plugins: [
        'bayzat'
    ]
}

Then configure the rules you want to use under the rules section.

{
    rules: {
        'bayzat/no-jquery': 2
    }
}

Supported Rules