diff --git a/.arclint b/.arclint --- a/.arclint +++ b/.arclint @@ -291,6 +291,13 @@ "type": "prettier", "include": "(^web/.*\\.(css|html|js|json|jsx|md|scss|ts|tsx)$)", "exclude": "(^web/.*/translations/.*\\.json$)" + }, + "eslint-regex-based": { + "type": "script-and-regex", + "include": "(\\.(jsx|js)?$)", + "exclude": [], + "script-and-regex.script": "sh -c '([ -e ./web/cashtab/node_modules/.bin/eslint ]) && (./web/cashtab/node_modules/.bin/eslint -f compact \"$0\" || true)'", + "script-and-regex.regex": "/^(?P.*): line (?P[0-9]*), col (?P[0-9]*), ((?PWarning)|(?PError)) - (?P.*) \\((?P[a-z-\\/]+)\\)$/m" } } }