Bug 512330

Summary: [css][lint] Add quickfix to disable csslint rule for file
Product: [ECD] Orion (Archived) Reporter: Curtis Windatt <curtis.windatt.public>
Component: JS ToolsAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P2 CC: Michael_Rennie
Version: 13.0Keywords: noteworthy
Target Milestone: 15.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 490392, 508847    
Bug Blocks:    
Attachments:
Description Flags
Fix is CSSLint supported the option none

Description Curtis Windatt CLA 2017-02-16 16:32:15 EST
We can support the same 'disable rule in file' quickfix for CSS that we did for JS.  This could be very useful as many CSSLint rules are based on subjective style choices.
Comment 1 Curtis Windatt CLA 2017-02-22 15:22:16 EST
Issue blocking this is that our current version of CSSLint does not support any inline directives to disable rules. Looks like it was added over a year ago.

https://github.com/CSSLint/csslint/wiki/Ignoring-parts-of-CSS-during-linting

There is a difference between the CSSLint and ESLint directives.  In CSSLint you can disable a rule only for a single line, or disable all lint rules for a block.
Comment 2 Curtis Windatt CLA 2017-02-22 15:22:56 EST
Created attachment 266948 [details]
Fix is CSSLint supported the option