User Details
User Details
- User Since
- Sep 26 2012, 11:02 AM (638 w, 1 h)
- Availability
- Available
Jun 1 2021
Jun 1 2021
Aug 13 2019
Aug 13 2019
Apr 19 2019
Apr 19 2019
Jan 6 2018
Jan 6 2018
Mar 9 2017
Mar 9 2017
In D12198#181207, @chengyin wrote:@jcowgar and anyone who's interested in using ESLint. Right now we are using the script-and-regex linter for this. It works great for us. The .arclint config is as following:
{ "linters": { "eslint-regex-based": { "type": "script-and-regex", "include": "(\\.jsx?$)", "exclude": [], "script-and-regex.script": "sh -c '([ -e ./node_modules/.bin/eslint ]) && (./node_modules/.bin/eslint -f compact \"$0\" || true)'", "script-and-regex.regex": "/^(?P<file>.*): line (?P<line>[0-9]*), col (?P<char>[0-9]*), (?P<warning>Warning|Error) - (?P<message>.*) \\((?P<code>[a-z-]+)\\)$/m" } } }Note that this treat all linter outputs as warnings.