This plugin aims to implement a eslint rule like object-spacing
, but for variables.
Install ESLint and this plugin globally:
npm install -g eslint eslint-plugin-varspacing
If you'd like to install ESLint
locally, this plugin must be installed locally, too.
This plugin must be added to the plugins
section in the .eslintrc
:
{
"plugins": [
"varspacing"
]
}
This plugin contains one rule only, the var-spacing
rule:
{
"extends": "plugin:varspacing/recommended"
}
It's possible to use this module with the nix
package manager based on node2nix
.
A shell with a node
instance and all loaded npm
dependencies can be opened using the following command:
nix-shell -A shell
This module is published under MIT license. Please refer to the LICENSE
file in the package root.