Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES6 linting reporting wrong line numbers #147

Closed
zanona opened this issue Feb 8, 2016 · 4 comments
Closed

ES6 linting reporting wrong line numbers #147

zanona opened this issue Feb 8, 2016 · 4 comments

Comments

@zanona
Copy link

zanona commented Feb 8, 2016

Hey there,
when listing with the flag --edition=es6, apparently the errors returned are reporting one line before than where the issue really is?

Please see below:

/*1*/ /*jslint es6:true*/
/*2*/ (function () {
/*3*/     'use strict';
/*4*/     let a = 1,
/*5*/         b = 2; 
/*6*/ }());
$ jslint --edition=es6 --version
node-jslint version: 0.9.6  JSLint edition 2015-12-26
$ jslint --edition=es6 es6-test.js 
es6-test.js
 #1 Unused 'a'.
    let a = 1, // Line 3, Pos 8 #=> Should be line 4
 #2 Unused 'b'.
    b = 2; // Line 4, Pos 8  #=> Should be line 5
@ghost
Copy link

ghost commented Mar 19, 2016

@zanona
Copy link
Author

zanona commented Mar 19, 2016

@nikage Yes :) Migrated to ESLint last week, never been happier and feeling the freedom 😎

@pmw57
Copy link
Contributor

pmw57 commented Apr 11, 2016

This is being handled in issue #135

@smikes
Copy link
Collaborator

smikes commented May 16, 2016

Possibly fixed by new version 0.9.8 - if not fixed, please open a new issue.

Thanks!

@smikes smikes closed this as completed May 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants