eslint-plugin-split-classnames
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Installation

Install the plugin with

npm i -D eslint-plugin-split-classnames

Eslint config

Add the following code into your .eslintrc.json config

{
    "plugins": ["split-classnames"],
    "rules": {
        "split-classnames/split-classnames": [
            "error",
            {
                "maxClassNameCharacters": 60,
                "functionName": "classNames"
            }
        ]
    }
}

To automatically split classnames run the following command or use the Vscode ESlint extension with Ctrl - Shift - P and Eslint - Fix all auto fixable problems

eslint --fix .

Package Sidebar

Install

npm i eslint-plugin-split-classnames

Weekly Downloads

33

Version

0.3.0

License

ISC

Unpacked Size

46.2 kB

Total Files

17

Last publish

Collaborators

  • xmorse