最近我的SublimeText linter发生了意想不到的变化。如果文件中存在掉毛错误,我将在ST窗口中打开并显示掉墨错误。
SublimeLinter: #1053 eslint someJSFile.js.jsx ERROR:
Warning: the NODE_ENV is not set and the webpack config is defaulting to a production build.
[{"filePath":"/Users/.../someJSFile.js.jsx","messages":[{"ruleId":"import/extensions","severity":2,"message":"Missing file extension for \"jquery\"","line":2,"column":15,"nodeType":"Literal","source":"import $ from \"jquery\";","endLine":2,"endColumn":23},{"ruleId":"import/no-commonjs","severity":2,"message":"Expected \"export\" or \"export default\"","line":40,"column":1,"nodeType":"MemberExpression","source":"module.exports = ...
我正在显示内联错误,但这很烦人。如何阻止此窗口弹出?
答案 0 :(得分:-1)
这不是lint错误,而是linter报告配置错误,导致其无法正常工作。我们已经对SublimeLinter如何处理这些进行了一些改进,但是如果你仍然得到这些,那么消息就是这一行:
Warning: the NODE_ENV is not set and the webpack config is defaulting to ..etc