From 1f9024482e6fc81e773ec3bac016ce29f40498c9 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 4 Jun 2024 16:41:59 +0200 Subject: [PATCH] Add sort-import eslint rule --- frontend/.eslintrc.cjs | 1 + frontend/src/App.vue | 2 +- frontend/src/components/AskingExpert.vue | 2 +- frontend/src/components/ResultPage.vue | 4 ++-- frontend/src/router/index.ts | 2 +- .../src/utils/firearms-utils/epaule-a-levier-sous-garde.ts | 2 +- frontend/src/utils/firearms-utils/epaule-a-verrou.ts | 2 +- .../src/utils/firearms-utils/get-next-route-after-result.ts | 2 +- frontend/src/views/AccessibilityPage.vue | 2 +- .../GuideIdentificationFirearm.vue | 4 ++-- .../GuideIdentificationFirearm/IdentificationBlankGun.vue | 6 ++---- .../GuideIdentificationFirearm/IdentificationSelectAmmo.vue | 2 +- .../src/views/GuideSecuringFirearm/SecuringAchievement.vue | 2 +- frontend/src/views/InstructionsPage.vue | 2 +- frontend/vite.config.ts | 2 +- 15 files changed, 18 insertions(+), 19 deletions(-) diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs index 7f7533c5..20705887 100644 --- a/frontend/.eslintrc.cjs +++ b/frontend/.eslintrc.cjs @@ -31,6 +31,7 @@ module.exports = { '@typescript-eslint/comma-dangle': [2, 'always-multiline'], 'vue/no-v-html': 0, 'no-irregular-whitespace': 0, + 'sort-imports': 1 }, overrides: [ { diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 111f9ccb..832b96a7 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,5 +1,5 @@