js 문법을 체크해준다.






특정 경고를 무시할 때는 아래와 같이 해준다.

/* jshint ignore:start */

function a(){

}

/* jshint ignore:end */





특정 라인만 무시할려면 아래와 같이 해준다.


// jshint ignore:line




자세한 설명은 아래 링크 참고


사이트 : http://www.jshint.com/

옵션 : http://blog.outsider.ne.kr/1007



기본적인  angluarjs 옵션들.


{

  "curly": true,

  "eqeqeq": true,

  "immed": true,

  "latedef": true,

  "newcap": true,

  "noarg": true,

  "sub": true,

  "undef": true,

  "unused": true,

  "boss": true,

  "eqnull": true,

  "multistr": true,

  "node": true,

  "predef": [

    "suite",

    "setup",

    "test",

    "angular",

    "describe",

    "beforeEach",

    "inject",

    "it",

    "expect"

  ]

}


'WEB > 프론트 개발환경' 카테고리의 다른 글

Grunt 설정  (0) 2014.03.15
개발환경 셋팅  (0) 2014.03.15
자바 스크립트 기술기반  (0) 2014.03.15

+ Recent posts