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

Unexpected linter output #1142

Closed
darioajr opened this issue May 29, 2018 · 6 comments

Comments

@darioajr
Copy link

commented May 29, 2018

"babel-eslint": "7.1.1",
"standard": "10.0.2",
"lint": "standard --verbose | snazzy"
captura de tela 2018-05-29 as 12 16 02

Mac OS 10.13.4
Node v9.11.1
Npm 5.6.0
npm run lint -s

standard: Unexpected linter output:

RangeError: Line number out of range (line 11 requested, but only 10 lines present).
at SourceCode.getIndexFromLoc (/Users/dario/Documents/srm-app/node_modules/eslint/lib/util/source-code.js:389:19)
at Object.fix (/Users/dario/Documents/srm-app/node_modules/eslint/lib/rules/no-multiple-empty-lines.js:116:52)
at RuleContext.report (/Users/dario/Documents/srm-app/node_modules/eslint/lib/rule-context.js:127:34)
at Program:exit.allLines.reduce.concat.reduce (/Users/dario/Documents/srm-app/node_modules/eslint/lib/rules/no-multiple-empty-lines.js:108:37)
at Array.reduce ()
at EventEmitter.Program:exit (/Users/dario/Documents/srm-app/node_modules/eslint/lib/rules/no-multiple-empty-lines.js:93:22)
at EventEmitter.emit (events.js:185:15)
at NodeEventGenerator.applySelector (/Users/dario/Documents/srm-app/node_modules/eslint/lib/util/node-event-generator.js:265:26)
at NodeEventGenerator.applySelectors (/Users/dario/Documents/srm-app/node_modules/eslint/lib/util/node-event-generator.js:294:22)
at NodeEventGenerator.leaveNode (/Users/dario/Documents/srm-app/node_modules/eslint/lib/util/node-event-generator.js:317:14)

If you think this is a bug in standard, open an issue: https://github.com/feross/standard/issues

@darioajr

This comment has been minimized.

Copy link
Author

commented Jun 3, 2018

React Native app

@darioajr

This comment has been minimized.

Copy link
Author

commented Jun 3, 2018

@darioajr

This comment has been minimized.

Copy link
Author

commented Jun 3, 2018

standard --fix don't fix this, show the same error.

@jdkschang

This comment has been minimized.

Copy link

commented Aug 29, 2018

@darioajr if you're still receiving this issue please refer to this babel issue.

can someone close and merge this with issue #1116

@darioajr

This comment has been minimized.

Copy link
Author

commented Sep 11, 2018

@darioajr if you're still receiving this issue please refer to this babel issue.

can someone close and merge this with issue #1116

I also created an issue in babel.

@stale

This comment has been minimized.

Copy link

commented Dec 10, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Dec 10, 2018

@stale stale bot closed this Dec 17, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.