Skip to content

Updated syntax in utils.js with async/await #1175

Updated syntax in utils.js with async/await

Updated syntax in utils.js with async/await #1175

Triggered via pull request December 18, 2024 12:06
@moksha-hubmoksha-hub
opened #1145
Status Success
Total duration 46s
Artifacts

lint-pull-requests.yml

on: pull_request_target
Run linters for pull requests
35s
Run linters for pull requests
Fit to window
Zoom out
Zoom in

Annotations

45 errors and 6 warnings
src/api/helpers/utils.js#L19
There should be no space after '{' (object-curly-spacing)
src/api/helpers/utils.js#L19
There should be no space before '}' (object-curly-spacing)
src/api/helpers/utils.js#L20
There should be no space after '{' (object-curly-spacing)
src/api/helpers/utils.js#L20
There should be no space before '}' (object-curly-spacing)
src/api/helpers/utils.js#L35
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L36
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L37
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L39
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L40
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L41
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L42
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L43
Expected indentation of 3 tabs but found 12 spaces (indent)
src/api/helpers/utils.js#L43
Unexpected trailing comma (comma-dangle)
src/api/helpers/utils.js#L44
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L59
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L60
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L61
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L62
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L63
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L64
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L66
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L66
There should be no space after '{' (object-curly-spacing)
src/api/helpers/utils.js#L66
There should be no space before '}' (object-curly-spacing)
src/api/helpers/utils.js#L68
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L69
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L70
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L72
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L74
Expected indentation of 1 tab but found 4 spaces (indent)
src/api/helpers/utils.js#L75
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L77
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L78
Expected indentation of 3 tabs but found 12 spaces (indent)
src/api/helpers/utils.js#L80
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L81
Expected indentation of 3 tabs but found 12 spaces (indent)
src/api/helpers/utils.js#L82
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L82
Closing curly brace appears on the same line as the subsequent block (brace-style)
src/api/helpers/utils.js#L83
Expected indentation of 3 tabs but found 12 spaces (indent)
src/api/helpers/utils.js#L84
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L85
Expected indentation of 3 tabs but found 12 spaces (indent)
src/api/helpers/utils.js#L86
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L88
Expected indentation of 2 tabs but found 8 spaces (indent)
src/api/helpers/utils.js#L89
Expected indentation of 3 tabs but found 12 spaces (indent)
src/api/helpers/utils.js#L90
Expected indentation of 4 tabs but found 16 spaces (indent)
src/api/helpers/utils.js#L90
Unexpected `await` inside a loop (no-await-in-loop)
src/api/helpers/utils.js#L91
Expected indentation of 4 tabs but found 16 spaces (indent)
src/api/helpers/utils.js#L93
Expected indentation of 4 tabs but found 16 spaces (indent)
src/api/helpers/utils.js#L20
Expected 2 empty lines after import statement not followed by another import (import/newline-after-import)
src/client/components/pages/revision.js#L177
Unexpected 'todo' comment: 'TODO: Add proper error handling.' (no-warning-comments)
src/client/entity-editor/common/entity-search-field-option.js#L129
'props' is defined but never used (@typescript-eslint/no-unused-vars)
src/server/helpers/collectionRouteUtils.js#L22
'log' is defined but never used (@typescript-eslint/no-unused-vars)
src/server/routes/register.js#L22
'handler' is defined but never used (@typescript-eslint/no-unused-vars)
Run linters for pull requests
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636