What if eslint reports this mistake?

The clipboard plug-in for

has been introduced into the entry file

import Clipboard from "clipboard"
Vue.prototype.clipboard = Clipboard

Why should new be used here in components? I think other plug-ins can be introduced directly
this.copyBtn = new this.clipboard (this.$refs.copy)

always prompts to change to uppercase but not to uppercase but the code can"t run but always prompts this error how to change it if you don"t set eslint and only change the code?

Mar.17,2022

is just that the writing does not conform to the new-cap specification. eslint set a new-cap: 'off' .


uppercase is fine when defining components:

export default {
    name: "YouComponentName"
}

introduce it in uppercase:

import YouComponentName form '/path'
Vue.use(YouComponentName)
Menu