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

Bug 483607

Summary: [eslint] Investigate removing Orion-specific changes in ESLint
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 11.0   
Target Milestone: 11.0   
Hardware: All   
OS: All   
See Also: https://git.eclipse.org/r/62420
https://git.eclipse.org/r/62423
https://git.eclipse.org/r/62424
https://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=c48f2eac25f45e245dc864bd7e58bead36a0d97b
Whiteboard:

Description Michael Rennie CLA 2015-12-03 13:05:51 EST
We should go over the list of changes in ESLint and look at ways to get rid of all of our Orion-specific changes.

One candidate would be the changes to the #parse API - we never have ESLint parse the file, so we don;t need to update that function to use esprima + our options
Comment 1 Olivier Thomann CLA 2015-12-04 10:15:49 EST
Right now I limited my changes to eslint.js to the report function.
Orion adds a new parameter (related) and this needs to be properly handled.
Once I am done, we can discuss the best way to work around these modifications.

With that changes, all tests are green except the eslintRuleTests. They need to be reworked as they pass a text directly to the eslint tool. I think we might need to use a validator and go through the ternWorker. Michael, what do you think?
Comment 2 Michael Rennie CLA 2015-12-09 10:30:00 EST
(In reply to Olivier Thomann from comment #1)

> With that changes, all tests are green except the eslintRuleTests. They need
> to be reworked as they pass a text directly to the eslint tool. I think we
> might need to use a validator and go through the ternWorker. Michael, what
> do you think?

That makes the most sense to me. That way all of the rules are tested how they are actually used (via the validator API)
Comment 3 Eclipse Genie CLA 2015-12-10 14:32:08 EST
New Gerrit change created: https://git.eclipse.org/r/62420
Comment 4 Eclipse Genie CLA 2015-12-10 15:12:51 EST
New Gerrit change created: https://git.eclipse.org/r/62423
Comment 5 Eclipse Genie CLA 2015-12-10 15:23:18 EST
New Gerrit change created: https://git.eclipse.org/r/62424
Comment 7 Michael Rennie CLA 2015-12-10 15:36:32 EST
Merged.