Eslint standard required:
Missing space before function parentheses
beautify result:
export default {
data() {
return {
input: ''
}
}
}
expected:
export default {
data () { // this row
return {
input: ''
}
}
}
This would be a difference for the rest of the function declarations.
Function declarations usually look like function bar() {}
not function bar () {}
.
has fixed ?
No. This is an enhancement that would require an additional setting. I encourage you to submit a pull request with tests.
using vue-cli eslint and also has this error:
Missing space before function parentheses
function bar() {} not function bar () {}.
I can just change
function bar()
to
let bar = () => {}
waiting for fix this ~
A function inside an object like this:
var myObj = {
foo () {
// something
}
}
I can't use the arrow function
waiting for fix this or giving an option
Anything new with this?
it would definetly be nice to have this implemented
Having the same issue as I use js-standard formatting.
Linter package I use: https://github.com/ricardofbarros/linter-js-standard
Actual error: Missing space before function parantheses. (space-before-function-paren)
I think I have to solve this problem, but I request to merge the code fails, who can help me #1436
There is now a space_after_named_function
setting (see #608).
However, in the statement a = { myfunc() {} };
, "myfunc" isn't recognized as a function expression.
Fixed in #1425.
Most helpful comment
it would definetly be nice to have this implemented