Does jshint understand Angular?

后端 未结 4 1416
甜味超标
甜味超标 2020-12-15 04:54

jshint is throwing an error when defining an angular module (or directive, or factory) as recommended by the Angular style guides (by John Papa or Todd Motto). For example,

4条回答
  •  心在旅途
    2020-12-15 05:12

    Use the latedef property and set it to false. This allows hoisting of functions, which IMO is fine. But still reports hoisting of vars, which is bad IMO

提交回复
热议问题