New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

noeslint

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noeslint

ESLint禁止工具

1.0.1
npm
Version published
Maintainers
1
Created
Source

noESLint

给每个文件加上 | 删除 /* eslint-disable */,避免打包的时候Eslint校检出错。

背景

Jenkins配置文件突然增加了ESLint校检,以前的代码质量比较差,逐行去修改比较麻烦。希望有一个工具可以给目录下的所有文件自动增加一行/* eslint-disable */来跳过该校检。

安装
    npm install 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

Package last updated on 27 May 2019

Did you know?

Socket

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.

Install

Related posts