stable

Clone or download

Read-only

request #20917 Ban TypeScript Enums syntax

How to test: The following command should raise errors on Enums syntax usage: $ npm run eslint -- --quiet . Existing usages have been changed. No functional change expected. Change-Id: Ie94bcccb2f832dc5d335f4100c474c568a8948d2

Modified Files

Name
M .eslintrc.js +7 −0 Go to diff View file
A adr/0002-ban-typescript-enum.md +116 −0 Go to diff View file
M adr/index.md +1 −0 Go to diff View file
M plugins/document/scripts/document/keyboard-navigation/handle-navigation-shortcut.test.ts +16 −15 Go to diff View file
M plugins/document/scripts/document/keyboard-navigation/handle-navigation-shortcut.ts +7 −6 Go to diff View file
M plugins/document/scripts/document/keyboard-navigation/keyboard-navigation.ts +5 −5 Go to diff View file
M plugins/document/scripts/document/type.ts +5 −6 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/ProgramIncrement/Feature/feature-planner.test.ts +3 −3 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/ProgramIncrement/add-to-top-backlog.test.ts +3 −3 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/feature-reordering.ts +6 −7 Go to diff View file
M plugins/program_management/scripts/program_management/src/store/mutations.test.ts +13 −13 Go to diff View file
M plugins/program_management/scripts/program_management/src/store/mutations.ts +3 −3 Go to diff View file
M plugins/projectmilestones/scripts/projectmilestones/index.ts +2 −2 Go to diff View file
M plugins/projectmilestones/scripts/projectmilestones/src/type.ts +3 −4 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/helpers/cards-reordering.ts +5 −5 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/helpers/update-artifact.ts +2 −2 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/store/swimlane/card/api-artifact-type.ts +3 −4 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/store/swimlane/drag-drop-actions.test.ts +7 −7 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/store/swimlane/swimlane-mutations.test.ts +3 −3 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/store/swimlane/swimlane-mutations.ts +2 −2 Go to diff View file
M plugins/taskboard/scripts/taskboard/src/type.ts +9 −10 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/keyboard-navigation/campaign/navigation-in-tests-list.ts +5 −5 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/keyboard-navigation/shortcuts-handles/move-focus.test.ts +15 −15 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/keyboard-navigation/shortcuts-handles/move-focus.ts +6 −5 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/keyboard-navigation/type.ts +5 −6 Go to diff View file
M plugins/tracker/scripts/tracker-creation/index.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/FromJira/TrackerFromJiraCard.vue +2 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerBaseCard.test.ts +4 −7 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerEmpty/TrackerEmptyCard.vue +2 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerFromAnotherProject/TrackerFromAnotherProjectCard.vue +2 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerTemplate/TrackerTemplateCard.vue +2 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/components/steps/step-one/cards/TrackerXmlFile/TrackerXmlFileCard.vue +2 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/getters.test.ts +21 −14 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/getters.ts +20 −16 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/is-default-template-selected.test.ts +16 −2 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/mutations.test.ts +7 −7 Go to diff View file
M plugins/tracker/scripts/tracker-creation/src/store/type.ts +13 −8 Go to diff View file
M src/scripts/platform/banner/admin/src/type.ts +4 −5 Go to diff View file