From b0f6fc623d396e3909de33b6466a836b35d852ee Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Tue, 20 Aug 2024 09:23:32 +0200 Subject: [PATCH] chore: enforce import order via prettier (#1918) --- frontend/.prettierrc.js | 8 ++ frontend/package-lock.json | 127 +++++++++++++++++- frontend/package.json | 3 +- frontend/prettier.config.js | 4 - frontend/src/cases/common.js | 3 +- frontend/src/cases/common.ts | 5 +- .../components/CaseDetail/CardAlignmentQc.vue | 2 +- .../components/CaseDetail/CardAnnotations.vue | 8 +- .../cases/components/CaseDetail/CardCase.vue | 4 +- .../components/CaseDetail/CardPedigree.vue | 6 +- .../components/CaseDetail/CardQueries.vue | 3 +- .../cases/components/CaseDetail/CardTerms.vue | 4 +- .../components/CaseDetail/CardVariantQc.vue | 2 +- .../cases/components/CaseDetail/Content.vue | 4 +- .../components/CaseDetail/PaneAnnotations.vue | 2 +- .../cases/components/CaseDetail/PaneCase.vue | 6 +- .../cases/components/CaseDetail/PaneQc.vue | 16 +-- .../CaseDetail/QcTableAlignmentStats.vue | 5 +- .../components/CaseDetail/QcTableVarStats.vue | 4 +- .../components/CaseListQc/CaseListQc.vue | 10 +- .../CaseListTable/CaseListTable.vue | 8 +- .../src/cases/components/CaseListTable/lib.ts | 1 + .../cases/components/ModalPedigreeEditor.vue | 6 +- .../components/ModalPedigreeEditor/Row.vue | 3 +- .../src/cases/components/ModalTermsEditor.vue | 9 +- .../cases/components/TheAppBar/TheAppBar.vue | 1 + frontend/src/cases/main.ts | 6 +- frontend/src/cases/plugins/index.ts | 4 +- frontend/src/cases/plugins/vuetify.ts | 7 +- frontend/src/cases/router/index.ts | 19 +-- frontend/src/cases/stores/caseDetails.ts | 6 +- frontend/src/cases/stores/caseList.ts | 5 +- frontend/src/cases/stores/caseListQc.ts | 6 +- .../src/cases/views/CaseDetail/CaseDetail.vue | 8 +- .../cases/views/CaseDetail/CaseDetailPane.vue | 41 +++--- .../src/cases/views/CaseList/CaseList.vue | 12 +- frontend/src/cases_qc/api/caseQcClient.ts | 2 +- frontend/src/cases_qc/components/PaneQc.vue | 4 +- .../PaneQc/AlignmentsCoverageCard.vue | 3 +- .../PaneQc/AlignmentsFragmentHistCard.vue | 5 +- .../PaneQc/AlignmentsSummaryCard.vue | 5 +- .../cases_qc/components/PaneQc/ReadsCard.vue | 3 +- .../cases_qc/components/PaneQc/SeqvarCard.vue | 3 +- .../components/PaneQc/StrucvarCard.vue | 3 +- frontend/src/cases_qc/stores/caseQc.ts | 6 +- frontend/src/cohorts/common.js | 3 +- .../src/cohorts/components/CohortList.vue | 3 +- .../cohorts/components/CohortList/Table.vue | 13 +- .../cohorts/components/ModalCohortEditor.vue | 8 +- frontend/src/cohorts/main.js | 5 +- frontend/src/cohorts/stores/cohorts.js | 9 +- frontend/src/seqvars/App.vue | 7 +- .../GeneDataTable/GeneDataTable.vue | 2 +- .../CategoryPresetsClinvarEditor.vue | 10 +- .../CategoryPresetsColumnsEditor.vue | 10 +- .../CategoryPresetsConsequenceEditor.vue | 10 +- .../CategoryPresetsFrequencyEditor.vue | 10 +- .../CategoryPresetsLocusEditor.vue | 14 +- .../CategoryPresetsPhenotypePrioEditor.vue | 10 +- ...CategoryPresetsPredefinedQueriesEditor.vue | 12 +- .../CategoryPresetsQualityEditor.vue | 10 +- .../CategoryPresetsVariantPrioEditor.vue | 10 +- .../PresetsEditor/PresetsEditor.vue | 2 +- .../components/PresetsEditor/PresetsList.vue | 1 + .../PresetsEditor/QueryPresetsEditor.vue | 18 +-- .../PresetsEditor/QueryPresetsSelect.vue | 4 +- .../components/PresetsEditor/lib.spec.ts | 1 + .../seqvars/components/PresetsEditor/lib.ts | 3 +- .../QueryEditor/ClinvarControls.vue | 4 +- .../QueryEditor/EffectsControls.vue | 3 +- .../QueryEditor/FrequencyControlRow.vue | 3 +- .../QueryEditor/FrequencyControls.stories.ts | 2 +- .../QueryEditor/FrequencyControls.vue | 5 +- .../QueryEditor/GenotypeControls.vue | 8 +- .../InheritanceModeControls.stories.ts | 2 +- .../QueryEditor/InheritanceModeControls.vue | 3 +- .../components/QueryEditor/LocusControls.vue | 8 +- .../QueryEditor/PathogenicityPrioControls.vue | 4 +- .../QueryEditor/PhenotypePrioControls.vue | 3 +- .../QueryEditor/PredefinedQueryList.vue | 4 +- .../QueryEditor/PresetSummaryItem.vue | 3 +- .../QueryEditor/QualityControls.vue | 2 +- .../QueryEditor/QueryEditor.stories.ts | 4 +- .../components/QueryEditor/QueryEditor.vue | 19 ++- .../components/QueryEditor/QueryList.vue | 2 +- .../components/QueryEditor/SexAffectedIcon.ts | 1 - .../seqvars/components/QueryEditor/groups.ts | 14 +- .../QueryEditor/lib/genotype.spec.ts | 12 +- .../components/QueryEditor/lib/genotypes.ts | 3 +- .../components/QueryEditor/ui/Item.vue | 3 +- .../components/QueryEditor/ui/SelectBox.vue | 2 +- .../components/QueryEditor/ui/SmallText.vue | 1 + .../SeqvarDetails/SeqvarDetails.vue | 1 + .../src/seqvars/stores/caseAnalysis/store.ts | 7 +- frontend/src/seqvars/stores/presets/store.ts | 12 +- frontend/src/seqvars/stores/query/store.ts | 9 +- .../seqvars/views/PresetSets/PresetSets.vue | 4 +- .../views/SeqvarsQuery/SeqvarsQuery.vue | 10 +- frontend/src/svs/api/strucvarClient/client.ts | 24 ++-- frontend/src/svs/api/strucvarClient/types.ts | 11 +- .../StrucvarAcmgRatingCard.vue | 12 +- .../StrucvarDetailsHeader.vue | 1 + .../StrucvarDetailsNavi.vue | 10 +- .../StrucvarGenotypeCallCard.vue | 3 +- frontend/src/svs/components/SvFilterApp.vue | 15 +-- frontend/src/svs/components/SvFilterForm.vue | 23 ++-- .../SvFilterForm/CriteriaDefinitionPane.vue | 2 +- .../svs/components/SvFilterForm/Footer.vue | 5 +- .../components/SvFilterForm/FrequencyPane.vue | 4 +- .../SvFilterForm/GenesRegionsPane.lib.ts | 9 ++ .../SvFilterForm/GenesRegionsPane.vue | 16 +-- .../components/SvFilterForm/GenotypePane.vue | 4 +- .../components/SvFilterForm/ImpactPane.vue | 6 +- .../src/svs/components/SvFilterForm/Patho.vue | 4 +- .../components/SvFilterForm/QuickPresets.vue | 7 +- .../SvFilterForm/RegulatoryPane.vue | 2 +- .../svs/components/SvFilterForm/TadsPane.vue | 2 +- .../svs/components/SvFilterResultsTable.vue | 17 ++- .../src/svs/stores/strucvarFlags/store.ts | 10 +- frontend/src/svs/stores/svAcmgRating.ts | 10 +- frontend/src/svs/stores/svComments.ts | 10 +- frontend/src/svs/stores/svDetails.ts | 6 +- frontend/src/svs/stores/svQuery.js | 10 +- frontend/src/svs/stores/svResultSet.ts | 7 +- .../views/StrucvarDetails/StrucvarDetails.vue | 59 ++++---- .../StrucvarFilterLegacy.vue | 10 +- .../components/CommentsCard/CommentsCard.vue | 3 +- .../varfish/components/FilterForm/DevPane.vue | 2 +- .../components/FlagsCard/FlagsCard.vue | 5 +- frontend/src/varfish/components/ModalBase.vue | 5 +- .../src/varfish/components/ModalConfirm.vue | 3 +- .../src/varfish/components/ModalInput.vue | 7 +- .../src/varfish/components/ModalSelect.vue | 7 +- frontend/src/varfish/components/Toast.vue | 1 + frontend/src/varfish/components/VegaPlot.vue | 2 +- frontend/src/varfish/helpers.ts | 1 - frontend/src/varfish/stores/ctx/store.ts | 8 +- frontend/src/varfish/stores/history.ts | 2 +- frontend/src/varfish/stores/ui.ts | 3 +- .../src/variants/api/variantClient/client.ts | 4 +- .../src/variants/api/variantClient/types.ts | 2 +- .../AcmgRatingCard/AcmgRatingCard.stories.ts | 4 +- .../AcmgRatingCard/AcmgRatingCard.vue | 22 +-- .../components/AcmgRatingCard/constants.ts | 1 + .../components/AcmgRatingCard/lib.spec.ts | 3 +- .../src/variants/components/ColumnControl.vue | 7 +- .../src/variants/components/FilterApp.vue | 17 ++- .../src/variants/components/FilterForm.vue | 21 +-- .../FilterForm/ClinvarPane.stories.js | 3 +- .../FilterForm/EffectPane.stories.js | 3 +- .../components/FilterForm/EffectPane.vue | 13 +- .../FilterForm/FlagsPane.stories.js | 3 +- .../components/FilterForm/FlagsPane.vue | 2 +- .../variants/components/FilterForm/Footer.vue | 3 +- .../FilterForm/FrequencyPane.stories.js | 3 +- .../FilterForm/GenesRegionsPane.lib.ts | 9 ++ .../FilterForm/GenesRegionsPane.stories.js | 3 +- .../FilterForm/GenesRegionsPane.vue | 17 +-- .../FilterForm/GenotypePane.stories.js | 3 +- .../components/FilterForm/GenotypePane.vue | 7 +- .../FilterForm/PrioritizationPane.vue | 4 +- .../FilterForm/QualityPane.stories.js | 3 +- .../components/FilterForm/QualityPane.vue | 5 +- .../components/FilterForm/QualityPaneRow.vue | 11 +- .../components/FilterForm/QuickPresets.vue | 9 +- .../components/FilterResultsTable.vue | 31 ++--- .../src/variants/components/HpoTermInput.vue | 2 +- .../src/variants/components/QueryPresets.vue | 14 +- .../components/QueryPresets/QualityPane.vue | 2 +- .../components/QueryPresets/SetEditor.vue | 17 ++- .../components/QueryPresets/SetProperties.vue | 2 +- .../QueryPresets/SetQuickPresets.vue | 1 - .../SeqvarDetailsHeader.vue | 2 +- .../SeqvarDetailsNavi/SeqvarDetailsNavi.vue | 11 +- .../SeqvarGenotypeCallCard.stories.js | 3 +- .../SeqvarGenotypeCallCard.vue | 5 +- .../components/TokenizingTextarea.stories.js | 3 +- .../components/TokenizingTextarea.vue | 6 +- frontend/src/variants/stores/queryPresets.ts | 5 +- .../stores/variantAcmgRating/store.ts | 8 +- .../src/variants/stores/variantComments.ts | 8 +- .../src/variants/stores/variantDetails.ts | 6 +- frontend/src/variants/stores/variantFlags.ts | 10 +- frontend/src/variants/stores/variantQuery.js | 11 +- .../src/variants/stores/variantResultSet.ts | 7 +- .../views/SeqvarDetails/SeqvarDetails.vue | 50 ++++--- .../SeqvarFilterLegacy/SeqvarFilterLegacy.vue | 13 +- .../cases/CaseDetail/CardAlignmentQc.spec.js | 3 +- .../cases/CaseDetail/CardAnnotations.spec.js | 3 +- .../unit/cases/CaseDetail/CardCase.spec.js | 3 +- .../cases/CaseDetail/CardComments.spec.js | 3 +- .../CaseDetail/CardGeneAnnotations.spec.js | 3 +- .../cases/CaseDetail/CardPedigree.spec.js | 3 +- .../unit/cases/CaseDetail/CardSvInfo.spec.js | 3 +- .../unit/cases/CaseDetail/CardTerms.spec.js | 5 +- .../cases/CaseDetail/CardVariantInfo.spec.js | 3 +- .../cases/CaseDetail/CardVariantQc.spec.js | 3 +- .../unit/cases/CaseDetail/FlagIcon.spec.js | 3 +- .../unit/cases/CaseDetail/PaneCase.spec.js | 3 +- .../unit/cases/CaseDetail/PaneQc.spec.js | 3 +- .../cases/CaseDetail/QcTableVarStats.spec.js | 3 +- .../cases/unit/cases/CaseDetailApp.common.js | 4 +- .../tests/cases/unit/cases/Overlay.spec.js | 3 +- frontend/tests/cohorts/unit/App.spec.js | 3 +- .../tests/cohorts/unit/api/cohorts.spec.js | 3 +- .../unit/components/CohortList.spec.js | 3 +- .../unit/components/CohortList/Header.spec.js | 3 +- .../unit/components/CohortList/Table.spec.js | 3 +- .../unit/components/ModalCohortEditor.spec.js | 3 +- .../tests/cohorts/unit/stores/cohorts.spec.js | 11 +- frontend/tests/varfish/unit/VegaPlot.spec.js | 3 +- .../unit/components/ColumnControl.spec.js | 3 +- .../unit/components/ColumnSizeFitter.spec.js | 3 +- .../components/FilterForm/ClinvarPane.spec.js | 3 +- .../components/FilterForm/EffectPane.spec.js | 3 +- .../components/FilterForm/FlagsPane.spec.js | 3 +- .../unit/components/FilterForm/Footer.spec.js | 3 +- .../FilterForm/FrequencyPane.spec.js | 3 +- .../FilterForm/GenesRegionsPane.spec.js | 1 + .../FilterForm/GenotypePane.spec.js | 3 +- .../FilterForm/GenotypePaneAffected.spec.js | 3 +- .../FilterForm/GenotypePaneModal.spec.js | 3 +- .../FilterForm/GenotypePaneSex.spec.js | 3 +- .../FilterForm/PrioritizationPane.spec.js | 3 +- .../components/FilterForm/QualityPane.spec.js | 3 +- .../FilterForm/QualityPaneRow.spec.js | 3 +- .../unit/components/HpoTermInput.spec.js | 7 +- .../components/TokenizingTextarea.spec.js | 1 + .../VariantDetails/CommentsFlags.spec.js | 7 +- .../variants/unit/stores/filterQuery.spec.js | 3 +- .../unit/stores/variantDetails.spec.js | 3 +- 231 files changed, 936 insertions(+), 693 deletions(-) create mode 100644 frontend/.prettierrc.js delete mode 100644 frontend/prettier.config.js create mode 100644 frontend/src/svs/components/SvFilterForm/GenesRegionsPane.lib.ts create mode 100644 frontend/src/variants/components/FilterForm/GenesRegionsPane.lib.ts diff --git a/frontend/.prettierrc.js b/frontend/.prettierrc.js new file mode 100644 index 000000000..96d583c9d --- /dev/null +++ b/frontend/.prettierrc.js @@ -0,0 +1,8 @@ +module.exports = { + "importOrder": ["^@/(.*)$", "^[./]" ], + "importOrderSeparation": true, + "importOrderSortSpecifiers": true , + "semi": false, + "singleQuote": true, + "plugins": ["@trivago/prettier-plugin-sort-imports"] +} diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 639e49d02..8cccec445 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -75,6 +75,7 @@ "@storybook/vue3": "^8.2.2", "@storybook/vue3-vite": "^8.1.5", "@testing-library/vue": "^8.1.0", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/jquery": "^3.5.29", "@types/node": "^20.14.10", "@vitejs/plugin-vue": "^5.1.1", @@ -103,7 +104,7 @@ "ndb": "^1.1.5", "node-fetch": "^3.3.2", "npm-check-updates": "^16.14.20", - "prettier": "3.3.2", + "prettier": "^3.3.2", "react": "^18.3.1", "react-dom": "^18.2.0", "sass": "^1.77.6", @@ -6840,6 +6841,122 @@ "node": ">= 10" } }, + "node_modules/@trivago/prettier-plugin-sort-imports": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@trivago/prettier-plugin-sort-imports/-/prettier-plugin-sort-imports-4.3.0.tgz", + "integrity": "sha512-r3n0onD3BTOVUNPhR4lhVK4/pABGpbA7bW3eumZnYdKaHkf1qEC+Mag6DPbGNuuh0eG8AaYj+YqmVHSiGslaTQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@babel/generator": "7.17.7", + "@babel/parser": "^7.20.5", + "@babel/traverse": "7.23.2", + "@babel/types": "7.17.0", + "javascript-natural-sort": "0.7.1", + "lodash": "^4.17.21" + }, + "peerDependencies": { + "@vue/compiler-sfc": "3.x", + "prettier": "2.x - 3.x" + }, + "peerDependenciesMeta": { + "@vue/compiler-sfc": { + "optional": true + } + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/@babel/generator": { + "version": "7.17.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.17.7.tgz", + "integrity": "sha512-oLcVCTeIFadUoArDTwpluncplrYBmTCCZZgXCbgNGvOBBiSDDK3eWO4b/+eOTli5tKv1lg+a5/NAXg+nTcei1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.17.0", + "jsesc": "^2.5.1", + "source-map": "^0.5.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/@babel/traverse": { + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/@babel/traverse/node_modules/@babel/generator": { + "version": "7.25.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.0.tgz", + "integrity": "sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.25.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/@babel/traverse/node_modules/@babel/types": { + "version": "7.25.2", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.25.2.tgz", + "integrity": "sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.24.8", + "@babel/helper-validator-identifier": "^7.24.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/@babel/types": { + "version": "7.17.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.17.0.tgz", + "integrity": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@trivago/prettier-plugin-sort-imports/node_modules/source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@tufjs/canonical-json": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/@tufjs/canonical-json/-/canonical-json-1.0.0.tgz", @@ -15377,6 +15494,13 @@ "node": ">=8" } }, + "node_modules/javascript-natural-sort": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/javascript-natural-sort/-/javascript-natural-sort-0.7.1.tgz", + "integrity": "sha512-nO6jcEfZWQXDhOiBtG2KvKyEptz7RVbpGP4vTD2hLBdmNQSsCiicO2Ioinv6UI4y9ukqnBpy+XZ9H6uLNgJTlw==", + "dev": true, + "license": "MIT" + }, "node_modules/javascript-time-ago": { "version": "2.5.10", "resolved": "https://registry.npmjs.org/javascript-time-ago/-/javascript-time-ago-2.5.10.tgz", @@ -20255,6 +20379,7 @@ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.2.tgz", "integrity": "sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==", "dev": true, + "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" }, diff --git a/frontend/package.json b/frontend/package.json index b703d3e8f..023f0b969 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -83,6 +83,7 @@ "@storybook/vue3": "^8.2.2", "@storybook/vue3-vite": "^8.1.5", "@testing-library/vue": "^8.1.0", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/jquery": "^3.5.29", "@types/node": "^20.14.10", "@vitejs/plugin-vue": "^5.1.1", @@ -111,7 +112,7 @@ "ndb": "^1.1.5", "node-fetch": "^3.3.2", "npm-check-updates": "^16.14.20", - "prettier": "3.3.2", + "prettier": "^3.3.2", "react": "^18.3.1", "react-dom": "^18.2.0", "sass": "^1.77.6", diff --git a/frontend/prettier.config.js b/frontend/prettier.config.js deleted file mode 100644 index 35fcafaf2..000000000 --- a/frontend/prettier.config.js +++ /dev/null @@ -1,4 +0,0 @@ -module.exports = { - semi: false, - singleQuote: true, -} diff --git a/frontend/src/cases/common.js b/frontend/src/cases/common.js index 171df8a10..e56c71306 100644 --- a/frontend/src/cases/common.js +++ b/frontend/src/cases/common.js @@ -1,7 +1,8 @@ +import { computed } from 'vue' + import { useCaseDetailsStore } from '@/cases/stores/caseDetails' import { useCaseListStore } from '@/cases/stores/caseList' import { State } from '@/varfish/storeUtils' -import { computed } from 'vue' export const overlayShow = computed(() => { const caseListStore = useCaseListStore() diff --git a/frontend/src/cases/common.ts b/frontend/src/cases/common.ts index cbb9ae735..854b47a88 100644 --- a/frontend/src/cases/common.ts +++ b/frontend/src/cases/common.ts @@ -1,10 +1,11 @@ +import { computed } from 'vue' + import { - useCaseDetailsStore, CaseVariantStatsEntry, + useCaseDetailsStore, } from '@/cases/stores/caseDetails' import { useCaseListStore } from '@/cases/stores/caseList' import { State } from '@/varfish/storeUtils' -import { computed } from 'vue' export const overlayShow = computed(() => { const caseListStore = useCaseListStore() diff --git a/frontend/src/cases/components/CaseDetail/CardAlignmentQc.vue b/frontend/src/cases/components/CaseDetail/CardAlignmentQc.vue index c1a7d65d0..bd3c03ce0 100644 --- a/frontend/src/cases/components/CaseDetail/CardAlignmentQc.vue +++ b/frontend/src/cases/components/CaseDetail/CardAlignmentQc.vue @@ -2,8 +2,8 @@ import { computed } from 'vue' import { useCaseDetailsStore } from '@/cases/stores/caseDetails' -import { State } from '@/varfish/storeUtils' import { displayName, formatLargeInt } from '@/varfish/helpers' +import { State } from '@/varfish/storeUtils' // Store-related. diff --git a/frontend/src/cases/components/CaseDetail/CardAnnotations.vue b/frontend/src/cases/components/CaseDetail/CardAnnotations.vue index e6fdab0ae..00ea44901 100644 --- a/frontend/src/cases/components/CaseDetail/CardAnnotations.vue +++ b/frontend/src/cases/components/CaseDetail/CardAnnotations.vue @@ -1,11 +1,11 @@