User Details
User Details
- User Since
- Nov 8 2016, 1:58 PM (419 w, 2 d)
- Availability
- Available
Nov 8 2016
Nov 8 2016
• Amerr added a comment to T6653: Script and regex linter could use some examples.
In T6653#167413, @maccath wrote:For reference and the benefit of people Googling how to configure a script and regex linter, here is a full example (using sass-lint):
.arcconfig file:
{ "linters": { // snip ... "sass": { "type": "script-and-regex", "include": "(\\.scss$)", "script-and-regex.script": "sh -c 'sass-lint -v \"$0\" || true'", "script-and-regex.regex": "(^((?P<file>.+): line (?P<line>[0-9]+), col (?P<col>[0-9]+), (?P<severity>[^\\-]*) - (?P<message>.*) \\((?P<name>[a-z\\-]+)\\))$)m" } }