【问题标题】:.eslintignore exclusions not applying when launching eslint.eslintignore 排除在启动 eslint 时不适用
【发布时间】:2022-05-10 18:58:23
【问题描述】:

这是我的项目架构:

我的 .eslintignore :

/public/*
/test/*

这两个文件夹位于 client/public && client/test 但由于某种原因,在启动 eslint 时,它仍然会检查我排除的文件。

我正在通过这个命令启动 eslint:

./node_modules/.bin/eslint . -c ../.eslintrc.js

【问题讨论】:

    标签: javascript eslint eslintignore


    【解决方案1】:

    试试这个

    /client/public/*
    /client/test/*
    

    【讨论】:

      猜你喜欢
      • 2021-02-14
      • 2018-11-04
      • 1970-01-01
      • 2018-04-24
      • 1970-01-01
      • 2018-12-06
      • 2015-11-18
      • 2021-11-28
      • 1970-01-01
      相关资源
      最近更新 更多