stable

Clone or download

Read-only

chore: TS Types and Interfaces should always be PascalCased

Implements request #38277 Enforce naming TS types using PascalCase In the codebase, our TypeScript types and interfaces are named using the PascalCase. It is an implicit convention we are used to in the Tuleap team, so let's enforce it with an eslint rule. FTR, some types using the snake_case have been introduced in the codebase, let's fix them in the meantime. How to test: - Pick up a TS file - Define a `type whatever = {}` and an interface `interface something {}` in this file. - Commit --> Eslint complains about the type of case used to name them. Change-Id: Ia7543c12f01d553c7a40183399a72588a3f68e9d

Modified Files

Name
M .eslintrc.js +12 −0 Go to diff View file
M lib/frontend/build-system-configurator/src/vite/vite-plugin-dts.ts +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/OutdatedSectionWarning.test.ts +5 −5 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/OutdatedSectionWarning.vue +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDescription.vue +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionDescriptionEditor.vue +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorCta.test.ts +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorCta.vue +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorSaveCancelButtons.test.ts +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorSaveCancelButtons.vue +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionFooter.test.ts +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionFooter.vue +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionTitleWithArtifactId.vue +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useScrollToAnchor.ts +2 −2 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts +5 −5 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/stubs/SectionEditorStub.ts +4 −4 Go to diff View file
M plugins/document/scripts/document/helpers/emitter.ts +4 −4 Go to diff View file
M plugins/document/scripts/document/store/properties/properties-actions.ts +5 −5 Go to diff View file
R plugins/kanban/scripts/kanban/src/app/realtime/buildEventDispatcher.test.js Go to diff View file
R plugins/kanban/scripts/kanban/src/app/realtime/buildEventDispatcher.ts Go to diff View file
M plugins/kanban/scripts/kanban/src/app/realtime/mercure-service.js +2 −2 Go to diff View file
M plugins/oauth2_server/scripts/src/replacers.test.ts +2 −2 Go to diff View file
M plugins/program_management/scripts/planned-iterations/src/store/mutations.ts +2 −2 Go to diff View file
R plugins/testmanagement/scripts/testmanagement/src/realtime/buildEventDispatcher.test.js Go to diff View file
R plugins/testmanagement/scripts/testmanagement/src/realtime/buildEventDispatcher.ts Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/realtime/mercure-service.js +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/src/types.ts +12 −12 Go to diff View file