M2-4835: Linting rules for mindlogger-app
#4
Annotations
51 warnings
assetsTransformer.js#L4
'config' is defined but never used. Allowed unused args must match /^_/u (unused-imports/no-unused-vars)
|
assetsTransformer.js#L4
'config' is defined but never used (no-unused-vars)
|
assetsTransformer.js#L4
'options' is defined but never used. Allowed unused args must match /^_/u (unused-imports/no-unused-vars)
|
assetsTransformer.js#L4
'options' is defined but never used (no-unused-vars)
|
index.js#L17
'isHeadless' is missing in props validation (react/prop-types)
|
src/abstract/lib/utils/progressConvert.ts#L16
Using 'ForInStatement' is not allowed (no-restricted-syntax)
|
src/abstract/lib/utils/progressConvert.ts#L22
Using 'ForInStatement' is not allowed (no-restricted-syntax)
|
src/abstract/lib/utils/progressConvert.ts#L29
Using 'ForInStatement' is not allowed (no-restricted-syntax)
|
src/entities/activity/lib/hooks/useQueueProcessing.ts#L45
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator (@typescript-eslint/no-floating-promises)
|
src/entities/activity/lib/hooks/useRetryUpload.ts#L22
Async arrow function 'openAlert' has no 'await' expression (@typescript-eslint/require-await)
|
src/entities/activity/lib/hooks/useRetryUpload.ts#L26
Promise-returning function provided to property where a void return was expected (@typescript-eslint/no-misused-promises)
|
src/entities/activity/lib/hooks/useRetryUpload.ts#L34
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator (@typescript-eslint/no-floating-promises)
|
src/entities/activity/lib/hooks/useRetryUpload.ts#L39
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator (@typescript-eslint/no-floating-promises)
|
src/entities/activity/lib/hooks/useRetryUpload.ts#L56
Promise-returning function provided to property where a void return was expected (@typescript-eslint/no-misused-promises)
|
src/entities/activity/lib/services/AnswersQueueService.ts#L58
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/activity/lib/services/AnswersQueueService.ts#L85
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/activity/lib/services/AnswersQueueService.ts#L87
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/activity/lib/services/AnswersUploadService.test.js#L13
'data' is defined but never used. Allowed unused args must match /^_/u (unused-imports/no-unused-vars)
|
src/entities/activity/lib/services/AnswersUploadService.test.js#L13
'data' is defined but never used (no-unused-vars)
|
src/entities/activity/lib/services/AnswersUploadService.ts#L62
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/activity/lib/services/AnswersUploadService.ts#L66
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/activity/lib/services/AnswersUploadService.ts#L134
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/activity/lib/services/AnswersUploadService.ts#L299
Unsafe assignment of an `any` value (@typescript-eslint/no-unsafe-assignment)
|
src/entities/activity/lib/services/AnswersUploadService.ts#L300
Unsafe assignment of an `any` value (@typescript-eslint/no-unsafe-assignment)
|
src/entities/activity/lib/services/MediaFilesCleaner.ts#L33
Using 'ForInStatement' is not allowed (no-restricted-syntax)
|
src/entities/activity/lib/services/MediaFilesCleaner.ts#L63
Async arrow function 'cleanUpByAnswers' has no 'await' expression (@typescript-eslint/require-await)
|
src/entities/activity/lib/services/MediaFilesCleaner.ts#L65
Promise returned in function argument where a void return was expected (@typescript-eslint/no-misused-promises)
|
src/entities/activity/lib/services/MediaFilesCleaner.ts#L86
Promise-returning function provided to property where a void return was expected (@typescript-eslint/no-misused-promises)
|
src/entities/activity/lib/services/MediaFilesCleaner.ts#L87
Promise-returning function provided to property where a void return was expected (@typescript-eslint/no-misused-promises)
|
src/entities/activity/lib/services/MediaFilesCleaner.ts#L88
Promise-returning function provided to property where a void return was expected (@typescript-eslint/no-misused-promises)
|
src/entities/activity/lib/services/QueueProcessingService.ts#L47
Unexpected `await` of a non-Promise (non-"Thenable") value (@typescript-eslint/await-thenable)
|
src/entities/activity/model/mappers.ts#L672
Array.prototype.map() expects a value to be returned at the end of arrow function (array-callback-return)
|
src/entities/activity/model/services/EntityActivitiesCollector.ts#L19
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/activity/model/services/EntityActivitiesCollector.ts#L32
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/applet/api/hooks/useAppletsQuery.ts#L8
Avoid referencing unbound methods which may cause unintentional scoping of `this`.
If your function does not access `this`, you can annotate it with `this: void`, or consider using an arrow function instead (@typescript-eslint/unbound-method)
|
src/entities/applet/lib/hooks/useAppletAnalytics.ts#L41
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator (@typescript-eslint/no-floating-promises)
|
src/entities/applet/model/hooks/useStartEntity.ts#L202
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/applet/model/hooks/useStartEntity.ts#L208
Forbidden non-null assertion (@typescript-eslint/no-non-null-assertion)
|
src/entities/applet/model/mappers.ts#L156
Unsafe assignment of an `any` value (@typescript-eslint/no-unsafe-assignment)
|
src/entities/applet/model/mappers.ts#L184
Array.prototype.map() expects a value to be returned at the end of arrow function (array-callback-return)
|
src/entities/applet/model/mappers.ts#L231
Unexpected lexical declaration in case block (no-case-declarations)
|
src/entities/applet/model/mappers.ts#L242
Unexpected lexical declaration in case block (no-case-declarations)
|
src/entities/applet/model/mappers.ts#L250
Unexpected any. Specify a different type (@typescript-eslint/no-explicit-any)
|
src/entities/applet/model/mappers.ts#L253
Unexpected lexical declaration in case block (no-case-declarations)
|
src/entities/applet/model/mappers.ts#L253
Unsafe assignment of an `any` value (@typescript-eslint/no-unsafe-assignment)
|
src/entities/applet/model/mappers.ts#L253
Unsafe member access .value on an `any` value (@typescript-eslint/no-unsafe-member-access)
|
src/entities/applet/model/mappers.ts#L260
Unexpected lexical declaration in case block (no-case-declarations)
|
src/entities/applet/model/mappers.ts#L260
Unsafe assignment of an `any` value (@typescript-eslint/no-unsafe-assignment)
|
src/entities/applet/model/mappers.ts#L260
Unsafe member access .value on an `any` value (@typescript-eslint/no-unsafe-member-access)
|
src/entities/applet/model/mappers.ts#L269
Unexpected lexical declaration in case block (no-case-declarations)
|
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: wearerequired/lint-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|