有没有办法像下面这样用riot.js代码处理Intellij IDEA的警告?
// no warnings
function first() {
return ''
}
// warnings:
// 'expecting new line or semicolon' after '()'
// 'return outside function definition' on return statement
second() {
return ''
}如果我写像this.second = function() {}这样的代码,它工作得很好,而且没有任何警告。但是我怎么才能写出漂亮的代码而没有这样的警告呢?
我找不到IDEA的riot.js插件。此外,我还尝试在JavaScript设置中打开ECMAScript 6,但没有任何帮助。有什么想法吗?
发布于 2020-09-28 18:29:02
快进几年后,现在有了IDEA的riot.js插件:https://plugins.jetbrains.com/plugin/12748-riot-js
https://stackoverflow.com/questions/36467573
复制相似问题