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

Bug 481045

Summary: Cannot lint a file with unknown rule names
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Carolyn_MacLeod, curtis.windatt.public
Version: 10.0   
Target Milestone: 11.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2015-10-29 14:02:52 EDT
1. I opened a .js file containing an /*eslint*/ block that refers to a rule named "strict". The "strict" rule is implemented in upstream ESLint, but not in Orion.

> /*eslint strict:[1, "global"]*/
> /*eslint-env node*/
> 
> 'use strict';
> 
> var foo;
> 

2. I see an error at the top of the file complaining about the unknown rule:

> ESLint failed to validate this file because an error occurred: Error: Definition for rule 'strict' was not found.

This error kills the linter, preventing me from seeing any other errors.

This is problematic because it means Orion cannot tolerate source files that were authored against the upstream version of ESLint. I expected it to continue linting.