Skip to content

Commit

Permalink
Enforce vue/no-undef-components ESLint rule (#921)
Browse files Browse the repository at this point in the history
* Import PvChart on the card administration component

* Enable vue/no-undef-components linter rule

* Bump eslint-plugin-vue from 9.27.0 to 9.30.0

---------

Co-authored-by: Elijah Kelly <[email protected]>
  • Loading branch information
maximilianoertel and kellyel authored Oct 30, 2024
1 parent 9426154 commit fdaafe0
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 15 deletions.
14 changes: 13 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@
"camelcase": "off",
"func-names": 0,
"object-shorthand": 0,
"implicit-arrow-linebreak": 0
"implicit-arrow-linebreak": 0,
"vue/no-undef-components": [
"error",
{
"ignorePatterns": [
"AppSpinner",
"GMapAutocomplete", // vue-google-maps-community-fork
"i18n-t", // vue-i18n
"router-link", // vue-router
"router-view" // vue-router
]
}
]
},
"ignorePatterns": ["**/node_modules/**", "**/dist/**", "**/lib/**", "roar-firebase-functions"]
}
39 changes: 26 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/pages/LEVANTE/UserSurvey.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ async function saveResults(sender) {
<template>
<div v-if="survey && !isSavingResponses && !audioLoading">
<!-- eslint-disable-next-line vue/no-undef-components -->
<SurveyComponent :model="survey" />
<div v-for="page in fetchedSurvey.pages" :key="page.name">
Expand Down
6 changes: 5 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export default defineConfig({
},
},
optimizeDeps: {
include: ['@bdelab/roar-firekit', 'vue-google-maps-community-fork', 'fast-deep-equal'],
include: [
'@bdelab/roar-firekit',
'vue-google-maps-community-fork',
'fast-deep-equal', // Required due to https://github.com/nathanap/vue-google-maps-community-fork/issues/4
],
},
});

0 comments on commit fdaafe0

Please sign in to comment.