Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 495710

Summary: Broken eslintrc file prevents linting (was: parse error in ES6 files when running find references)
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 12.0   
Target Milestone: 12.0   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Silenio Quarti CLA 2016-06-08 12:06:34 EDT
I am not sure this a problem with the project configuration (.tern-project file). 

Clone https://github.com/reddit/reddit-mobile.git
Open "lib/snooboots/js/button.js"
Put caret in "setState" (line #28)
Run "References -> Project" command

The search panel shows 16 items in the "Parse Error" category (all es6 files).

Open one of those files (i.e. clientLib.es6.js). The editor does not show any parser error.

Is there are parse error?
Comment 1 Michael Rennie CLA 2016-06-08 12:54:34 EDT
Those errors are legit, each of the files has either an import or an export in it, which is a parse error when sourceType is not "module" (don't worry, there is a quickfix for it).

The problem is that the project has a broken eslintrc file - it has parse errors in it, which is, in effect, disabling linting. 

We should handle this better.