Eslint: rule one-var fix to incorrect code when using semicolon-less style

Created on 10 May 2018  路  1Comment  路  Source: eslint/eslint

Tell us about your environment

  • ESLint Version: master
  • Node Version: n
  • npm Version: n

What parser (default, Babel-ESLint, etc.) are you using?
default
Please show your full configuration:

{
  "one-var": 2
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

var i
var j

What did you expect to happen?
it should be fixed to

var i, j

What actually happened? Please include the actual, raw output from ESLint.

var ,
 j
accepted archived due to age bug rule

Most helpful comment

I'll work up a PR for this

>All comments

I'll work up a PR for this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qmmr picture qmmr  路  3Comments

sergeysova picture sergeysova  路  3Comments

nhooyr picture nhooyr  路  3Comments

bedney picture bedney  路  3Comments

lo1tuma picture lo1tuma  路  3Comments