eslint-config-founderlab

0.3.16 • Public • Published

FounderLab JavaScript style guide

Based on the Airbnb Style Guide, with no semicolons and a bunch of rules relaxed

Remember to not start lines with a '(' or '[' (or '/' or any operator really).

// bad
function nameMe() {
  const name = 'Skywalker';
  return name;
}
 
// good
function nameMe() {
  const name = 'Skywalker'
  return name
}
 
// bad (the leading '[' will be considered part of the last line)
[1,2,3].forEach((num) => {
  console.log(num)
})
 
// bad (the leading '(' will be considered part of the last line)
(() => {
  const name = 'Skywalker'
  return name
})()
 
// bad (ugly and looks silly)
;(() => {
  const name = 'Skywalker'
  return name
})()
 
// good (just name the function and call it)
function nameMe() {
  const name = 'Skywalker'
  return name
}
nameMe()

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-founderlab

Weekly Downloads

22

Version

0.3.16

License

MIT

Unpacked Size

4.93 kB

Total Files

4

Last publish

Collaborators

  • founderlab