Skip to content

Commit e166467

Browse files
committed
Demonstrate more consistent form of directive
Prefer "globals" over "global" for its symmetry with the linting option of the same name.
1 parent c1aa198 commit e166467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ A directive for telling JSHint about global variables that are defined
8686
elsewhere. If value is `false` (default), JSHint will consider that variable
8787
as read-only. Use it together with the `undef` option.
8888

89-
/* global MY_LIB: false */
89+
/* globals MY_LIB: false */
9090

9191
You can also blacklist certain global variables to make sure they are not used
9292
anywhere in the current file.
9393

94-
/* global -BAD_LIB */
94+
/* globals -BAD_LIB */
9595

9696
#### exported
9797

0 commit comments

Comments
 (0)