My project makes use of the Ace Editor (via Brace and React-Ace).
We set the mode
of the editor to "css"
and embed it in our page. This works just fine, however, by default, we find some of the enabled CSS rule highlighting to be too stringent—some warnings should be "info"; some errors should be "warnings".
How can we disable/enable/modify the set of validation rules used for Info, Error, and Warnings by the Ace Editor in CSS mode?
I believe I've found a relevant line of code in the Ace CSS worker but I'm not sure how to make use of it, nor where to find an exhaustive list of what the validation rule names are, if I did know how to use this function.
The code below is essentially what we use to instantiate the react ace component...
import brace from 'brace';
import AceEditor from 'react-ace';
import 'brace/mode/css';
import 'brace/theme/monokai';
...
<AceEditor
theme="monokai"
mode="css"
showGutter={true}
...
/>