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)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3682b-2b867.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3682b-2b867.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?