0.0.14 • Published 4 years ago

eslint-plugin-fht-eslint-rules v0.0.14

Weekly downloads
118
License
ISC
Repository
github
Last release
4 years ago

generated via yo

https://github.com/eslint/generator-eslint

yo eslint:plugin

create new rule

yo eslint:rule

eslint-plugin-fht-eslint-rules

eslint rules for fht only

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-fht-eslint-rules:

$ npm install eslint-plugin-fht-eslint-rules --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-fht-eslint-rules globally.

Usage

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

{
    "plugins": [
        "fht-eslint-rules"
    ]
}

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

{
    "rules": {
        "fht-eslint-rules/restricted-jquery-methods": 2,
        "fht-eslint-rules/restricted-jquery-methods-error": 2,
        "fht-eslint-rules/no-unknown-jquery-methods": 2,
        "fht-eslint-rules/no-property-assignment-to-window": 2,
        "fht-eslint-rules/never-compare-text-with-string": 2,
        "fht-eslint-rules/function-argument-validator": 2,
        "fht-eslint-rules/jquery-argument-validator": 2,
        "fht-eslint-rules/string-literal-validator": 2,
    }
}

Supported Rules

  • Fill in provided rules here