From 8410ca90c4ddcd1560cf97a50e897ed1fa318709 Mon Sep 17 00:00:00 2001 From: wouter-adriaens Date: Wed, 17 Jan 2024 09:23:51 +0100 Subject: [PATCH] #120 Update precommit and apply prettier import order --- .pre-commit-config.yaml | 8 +++---- cypress/support/component.ts | 2 +- src/__tests__/InputPhone.cy.ts | 2 +- src/__tests__/OeZoneerder.cy.ts | 2 +- src/components/dumb/FilterDatepicker.vue | 7 +++--- src/components/dumb/OeAutocomplete.vue | 4 ++-- src/components/smart/FilterAOEActor.vue | 2 +- .../smart/FilterAanduidingsobject.vue | 2 +- src/components/smart/FilterGemeente.vue | 2 +- src/components/smart/FilterProvincie.vue | 2 +- src/components/smart/OeActorWidget.vue | 8 +++---- src/components/smart/OeActorWidgetGrid.vue | 8 +++---- src/components/smart/OeAdres.vue | 14 +++++------ src/components/smart/OeZoneerder.vue | 14 +++++------ .../smart/OeZoneerderLayerswitcher.vue | 8 +++---- src/components/smart/OeZoneerderZonePanel.vue | 24 +++++++++---------- src/models/aanduidingsobject.ts | 2 +- src/services/crab-api.service.ts | 4 ++-- src/stories/dumb-components/button.stories.ts | 2 +- .../dumb-components/container.stories.ts | 2 +- .../dumb-components/filter-radio.stories.ts | 2 +- src/stories/dumb-components/grid.stories.ts | 2 +- src/stories/dumb-components/header.stories.ts | 2 +- .../dumb-components/input-phone.stories.ts | 2 +- src/stories/dumb-components/loader.stories.ts | 2 +- .../no-rows-overlay.stories.ts | 2 +- src/stories/dumb-components/select.stories.ts | 2 +- .../dumb-components/system-fields.stories.ts | 2 +- .../dumb-components/tiny-mce.stories.ts | 2 +- src/stories/dumb-components/wizard.stories.ts | 2 +- src/stories/smart-components/adres.stories.ts | 2 +- .../oe-actor-widget.stories.ts | 2 +- .../smart-components/oe-zoneerder.stories.ts | 2 +- src/utils/openlayers/oe-ol-geolocate.ts | 8 +++---- 34 files changed, 76 insertions(+), 77 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79f30bd2..df47aa9e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,19 +10,19 @@ repos: hooks: - id: prettier additional_dependencies: - - prettier@2.8.4 + - prettier@3.2.3 types_or: [ts, javascript, scss, css, yaml, json, vue] - repo: https://github.com/pre-commit/mirrors-eslint - rev: v8.34.0 + rev: v8.56.0 hooks: - id: eslint additional_dependencies: - - eslint@8.34.0 + - eslint@8.56.0 - eslint-config-prettier@8.8.0 - eslint-import-resolver-typescript@3.5.5 - eslint-plugin-cypress@2.12.1 - eslint-plugin-import@2.27.5 - - eslint-plugin-prettier@4.2.1 + - eslint-plugin-prettier@5.1.3 - eslint-plugin-vue@9.11.0 - '@vue/eslint-config-prettier@7.1.0' - '@vue/eslint-config-typescript@11.0.2' diff --git a/cypress/support/component.ts b/cypress/support/component.ts index 18cb9258..04468b11 100644 --- a/cypress/support/component.ts +++ b/cypress/support/component.ts @@ -13,8 +13,8 @@ // https://on.cypress.io/configuration // *********************************************************** // Import commands.js using ES2015 syntax: -import './commands'; import '@/scss/main.scss'; +import './commands'; import { library } from '@fortawesome/fontawesome-svg-core'; import { fab } from '@fortawesome/free-brands-svg-icons'; import { far } from '@fortawesome/free-regular-svg-icons'; diff --git a/src/__tests__/InputPhone.cy.ts b/src/__tests__/InputPhone.cy.ts index f333567e..85337d3f 100644 --- a/src/__tests__/InputPhone.cy.ts +++ b/src/__tests__/InputPhone.cy.ts @@ -1,6 +1,6 @@ +import type { CountryCode } from 'libphonenumber-js'; import { defineComponent, ref } from 'vue'; import InputPhone from '@components/dumb/InputPhone.vue'; -import type { CountryCode } from 'libphonenumber-js'; const TestComponent = defineComponent({ components: { InputPhone }, diff --git a/src/__tests__/OeZoneerder.cy.ts b/src/__tests__/OeZoneerder.cy.ts index fd9ac222..8bdd05a2 100644 --- a/src/__tests__/OeZoneerder.cy.ts +++ b/src/__tests__/OeZoneerder.cy.ts @@ -1,8 +1,8 @@ /* eslint-disable vue/one-component-per-file */ import { defineComponent } from 'vue'; import { LayerType } from '@/models'; -import { OeZoneerder } from '@components/smart'; import type { OeZoneerderProps } from '@/models'; +import { OeZoneerder } from '@components/smart'; describe('OeZoneerder', () => { describe('default', () => { diff --git a/src/components/dumb/FilterDatepicker.vue b/src/components/dumb/FilterDatepicker.vue index bcdf5160..92b48efd 100644 --- a/src/components/dumb/FilterDatepicker.vue +++ b/src/components/dumb/FilterDatepicker.vue @@ -5,16 +5,15 @@ :value="dateValue" visual-format="d-m-Y" @input="updateValue" - /> + >