peopledoc / eslint-config-peopledoc

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

Spaces arround the arrow of arrow function #57

Closed ryuran closed 4 years ago

ryuran commented 4 years ago

OK:

() => true
() => {/**/}

KO:

()=>true
()=> true
() =>true
()=>{/**/}
()=> {/**/}
() =>{/**/}
()=> {/**/}
    'arrow-spacing': ['error', {
      before: true,
      after: true
    }]
MrChocolatine commented 4 years ago

+1 to the proposition. Whitespace are good and not evil.