diff options
| author | 2021-03-07 04:16:03 +0300 | |
|---|---|---|
| committer | 2021-03-07 14:29:57 +0300 | |
| commit | 54244815ae2dfa661676d3dccc84a2d525e25032 (patch) | |
| tree | 30dc0e0f3e44d3945e61b1f9550d0b9f8b72fc32 /annotations_formatter.js | |
| parent | Fixes Return Home Button Centering (diff) | |
| parent | Merge pull request #174 from python-discord/dependabot/npm_and_yarn/workbox-w... (diff) | |
Merge branch 'main' into discord-oauth
Signed-off-by: Hassan Abouelela <[email protected]>
# Conflicts:
# package.json
# yarn.lock
Diffstat (limited to 'annotations_formatter.js')
| -rw-r--r-- | annotations_formatter.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/annotations_formatter.js b/annotations_formatter.js deleted file mode 100644 index b3a421d..0000000 --- a/annotations_formatter.js +++ /dev/null @@ -1,14 +0,0 @@ -module.exports = function (results) { - let output = ""; - - for (const file of results.filter(r => r.messages.length > 0)) { - for (const message of file.messages) { - const path = file.filePath.substr(process.cwd().length + 1); - const severity = message.fatal || message.severity === 2 ? "error" : "warning"; - const text = `[ESLint] ${message.ruleId}: ${message.message}`; - output += `::${severity} file=${path},line=${message.line},col=${message.column}::${text}\n`; - } - } - - return output; -}; |