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

0.0.4 • Public • Published

Installation

Install the plugin with

npm i -D eslint-plugin-short-classnames

Eslint config

Add the following code into your .eslintrc.json config

{
    "plugins": ["short-classnames"],
    "rules": {
        "short-classnames/short-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-short-classnames

Weekly Downloads

2

Version

0.0.4

License

ISC

Unpacked Size

75.9 kB

Total Files

28

Last publish

Collaborators

  • xmorse