Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Improving your code with Linter tools
Search
Bruno Genaro
March 20, 2015
Technology
80
0
Share
Improving your code with Linter tools
Bruno Genaro
March 20, 2015
More Decks by Bruno Genaro
See All by Bruno Genaro
Renderizando Componentes React no Servidor
brunogenaro
1
350
The future of React with Universal web applications
brunogenaro
0
110
The future of React with Universal web applications
brunogenaro
0
130
Understand Front-End Roles
brunogenaro
1
160
Why did I build my website using ReactJS?
brunogenaro
0
60
Essential JavaScript libraries to improve your workflow
brunogenaro
0
81
Consuming Third Party Data With JSONP
brunogenaro
0
120
Improving your Sublime Text 3 workflow
brunogenaro
0
190
Other Decks in Technology
See All in Technology
ネットワーク運用を楽にするAWS DevOps Agent活用法!! / 20260421 Masaki Okuda
shift_evolve
PRO
2
230
AI バイブコーティングでキーボード不要?!
samakada
0
620
Standards et agents IA : un tour d’horizon de MCP, A2A, ADK et plus encore
glaforge
0
190
260422_Sansan_Tech_Talk__関西_vol.3_データ活用のリアル__矢田__.pdf
sansantech
PRO
0
120
VespaのParent Childを用いたフィードパフォーマンスの改善
taking
0
110
AI時代のガードレールとしてのAPIガバナンス
nagix
0
310
AzureのIaC管理からログ調査まで、随所に役立つSkillsとCustom-Instructions / Boosting IaC and Log Analysis with Skills
aeonpeople
0
260
独断と偏見で試してみる、 シングル or マルチエージェント どっちがいいの?
shichijoyuhi
1
130
扱える不確実性を増やしていく - スタートアップEMが考える「任せ方」
kadoppe
0
320
社内エンジニア勉強会の醍醐味と苦しみ/tamadev
nishiuma
0
240
ハーネスエンジニアリングの概要と設計思想
sergicalsix
9
5.3k
Chasing Real-Time Observability for CRuby
whitegreen
0
260
Featured
See All Featured
Darren the Foodie - Storyboard
khoart
PRO
3
3.3k
Evolving SEO for Evolving Search Engines
ryanjones
0
180
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
55k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
350
Amusing Abliteration
ianozsvald
1
160
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
280
The Invisible Side of Design
smashingmag
303
52k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
The Spectacular Lies of Maps
axbom
PRO
1
710
Being A Developer After 40
akosma
91
590k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Navigating Weather and Climate Data
rabernat
0
170
Transcript
Improving your code with Linter tools Bruno Genaro
What is a Linter tool? • Analyses your code
• Checks poten?al errors • Bad habits • Best prac?ces • Consistency mistakes
Why should we use? • Be familiar with best prac?ces
• Create our own best prac?ces and paBerns • Consistent code across mul?ple applica?ons • Maintainable code / Easy debug
Let’s talk about JavaScript • JSLint (Douglas Crockford -‐ JavaScript:
The Good Parts) • JSHint (The famous one) • JSCS • ESLint (The preBy younger guy, good to write ES6)
JSHint • Helps you to write more reliable and consistent
JavaScript code. • Checks your code for a number of common errors • Never forget a semicolon anymore!!! • Customizable configura?on using .jshintrc file • hBp://jshint.com/docs/op?ons/
Good .jshintrc examples: • Airbnb: hBps://github.com/airbnb/javascript/blob/ master/linters/jshintrc • HTML5
Boilerplate: hBps://github.com/h5bp/ html5boilerplate.com/blob/master/.jshintrc • Yeoman Ember.js Generator: hBps://github.com/ yeoman/generator-‐ember/blob/master/.jshintrc • Bootstrap: hBps://github.com/twbs/bootstrap/blob/ master/js/.jshintrc
Let’s code like a boss!