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:
Then configure the rule under the rules section in your .eslintrc
file. Here the indent size is set to 4 spaces.
You can also use tabbed indentation: