diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index 603cfe220..000000000 --- a/.eslintrc +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@nuxtjs/eslint-config-typescript", - "rules": { - "vue/multi-word-component-names": [0], - "vue/no-multiple-template-root": [0] - } -} diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 000000000..b8da517c8 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,16 @@ +module.exports = { + root: true, + extends: [ + '@nuxt/eslint-config' + ], + rules: { + // Global + semi: ['error', 'never'], + quotes: ['error', 'single'], + 'quote-props': ['error', 'as-needed'], + 'no-unused-vars': ['error', { argsIgnorePattern: '^_' }], + // Vue + 'vue/multi-word-component-names': 0, + 'vue/no-v-html': 0 + } +} diff --git a/components/app/AppFooter.vue b/components/app/AppFooter.vue index 3cd0ca717..55c9d5c97 100644 --- a/components/app/AppFooter.vue +++ b/components/app/AppFooter.vue @@ -3,17 +3,30 @@ const { config } = useDocus() const socialIcons = ref(null) const icons = computed(() => config.value?.footer?.iconLinks || []) const textLinks = computed(() => config.value?.footer?.textLinks || []) -const socialIconsCount = computed(() => Object.entries(config.value?.socials || {}).filter(([_, v]) => v).length) +const socialIconsCount = computed(() => Object.entries(config.value?.socials || {}).filter(([, v]) => v).length) const nbSocialIcons = computed(() => (socialIcons.value ? socialIconsCount.value : 0))