Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
给每个文件加上 | 删除 /* 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文件批量禁止工具
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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.