Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat[eslint]: updated eslint and codex-eslint-config to latest #254

Merged
merged 13 commits into from
Jun 5, 2024

Conversation

e11sy
Copy link
Contributor

@e11sy e11sy commented May 4, 2024

  • updated dependencies
  • fixed some of the eslint problems

Note that all eslint errors and warnings would be solved in further development process

- updated dependencies
- fixed some of the eslint problems
Copy link

github-actions bot commented May 4, 2024

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 86.07% (🎯 80%)
⬇️ -0.26%
7531 / 8749
🟢 Statements 86.07% (🎯 80%)
⬇️ -0.26%
7531 / 8749
🔴 Functions 79.47% (🎯 80%)
🟰 ±0%
240 / 302
🟢 Branches 85.81% (🎯 80%)
🟰 ±0%
375 / 437
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
src/index.ts 0% 0% 0% 0% 1-37
src/domain/index.ts 100% 100% 100% 100%
src/domain/entities/editorTools.ts 0% 0% 0% 0% 1-52
src/domain/entities/file.ts 100% 100% 100% 100%
src/domain/entities/note.ts 0% 0% 0% 0% 1-79
src/domain/entities/noteList.ts 0% 0% 0% 0% 1-18
src/domain/entities/notePublic.ts 100% 100% 100% 100%
src/domain/entities/noteSettings.ts 100% 100% 100% 100%
src/domain/entities/noteVisit.ts 0% 0% 0% 0% 1-27
src/domain/entities/team.ts 100% 100% 100% 100%
src/domain/service/ai.ts 90% 100% 50% 90% 18-19
src/domain/service/auth.ts 96.58% 90.9% 100% 96.58% 102-105
src/domain/service/editorTools.ts 96.96% 100% 85.71% 96.96% 51-52
src/domain/service/fileUploader.service.ts 51.11% 100% 25% 51.11% 59-99, 108-109, 117-144, 151-156, 163-164, 171-179
src/domain/service/note.ts 96.29% 86.11% 100% 96.29% 75-76, 102-103, 109-110, 125-126, 147-148
src/domain/service/noteSettings.ts 97.94% 91.3% 100% 97.94% 107-108, 179-180
src/domain/service/noteVisits.ts 100% 100% 100% 100%
src/domain/service/user.ts 71.68% 80% 57.14% 71.68% 46-47, 54-70, 86-87, 102-112
src/domain/service/shared/editorTools.ts 0% 0% 0% 0% 1-24
src/domain/service/shared/note.ts 0% 0% 0% 0% 1-14
src/infrastructure/config/index.ts 98.97% 50% 100% 98.97% 185-186
src/infrastructure/logging/index.ts 92.68% 33.33% 100% 92.68% 7, 31-32
src/infrastructure/utils/empty.ts 100% 100% 100% 100%
src/infrastructure/utils/hasProperty.ts 100% 100% 100% 100%
src/infrastructure/utils/id.ts 85.18% 100% 33.33% 85.18% 18-19, 26-27
src/infrastructure/utils/invitationHash.ts 100% 100% 100% 100%
src/presentation/api.interface.ts 0% 0% 0% 0% 1-82
src/presentation/http/http-api.ts 96% 90.32% 93.75% 96% 100-108, 119-120, 318-319, 342-343
src/presentation/http/decorators/domainError.ts 100% 100% 100% 100%
src/presentation/http/decorators/forbidden.ts 100% 100% 100% 100%
src/presentation/http/decorators/notAcceptable.ts 100% 100% 100% 100%
src/presentation/http/decorators/notFound.ts 100% 100% 100% 100%
src/presentation/http/decorators/unauthorized.ts 100% 100% 100% 100%
src/presentation/http/middlewares/common/userIdResolver.ts 100% 100% 100% 100%
src/presentation/http/middlewares/note/useNoteResolver.ts 97.36% 85.71% 100% 97.36% 63-64
src/presentation/http/middlewares/noteSettings/useMemberRoleResolver.ts 86.53% 71.42% 100% 86.53% 31-32, 45-49
src/presentation/http/middlewares/noteSettings/useNoteSettingsResolver.ts 95.34% 80% 100% 95.34% 29-30
src/presentation/http/policies/authRequired.ts 100% 100% 100% 100%
src/presentation/http/policies/notePublicOrUserInTeam.ts 97.77% 87.5% 100% 97.77% 18
src/presentation/http/policies/userCanEdit.ts 97.29% 83.33% 100% 97.29% 25
src/presentation/http/router/ai.ts 87.17% 100% 100% 87.17% 29-33
src/presentation/http/router/auth.ts 96.12% 100% 100% 96.12% 120-124
src/presentation/http/router/editorTools.ts 100% 100% 100% 100%
src/presentation/http/router/join.ts 100% 100% 100% 100%
src/presentation/http/router/note.ts 98.16% 84% 100% 98.16% 144-145, 556-557, 573-579
src/presentation/http/router/noteList.ts 100% 100% 100% 100%
src/presentation/http/router/noteSettings.ts 98.93% 85.71% 100% 98.93% 209-210, 271-272
src/presentation/http/router/oauth.ts 59.09% 100% 100% 59.09% 48-83
src/presentation/http/router/upload.ts 78.06% 100% 100% 78.06% 86-112, 143-149
src/presentation/http/router/user.ts 89.89% 75% 100% 89.89% 57-58, 92-98, 182-192
src/presentation/http/schema/EditorTool.ts 100% 100% 100% 100%
src/presentation/http/schema/Join.ts 100% 100% 100% 100%
src/presentation/http/schema/OauthSchema.ts 100% 100% 100% 100%
src/presentation/http/types/PolicyContext.ts 0% 0% 0% 0% 1-20
src/repository/ai.repository.ts 52.63% 100% 50% 52.63% 20-37
src/repository/editorTools.repository.ts 96.66% 100% 85.71% 96.66% 49-50
src/repository/file.repository.ts 86.04% 100% 40% 86.04% 24-25, 32-33, 41-42
src/repository/index.ts 100% 100% 100% 100%
src/repository/note.repository.ts 100% 100% 100% 100%
src/repository/noteRelations.repository.ts 100% 100% 100% 100%
src/repository/noteSettings.repository.ts 97.01% 100% 85.71% 97.01% 29-30
src/repository/noteVisits.repository.ts 100% 100% 100% 100%
src/repository/object.repository.ts 89.74% 100% 50% 89.74% 27-28, 37-38
src/repository/team.repository.ts 100% 100% 100% 100%
src/repository/user.repository.ts 58.97% 100% 66.66% 58.97% 75-121, 139-155
src/repository/userSession.repository.ts 100% 100% 100% 100%
src/repository/storage/editorTools.storage.ts 100% 100% 100% 100%
src/repository/storage/team.storage.ts 100% 100% 100% 100%
src/repository/storage/postgres/migrations/migrate.ts 97.14% 66.66% 100% 97.14% 26
src/repository/storage/postgres/orm/sequelize/editorTools.ts 96.66% 100% 85.71% 96.66% 167-172
src/repository/storage/postgres/orm/sequelize/file.ts 87.19% 100% 40% 87.19% 130-131, 138-143, 151-163
src/repository/storage/postgres/orm/sequelize/index.ts 96.66% 80% 100% 96.66% 50-51
src/repository/storage/postgres/orm/sequelize/note.ts 97.93% 78.57% 100% 97.93% 181-182, 225-226, 259-260
src/repository/storage/postgres/orm/sequelize/noteRelations.ts 100% 100% 100% 100%
src/repository/storage/postgres/orm/sequelize/noteSettings.ts 92.47% 90% 87.5% 92.47% 121-135, 221-222
src/repository/storage/postgres/orm/sequelize/noteVisits.ts 98.83% 88.88% 100% 98.83% 166-167
src/repository/storage/postgres/orm/sequelize/teams.ts 99.18% 85.71% 100% 99.18% 193-194
src/repository/storage/postgres/orm/sequelize/user.ts 85.5% 66.66% 66.66% 85.5% 199-209, 217-229, 255-268, 271-272
src/repository/storage/postgres/orm/sequelize/userSession.ts 100% 100% 100% 100%
src/repository/storage/s3/index.ts 53.63% 100% 40% 53.63% 44-65, 74-88, 96-109
src/repository/transport/fetch.transport.ts 65.11% 100% 33.33% 65.11% 20-26, 35-42
src/repository/transport/google-api/index.ts 59.45% 100% 50% 59.45% 22-36
src/repository/transport/google-api/types/ApiResponse.ts 0% 0% 0% 0% 1-17
src/repository/transport/google-api/types/GetUserInfoResponsePayload.ts 0% 0% 0% 0% 1-25
src/repository/transport/openai-api/index.ts 57.5% 100% 50% 57.5% 23-39
src/repository/transport/openai-api/types/GetCompletionResponsePayload.ts 0% 0% 0% 0% 1-34
src/tests/utils/database-helpers.ts 98.15% 95% 91.66% 98.15% 193-198
src/tests/utils/s3-helpers.ts 87.87% 100% 66.66% 87.87% 29-32
Generated in workflow #734

eslint.config.mjs Outdated Show resolved Hide resolved
@e11sy e11sy merged commit 3555d34 into main Jun 5, 2024
5 of 6 checks passed
@e11sy e11sy deleted the eslint-update branch June 5, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants