@putout/plugin-split-variable-declarations
putout plugin adds ability to find and remove process.exit
Last updated 7 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-split-variable-declarations 
SYNC missed versions from official npm registry.

@putout/plugin-split-variable-declarations NPM version

  • The let statement declares a block-scoped local variable, optionally initializing it to a value.
  • const statements are also block-scoped. The value of a constant can't be changed through reassignment, and it can't be redeclared. However, if a constant is an object or array its properties or items can be updated or removed.

(c) MDN

????Putout plugin adds ability to find and split variable declarations because (re)moving a line is simpler and less error prone then changing coma (,) to colon (;). For the same reason, diff of changed declarations are more comfortable to read. Merged with @putout/plugin-variables.

Install

npm i @putout/plugin-split-variable-declarations

Rule

{
    "rules": {
        "split-variable-declarations": "on"
    }
}

❌ Example of incorrect code

let a, b;

✅ Example of correct code

let a;
let b;

Comparison

Linter Rule Fix
???? Putout remove-debugger
ESLint no-var

License

MIT

Current Tags

  • 5.0.2                                ...           latest (4 months ago)

18 Versions

  • 5.0.2                                ...           4 months ago
  • 5.0.1                                ...           8 months ago
  • 5.0.0                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.0.0                                ...           3 years ago
  • 2.1.1                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.0                                ...           6 years ago
  • 1.3.3                                ...           7 years ago
  • 1.3.2                                ...           7 years ago
  • 1.3.1                                ...           7 years ago
  • 1.3.0                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |