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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Bruno Genaro
March 20, 2015
Technology
0
76
Improving your code with Linter tools
Bruno Genaro
March 20, 2015
Tweet
Share
More Decks by Bruno Genaro
See All by Bruno Genaro
Renderizando Componentes React no Servidor
brunogenaro
1
340
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
57
Essential JavaScript libraries to improve your workflow
brunogenaro
0
76
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
大規模な組織におけるAI Agent活用の促進と課題
lycorptech_jp
PRO
5
6.8k
AWS Bedrock Guardrails / 機密情報の入力・出力をブロックする — Blocking Sensitive Information Input/Output
kazuhitonakayama
2
180
競争優位を生み出す戦略的内製開発の実践技法
masuda220
PRO
2
500
AI Coding Agentの地殻変動 ~ ai-coding.info の定点観測 ~
kotauchisunsun
1
490
What's new in Go 1.26?
ciarana
2
260
技術キャッチアップ効率化を実現する記事推薦システムの構築
yudai00
2
160
バクラクにおける Document Understanding の挑戦:書類の「読取」から「意思決定」へ / document-understanding-in-bakuraku-2026
yuya4
0
170
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
14k
Claude Codeと駆け抜ける 情報収集と実践録
sontixyou
2
1.2k
Vertex AI Agent Engine で学ぶ「記憶」の設計
tkikuchi
0
110
LINEアプリ開発のための Claude Code活用基盤の構築
lycorptech_jp
PRO
1
1.1k
Eight Engineering Unit 紹介資料
sansan33
PRO
1
6.8k
Featured
See All Featured
Optimising Largest Contentful Paint
csswizardry
37
3.6k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
140
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.3k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.2k
The Invisible Side of Design
smashingmag
302
51k
Speed Design
sergeychernyshev
33
1.6k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
96
Documentation Writing (for coders)
carmenintech
77
5.3k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
Statistics for Hackers
jakevdp
799
230k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
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!