From 2d7598e0816208a5f65a882d4149d1bba4cbfc1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yae=CC=88l=20GUILLOUX?= Date: Wed, 12 May 2021 18:04:19 +0200 Subject: [PATCH] :rotating_light: (lint) update project files w/ new lint rules --- docs/components/AppFooter.vue | 39 +++++++++++- docs/components/FooterBody.vue | 26 +++++++- docs/components/Showcases.vue | 16 ++++- playground/components/Page.vue | 40 +++++++++++- src/admin/app/components/FilesTree.vue | 16 ++++- src/admin/runtime/DocusUI.vue | 62 +++++++++++++++++-- src/core/runtime/api/QueryBuilder.ts | 2 +- src/defaultTheme/components/atoms/Badge.vue | 14 ++++- .../components/atoms/CardGrid.vue | 11 +++- .../components/atoms/CodeGroup.vue | 12 +++- .../components/atoms/CodeSandbox.vue | 15 ++++- .../components/molecules/AsideNavigation.vue | 38 +++++++++++- .../molecules/AsideNavigationItem.vue | 14 ++++- .../components/molecules/NavigationButton.vue | 14 ++++- .../components/organisms/AppAside.vue | 15 ++++- .../components/organisms/AppHeader.vue | 13 +++- .../components/organisms/BlockFeatures.vue | 31 +++++++++- .../components/organisms/BlockHero.vue | 36 ++++++++++- .../components/organisms/BlogpostToc.vue | 38 +++++++++--- .../components/organisms/PageContent.vue | 17 ++++- .../components/organisms/PagePrevNext.vue | 45 +++++++++++++- .../components/organisms/PageToc.vue | 52 +++++++++++++--- .../components/templates/Blog.vue | 31 ++++++++-- .../components/templates/BlogPost.vue | 16 ++++- 24 files changed, 556 insertions(+), 57 deletions(-) diff --git a/docs/components/AppFooter.vue b/docs/components/AppFooter.vue index df940c480..a658f1481 100644 --- a/docs/components/AppFooter.vue +++ b/docs/components/AppFooter.vue @@ -6,7 +6,16 @@ href="https://nuxtlabs.com" rel="noopener" target="_blank" - class="flex items-end text-gray-900 dark:text-gray-300 dark:hover:text-gray-100 hover:text-gray-600 mb-3 sm:mb-0" + class=" + flex + items-end + text-gray-900 + dark:text-gray-300 + dark:hover:text-gray-100 + hover:text-gray-600 + mb-3 + sm:mb-0 + " >

Made by Nuxt Labs

@@ -18,7 +27,19 @@ aria-label="NuxtJS" href="https://nuxtjs.org" target="_blank" - class="text-sm flex items-center font-medium p-1 text-gray-500 transition-colors duration-200 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-400" + class=" + text-sm + flex + items-center + font-medium + p-1 + text-gray-500 + transition-colors + duration-200 + dark:text-gray-500 + hover:text-gray-700 + dark:hover:text-gray-400 + " > @@ -27,7 +48,19 @@ aria-label="Vue Telescope" href="https://vuetelescope.com" target="_blank" - class="text-sm flex items-center font-medium p-1 text-gray-500 transition-colors duration-200 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-400" + class=" + text-sm + flex + items-center + font-medium + p-1 + text-gray-500 + transition-colors + duration-200 + dark:text-gray-500 + hover:text-gray-700 + dark:hover:text-gray-400 + " > diff --git a/docs/components/FooterBody.vue b/docs/components/FooterBody.vue index b5e56944c..18f117302 100644 --- a/docs/components/FooterBody.vue +++ b/docs/components/FooterBody.vue @@ -12,14 +12,36 @@ diff --git a/docs/components/Showcases.vue b/docs/components/Showcases.vue index 851fbf89b..f2e4e1b50 100644 --- a/docs/components/Showcases.vue +++ b/docs/components/Showcases.vue @@ -2,8 +2,20 @@ diff --git a/playground/components/Page.vue b/playground/components/Page.vue index 83442a6ed..d7de4bf65 100644 --- a/playground/components/Page.vue +++ b/playground/components/Page.vue @@ -19,7 +19,22 @@

{{ page.title }}

Draft {{ page.badge }} @@ -30,12 +45,31 @@
  • diff --git a/src/admin/runtime/DocusUI.vue b/src/admin/runtime/DocusUI.vue index 16b744f05..29f12249e 100644 --- a/src/admin/runtime/DocusUI.vue +++ b/src/admin/runtime/DocusUI.vue @@ -12,7 +12,19 @@
  • @@ -36,7 +63,19 @@
  • diff --git a/src/core/runtime/api/QueryBuilder.ts b/src/core/runtime/api/QueryBuilder.ts index 30f3981e0..580b07efe 100644 --- a/src/core/runtime/api/QueryBuilder.ts +++ b/src/core/runtime/api/QueryBuilder.ts @@ -8,7 +8,7 @@ const omit = keys => obj => .filter(key => !keys.includes(key)) .reduce((newObj, key) => Object.assign(newObj, { [key]: obj[key] }), {}) -const apply = fn => data => (Array.isArray(data) ? data.map(item => fn(item)) : fn(data)) +const apply = fn => data => Array.isArray(data) ? data.map(item => fn(item)) : fn(data) export class QueryBuilder { private query: any diff --git a/src/defaultTheme/components/atoms/Badge.vue b/src/defaultTheme/components/atoms/Badge.vue index 0e5b7e4f3..ebf0c9186 100644 --- a/src/defaultTheme/components/atoms/Badge.vue +++ b/src/defaultTheme/components/atoms/Badge.vue @@ -1,6 +1,18 @@