Javascript 从导入的节点_模块CSS中抑制eslint警告
某些依赖项要求您将CSS从节点_模块导入到文件中Javascript 从导入的节点_模块CSS中抑制eslint警告,javascript,eslint,froala,Javascript,Eslint,Froala,某些依赖项要求您将CSS从节点_模块导入到文件中 // editor.js import 'froala-editor/css/froala_editor.pkgd.css'; import FroalaEditor from 'react-froala-wysiwyg'; export default = () => <FroalaEditor /> eslint禁用来自节点_模块的lint警告,导入文件时除外。如何抑制这些警告 我所尝试的: 正在添加filename.
// editor.js
import 'froala-editor/css/froala_editor.pkgd.css';
import FroalaEditor from 'react-froala-wysiwyg';
export default = () => <FroalaEditor />
eslint禁用来自节点_模块的lint警告,导入文件时除外。如何抑制这些警告
我所尝试的:
- 正在添加filename.eslintignore
- //eslint在editor.js中导入前禁用下一行
Compiled with warnings.
./node_modules/froala-editor/css/froala_editor.pkgd.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./node_modules/froala-editor/css/froala_editor.pkgd.css)
Warning
(1990:3) Replace fill-available to stretch, because spec had been changed
./node_modules/froala-editor/css/froala_editor.pkgd.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./node_modules/froala-editor/css/froala_editor.pkgd.css)
Warning
(2047:3) Replace fill-available to stretch, because spec had been changed
./node_modules/froala-editor/css/froala_editor.pkgd.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./node_modules/froala-editor/css/froala_editor.pkgd.css)
Warning
(2111:3) Replace fill-available to stretch, because spec had been changed