From 593a1f0013e83a89864f49792cd9df6e6aca0633 Mon Sep 17 00:00:00 2001 From: "v.zheleztsov" Date: Thu, 5 May 2022 13:56:24 +0300 Subject: [PATCH] refactor: apply eslint formatter --- .../QBreadcrumbs/QBreadcrumbs.test.ts | 3 +- src/qComponents/QButton/src/QButton.vue | 1 + src/qComponents/QCascader/src/QCascader.vue | 6 +-- .../src/QCascaderColumn/QCascaderColumn.vue | 3 +- .../QCascaderDropdown/QCascaderDropdown.vue | 3 +- .../src/QCascaderInput/QCascaderInput.vue | 3 +- .../src/QCascaderRow/QCascaderRow.vue | 1 + .../src/QCascaderTags/QCascaderTags.vue | 1 + src/qComponents/QCascader/src/types.ts | 2 +- src/qComponents/QCheckbox/src/QCheckbox.vue | 3 +- .../QCheckboxGroup/src/QCheckboxGroup.vue | 1 + src/qComponents/QCollapse/src/QCollapse.vue | 2 +- .../QCollapseItem/src/QCollapseItem.vue | 1 + .../QColorAlphaSlider/QColorAlphaSlider.vue | 6 +-- .../src/QColorHueSlider/QColorHueSlider.vue | 3 +- .../QColorPicker/src/QColorPicker.vue | 9 ++-- .../src/QColorSvpanel/QColorSvpanel.vue | 5 ++- .../src/QPickerDropdown/QPickerDropdown.vue | 13 +++--- .../QColorPicker/src/QPickerDropdown/types.ts | 6 +-- src/qComponents/QColorPicker/src/types.ts | 2 +- .../QContextMenu/src/QContextMenu.vue | 15 ++++--- .../QDatePicker/src/QDatePicker.vue | 43 ++++++++++--------- .../QDatePicker/src/mobile/MobilePanel.vue | 1 + .../QDatePicker/src/panel/Date/DatePanel.vue | 11 ++--- .../src/panel/DateRange/DateRange.vue | 9 ++-- .../QDatePicker/src/panel/DateRange/types.ts | 2 +- .../src/panel/MonthRange/MonthRange.vue | 11 +++-- .../src/panel/YearRange/YearRange.vue | 12 +++--- .../QDatePicker/src/panel/composition.ts | 1 + .../src/tables/DateTable/DateTable.vue | 12 +++--- .../QDatePicker/src/tables/DateTable/types.ts | 2 +- .../src/tables/PeriodTable/PeriodTable.vue | 8 ++-- .../src/tables/PeriodTable/types.ts | 2 +- src/qComponents/QDatePicker/src/types.ts | 4 +- .../QDialog/src/QDialogContainer/index.vue | 4 +- .../QDialog/src/QDialogContainer/types.ts | 2 +- .../QDialog/src/QDialogContainer/utils.ts | 1 + .../QDialog/src/QDialogContent/index.vue | 3 +- src/qComponents/QDialog/src/index.ts | 3 +- src/qComponents/QDialog/src/types.ts | 2 +- .../QDrawer/src/QDrawerContainer/index.vue | 2 +- .../QDrawer/src/QDrawerContainer/types.ts | 2 +- .../QDrawer/src/QDrawerContainer/utils.ts | 1 + .../QDrawer/src/QDrawerContent/index.vue | 1 + src/qComponents/QDrawer/src/index.ts | 3 +- src/qComponents/QDrawer/src/types.ts | 2 +- src/qComponents/QForm/src/QForm.vue | 5 ++- src/qComponents/QForm/src/types.ts | 3 +- src/qComponents/QFormItem/src/QFormItem.vue | 11 ++--- src/qComponents/QFormItem/src/types.ts | 2 +- src/qComponents/QInput/src/QInput.vue | 1 + .../QInputNumber/src/QInputNumber.vue | 5 ++- .../src/QMessageBoxContainer/index.vue | 8 ++-- .../src/QMessageBoxContainer/types.ts | 2 +- .../src/QMessageBoxContent/index.vue | 3 +- src/qComponents/QMessageBox/src/index.ts | 3 +- src/qComponents/QMessageBox/src/types.ts | 2 +- .../QNotificationContainer.vue | 3 +- .../QNotificationToast/QNotificationToast.vue | 2 + .../src/QNotificationToast/types.ts | 2 +- src/qComponents/QNotification/src/index.ts | 2 +- src/qComponents/QOption/src/QOption.vue | 1 + .../QPagination/src/QPagination.vue | 2 +- src/qComponents/QPopover/src/QPopover.vue | 7 +-- src/qComponents/QPopover/src/types.ts | 2 +- src/qComponents/QProgressIndicatior/index.ts | 3 +- .../QProgressIndicatior/src/index.ts | 4 +- src/qComponents/QRadio/src/QRadio.vue | 1 + .../QRadioGroup/src/QRadioGroup.vue | 1 + src/qComponents/QRow/src/QRow.vue | 1 + src/qComponents/QScrollbar/src/QBar.vue | 1 + src/qComponents/QScrollbar/src/QScrollbar.vue | 3 +- src/qComponents/QSelect/src/QSelect.vue | 31 ++++++------- .../QSelect/src/QSelectDropdown.vue | 9 ++-- src/qComponents/QSelect/src/QSelectTags.vue | 1 + src/qComponents/QSelect/src/types.ts | 5 ++- src/qComponents/QSlider/src/QSlider.vue | 6 +-- .../src/components/QSliderBar/types.ts | 1 + src/qComponents/QSwitch/src/QSwitch.vue | 1 + src/qComponents/QSwitch/src/types.ts | 1 + src/qComponents/QTabPane/src/QTabPane.vue | 1 + src/qComponents/QTable/src/QTable.vue | 3 +- .../QTableCellCheckbox/QTableCellCheckbox.vue | 3 +- .../QTable/src/QTableEmpty/QTableEmpty.vue | 3 +- .../QTable/src/QTableT/QTableT.vue | 7 +-- .../QTable/src/QTableTBody/QTableTBody.vue | 2 +- .../QTableTBodyCell/QTableTBodyCell.vue | 4 +- .../QTableTBodyRow/QTableTBodyRow.vue | 8 ++-- .../src/QTableTColgroup/QTableTColgroup.vue | 2 +- .../QTable/src/QTableTHead/QTableTHead.vue | 5 ++- .../QTableTHeadCell/QTableTHeadCell.vue | 2 +- .../QTable/src/QTableTHead/types.ts | 2 +- .../src/QTableTSticky/QTableTSticky.vue | 3 +- .../QTable/src/QTableTTotal/QTableTTotal.vue | 2 +- .../QTableTTotalCell/QTableTTotalCell.vue | 4 +- .../QTable/src/hooks/sticky/index.ts | 2 +- src/qComponents/QTextarea/src/QTextarea.vue | 3 +- src/qComponents/QUpload/src/QUpload.vue | 6 +-- .../src/QUploadDropZone/QUploadDropZone.vue | 1 + .../QUploadFileMultiple.vue | 4 +- src/qComponents/constants/locales/index.ts | 2 +- src/qComponents/helpers/withInstall.ts | 1 + src/qComponents/hooks/useMediaQuery/index.ts | 1 + src/qComponents/index.ts | 5 +-- src/qComponents/locale/index.ts | 1 + stories/Layout/QCol.stories.ts | 2 +- stories/Layout/QRow.stories.ts | 2 +- stories/components/QBreadcrumbs.stories.ts | 2 +- stories/components/QCollapse.stories.ts | 2 +- stories/components/QColorPicker.stories.ts | 2 +- stories/components/QDatePicker.stories.ts | 2 +- stories/components/QForm.stories.ts | 3 +- stories/components/QInput.stories.ts | 1 + stories/components/QPopover.stories.ts | 2 +- stories/components/QSelect.stories.ts | 4 +- stories/components/QSlider/Default.ts | 1 + stories/components/QSlider/SlotCaption.ts | 1 + stories/components/QTabPane.stories.ts | 2 +- stories/components/QTable/CustomRows.ts | 3 +- stories/components/QTable/CustomWidth.ts | 3 +- stories/components/QTable/Draggable.ts | 2 +- stories/components/QTable/Groups.ts | 3 +- stories/components/QTable/QTable.stories.ts | 10 ++--- stories/components/QTable/Selectable.ts | 3 +- stories/components/QTable/StickyColumn.ts | 2 +- stories/components/QTable/Total.ts | 3 +- stories/components/QTabs.stories.ts | 2 +- stories/components/QUpload/Default.stories.ts | 1 + stories/plugins/QDialog/Component.stories.ts | 2 +- stories/plugins/QDialog/Extended.stories.ts | 2 +- stories/plugins/QDrawer/Component.stories.ts | 2 +- stories/plugins/QDrawer/Extended.stories.ts | 2 +- .../plugins/QMessageBox/Component.stories.ts | 2 +- .../plugins/QMessageBox/Extended.stories.ts | 2 +- stories/plugins/QNotification.stories.ts | 4 +- vite.config.ts | 11 +++-- vitest.config.ts | 1 + 137 files changed, 297 insertions(+), 234 deletions(-) diff --git a/src/qComponents/QBreadcrumbs/QBreadcrumbs.test.ts b/src/qComponents/QBreadcrumbs/QBreadcrumbs.test.ts index 516dbb9e..e255d084 100644 --- a/src/qComponents/QBreadcrumbs/QBreadcrumbs.test.ts +++ b/src/qComponents/QBreadcrumbs/QBreadcrumbs.test.ts @@ -1,5 +1,6 @@ -import { describe, it, expect } from 'vitest'; import { shallowMount } from '@vue/test-utils'; +import { describe, it, expect } from 'vitest'; + import { QBreadcrumbs } from './index'; describe('QBreadcrumbs', () => { diff --git a/src/qComponents/QButton/src/QButton.vue b/src/qComponents/QButton/src/QButton.vue index cac2e2c2..81d7b058 100644 --- a/src/qComponents/QButton/src/QButton.vue +++ b/src/qComponents/QButton/src/QButton.vue @@ -28,6 +28,7 @@ import { defineComponent, PropType, computed, inject } from 'vue'; import { validateArray } from '@/qComponents/helpers'; import type { QFormProvider } from '@/qComponents/QForm'; + import type { Nullable } from '#/helpers'; import type { diff --git a/src/qComponents/QCascader/src/QCascader.vue b/src/qComponents/QCascader/src/QCascader.vue index 38ad80cc..488e5cb1 100644 --- a/src/qComponents/QCascader/src/QCascader.vue +++ b/src/qComponents/QCascader/src/QCascader.vue @@ -26,6 +26,7 @@