简体   繁体   English

eslint-plugin-import:用于js文件而不是svg或CSS

[英]eslint-plugin-import: for js files not svg or css

I am using eslint import plugin with eslint. 我正在使用eslint的eslint导入插件。

I am importing images and SVG inline from source files but my linting gives me a warning: 我正在从源文件内联导入图像和SVG,但是我的棉绒给了我一个警告:

No default export found in module              import/default

I want to switch off the warning but only for non-"*.js" values. 我想关闭警告,但仅针对非“ * .js”值。 Is it possible to do that? 有可能这样做吗?

I thing you are talking about the import/ignore setting. 我要说的是import/ignore设置。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM