
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
eslint-plugin-vueunused
Advanced tools
a eslint plugin for detecting unused code in vue single file component
ENGLISH | 中文
a eslint plugin for detecting unused code in vue single file component
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-vueunused
$ npm install eslint-plugin-vueunused --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-vueunused
globally.
Add vueunused
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"vueunused"
]
}
Just extends the plugin's recommended configuration
{
"extends": ["plugin:vueunused/recommend"],
}
only one rule
This plugin is not compatible with eslint-plugin-html
,cause that plugin could destroy your scf(.vue)
component template information, But if you need to use eslint-plugin-html
to lint your .html
file, you could add setting as below to lint your html
file only.
module.exports = {
...
settings: {
'html/html-extensions': ['.html'] // consider .html and .we files as HTML
}
}
.I recommend you use eslint-plugin-vue
, this plugin is also used to make up for the feature that did not complete, like no-unused-methods,no-unused-variables and so on, actually most of property you defined in the component scope which is not used it can detect it.
If you use the VSCode editor, I strongly recommend that you install the ESlint
VSCode plugin, which can point out dead code in a single file in a more intuitive way.
FAQs
a eslint plugin for detecting unused code in vue single file component
We found that eslint-plugin-vueunused demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.