는 크록퍼드의 린트가 제공하는 제안에 거의 모두 공감하지만, 한편으로는 린트 프로그램을 필
자에게 맞게 수정하고 싶은 생각도 있으므로
JSHint
를 권합니다.
7
JSHint
는
npm
으로 설치하
기 매우 쉽습니다.
npm install
-
g jshint
실행하려면 소스 파일 이름을 붙여 호출하기만 하면 됩니다.
jshint meadowlark
.
js
책을 따라왔다면
JSHint
는
meadowlark
.
js
에서 아무 에러도 보고하지 않을 겁니다.
JSHint
가
어떤 문제를 찾아내는지 보려면,
meadowlark
.
js
에 다음 행을 추가하고
JSHint
를 실행해보십
시오.
if
(
app
.
thing
==
null
)
console
.
log
(
'
bleat
!'
);
JSHint
는 가 아니라 를 썼다고 지적할 겁니다. 추가로, 중괄호가 없다는 것도 지적할
겁니다.
린트를 쭉 사용한다면 더 나은 프로그래머가 될 거라고 보장합니다. 그렇다면 린트 프로그램
을 에디터에 통합해서 잠재적인 에러가 생기는 즉시 알려주면 더 좋지 않을까요? 고맙게도 이
것 또한 가능합니다.
JSHint
는 여러 인기 있는 에디터에 애드온 형식으로 설치할 수 있습니다.
http
://
www
.
jshint
.
com
/
install
을 참고하십시오.
5.10.
링크 체크
죽은 링크
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.