
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
给每个文件加上 | 删除 /* eslint-disable */,避免打包的时候Eslint校检出错。
Jenkins配置文件突然增加了ESLint校检,以前的代码质量比较差,逐行去修改比较麻烦。希望有一个工具可以给目录下的所有文件自动增加一行/* eslint-disable */来跳过该校检。
// example.vue
<template>
<div class="app"></div>
</template>
<script>
var a = 1
</script>
//转化为
=====>
<template>
<!-- eslint-disable -->
<div class="app"></div>
</template>
<script>
/* eslint-disable */
var a = 1
</script>
npm i noeslint -g
给src目录下所有文件增加 /* eslint-disable */注释
cd project
noESLint -d src
给src和components文件夹增加 /* eslint-disable */注释
cd project
noESLint -d src components
删除src目录下所有文件的 /* eslint-disable */ 注释
cd project
noESLint -r src
-v --version 查看版本
-d --dir 增加/* eslint-disable*/ 可以添加多个目录
-r --remove 删除/* eslint-disable*/注释
FAQs
ESLint文件批量禁止工具
The npm package noeslint receives a total of 8 weekly downloads. As such, noeslint popularity was classified as not popular.
We found that noeslint 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.