anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.25k stars 51 forks source link

Proposal: `doiuse-disable` inline comment #40

Closed nezed closed 8 years ago

nezed commented 8 years ago

Implement doiuse-disable and doiuse-enable comments in css for ignoring rules per specific files and be more friendly to progressive enhancement Like a istanbul ignore next, eslint-disable [rule], …

Comment-rules usage:

/* doiuse-disable */

Disables all features checks

/* doiuse-disable flexbox, transforms3d */

Disables flexbox checks

/* doiuse-enable */

Enables all feature checks

/* doiuse-enable flexbox */

Enables flexbox checks

Applying rules from file to @imported by postcss-import files (now it applies)

anandthakker commented 8 years ago

:+1: Thanks @nezed !

anandthakker commented 8 years ago

Would you mind adding a section to the README on this before it gets merged in? (Can just copy the usage description you already put above)

nezed commented 8 years ago

@anandthakker sure, but can't decide where the best place in README for it… Maybe in the end of "API Details"?

anandthakker commented 8 years ago

Eh, good point, the readme doesn't have a good place for it.. . Yeah, end of "API Details" is probably fine.

nezed commented 8 years ago

@anandthakker done

anandthakker commented 8 years ago

Awesome, thanks @nezed

nezed commented 8 years ago

Thanks you too @anandthakker

ghost commented 8 years ago

Is there any chance we can get a release for these changes? Thanks in advance!

anandthakker commented 8 years ago

Released as v2.3.0

ghost commented 8 years ago

Legend! :100: Thanks! :smile: :tada: