peopledoc / eslint-config-peopledoc

ESLint config for PeopleDoc frontend projects
MIT License
1 stars 1 forks source link

Allow "space before function parentheses" to improve readability #39

Closed MrChocolatine closed 4 years ago

MrChocolatine commented 5 years ago

Currently the rule recommends not to put a space before function parentheses.

Disabling this rule will improve the readability of async arrow function expressions.

// Rule enabled => no space between `async` and the following `(`
// Looks like the function's name is "async"
// Misleading as an arrow function can't have a name (different than the assignment to the var `myFunc`)
const myFunc = async(arg) => {
// Rule disabled => a space is present between `async` and the following `(`
const myFunc = async (arg) => {