@privyid/eslint-plugin-varspacing

A eslint rule for proper var spacing

Usage no npm install needed!

<script type="module">
  import privyidEslintPluginVarspacing from 'https://cdn.skypack.dev/@privyid/eslint-plugin-varspacing';
</script>

README

eslint-plugin-varspacing

Forking from https://gitlab.com/Ma27/eslint-plugin-varspacing

pipeline status npm version Build Status

This plugin ships a simple and fixable ESLint rule to check if variable declarations are properly aligned.

Installation

npm install --save-dev eslint eslint eslint-plugin-varspacing

In order to activate the plugin the following options must be present in .eslintrc:

{
  "plugins": [
    "varspacing"
  ],
  "extends": "plugin:varspacing/recommended"
}

Please refer to the var-spacing docs for further details about the ruleset.

Hacking

It's recommended to use the nix package manager for development purposes. A customized developer shell can be opened like this:

$ nix-shell
[nix-shell]$ npm test

Furthermore it's possible to actually build the package:

nix-build -A package tarball

To regenerate the locked package build run the following command:

node2nix . --supplement-input mocha.json -6 --composition nix/default.nix --node-env nix/node-env.nix --output nix/node-packages.nix --input package.json --supplement-output supplement.nix

License

This module is published under MIT license. Please refer to the LICENSE that was distributed with this package for further legal information.