際際滷

際際滷Share a Scribd company logo
Bring
@leynar
github.com/franher
Fran Herrero
Why code style matters ?
 Faster code reviews
 Increasing code readability
 Better code maintainability
 Easier switching among
projects developers
 Well documented
 Used by most of javascript community
 ESLint integrated
 https://github.com/airbnb/javascript/tree/master
 RTFM! http://eslint.org/docs/user-guide/getting-started
Extend airbnb-base on your .eslintrc and customize it if you want! (and we let you)
prettier+ + ===
All in!
 Visual Studio Code
 https://marketplace.visualstudio.com/items?itemName=dbaeumer.vs
code-eslint
 https://marketplace.visualstudio.com/items?itemName=RobinMalfait
.prettier-eslint-vscode
eslint-config-airbnb-base fit for us?
 comma-dangle REALLY,?,
 no-param-reassign Be pure my friend!
 no-unused-expressions.allowShortCircuit
What else?
 consistent-return You owe me one

More Related Content

Style Is Cool

Editor's Notes

  • #4: Airbnb style guide: https://github.com/airbnb/javascript
  • #6: including ECMAScript 6+ https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base Peer deps : eslint , eslint-plugin-import https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base No base contiene react rules
  • #7: Show on live how the plugins works Eslint on global Configuration of prettier CMD + , Line length === 100
  • #8: Comma-dangle http://eslint.org/docs/rules/comma-dangle Consistent-return http://eslint.org/docs/rules/consistent-return No-param-reassign: http://eslint.org/docs/rules/no-param-reassign (see inline disabled)