@alicercedigital/eslint-plugin-force-cn

0.0.0 • Public • Published

eslint-plugin-force-cn

force use cn function on class and className of any JSX element

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-force-cn:

npm install eslint-plugin-force-cn --save-dev

Usage

In your configuration file, import the plugin eslint-plugin-force-cn and add force-cn to the plugins key:

import force-cn from "eslint-plugin-force-cn";

export default [
    {
        plugins: {
            force-cn
        }
    }
];

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

import force-cn from "eslint-plugin-force-cn";

export default [
    {
        plugins: {
            force-cn
        },
        rules: {
            "force-cn/rule-name": "warn"
        }
    }
];

Configurations

TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).

Rules

🔧 Automatically fixable by the --fix CLI option.

Name Description 🔧
forceCn Avoid looping over enums. 🔧

Package Sidebar

Install

npm i @alicercedigital/eslint-plugin-force-cn

Weekly Downloads

1

Version

0.0.0

License

MIT

Unpacked Size

4 kB

Total Files

4

Last publish

Collaborators

  • alicerce-digital