This rule enforces or disallows the use of parentheses when defining a function with an empty parameter list
This rule has a string option:
"coffee/empty-func-parens": ["error", "never"]
"never"
(default) disallows parentheses for empty parameter lists"always"
requires parentheses for empty parameter lists
###eslint coffee/empty-func-parens: ["error", "never"]###
() ->
() =>
doSomething()
class A
b: () ->
c()
###eslint coffee/empty-func-parens: ["error", "never"]###
->
=>
doSomething()
class A
b: ->
c()
(a) -> a + 1
###eslint coffee/empty-func-parens: ["error", "always"]###
->
=>
doSomething()
class A
b: ->
c()
###eslint coffee/empty-func-parens: ["error", "always"]###
() ->
() =>
doSomething()
class A
b: () ->
c()
(a) -> a + 1