【问题标题】:eslint-plugin-import: for js files not svg or csseslint-plugin-import:适用于非 svg 或 css 的 js 文件
【发布时间】:2018-12-01 11:49:08
【问题描述】:

我正在使用带有 eslint 的 eslint 导入插件。

我正在从源文件内联导入图像和 SVG,但我的 linting 给了我一个警告:

No default export found in module              import/default

我想关闭警告,但仅适用于非“*.js”值。有可能吗?

【问题讨论】:

    标签: node.js reactjs eslint


    【解决方案1】:

    我知道你在谈论import/ignore 设置。

    文档:https://github.com/benmosher/eslint-plugin-import#importignore

    【讨论】:

      猜你喜欢
      • 2020-07-16
      • 1970-01-01
      • 2020-11-25
      • 2017-12-17
      • 2017-05-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-12
      相关资源
      最近更新 更多