eslint-plugin-indent-class-properties

1.0.3 • Public • Published

eslint-plugin-indent-class-properties

A rule for indentation of class properties.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-indent-class-properties:

$ npm install eslint-plugin-indent-class-properties --save-dev

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

Usage

Add indent-class-properties to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "indent-class-properties"
    ]
}

Then configure the rule under the rules section in your .eslintrc file. Here the indent size is set to 4 spaces.

{
    "rules": {
        "indent-class-properties/indent": ["error", 4]
    }
}

You can also use tabbed indentation:

{
    "rules": {
        "indent-class-properties/indent": ["error", "tab"]
    }
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    311
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    311
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i eslint-plugin-indent-class-properties

Weekly Downloads

311

Version

1.0.3

License

ISC

Unpacked Size

7.18 kB

Total Files

4

Last publish

Collaborators

  • larsmunkholm