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" } } } diff --git a/web/cashtab/config/webpack.config.js b/web/cashtab/config/webpack.config.js --- a/web/cashtab/config/webpack.config.js +++ b/web/cashtab/config/webpack.config.js @@ -1,4 +1,4 @@ -'use strict'; +'use strict'; // testing linter const darkTheme = require('@ant-design/dark-theme'); const fs = require('fs'); diff --git a/web/cashtab/src/serviceWorker.js b/web/cashtab/src/serviceWorker.js --- a/web/cashtab/src/serviceWorker.js +++ b/web/cashtab/src/serviceWorker.js @@ -4,7 +4,7 @@ workbox.core.skipWaiting(); workbox.core.clientsClaim(); - +// test linter const cachedPathNames = [ '/v2/transaction/details', '/v2/rawtransactions/getRawTransaction',