Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix false positives for non-vue file in vue/multi-word-component-names rule #1684

Merged
merged 1 commit into from Oct 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 29 additions & 0 deletions tests/lib/rules/multi-word-component-names.js
Expand Up @@ -169,6 +169,35 @@ tester.run('multi-word-component-names', rule, {
}
</script>
`
},
{
filename: 'test.js',
code: `
new Vue({})
`
},
{
// https://github.com/vuejs/eslint-plugin-vue/issues/1670
filename: 'main.ts',
code: `
import Vue from 'vue'
import VueCompositionAPI, { h } from '@vue/composition-api'
import i18n from '@/i18n'
import router from '@/router'
import store from '@/store'
// ...
Vue.use(VueCompositionAPI)
new Vue({
i18n,
router,
store,
setup() {
return () => h(App)
},
}).$mount('#app')
`
}
],
invalid: [
Expand Down