An ESLint plugin that provides a single fixable rule to enforce proper alignment of variable declarations. Version 1.2.2 is the latest stable release, with infrequent updates. It focuses exclusively on vertical spacing between var/let/const statements, offering automated fixes. Unlike general formatting tools like Prettier or eslint-plugin-prettier, it targets a specific niche, making it lightweight but limited in scope. The plugin is designed for projects that require consistent alignment of variable declarations.
npm install eslint-plugin-varspacingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures ESLint to use the varspacing plugin and enforce the var-spacing rule with colon alignment, then shows how variable declarations are linted and auto-fixed.
Use additional rules like padding-line-between-statements for broader spacing control.
Consider using prettier for formatting instead of specialized rules.
Disable conflicting rules or adjust configurations accordingly.
Run 'npm install eslint-plugin-varspacing --save-dev' and add '"plugins": ["varspacing"]' to .eslintrc.
Add 'plugins: ["varspacing"]' to your ESLint config.
No fix needed; the plugin is standalone.