Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

correct code for the { "vars": "local" }

/*eslint no-unused-vars: ["error", { "vars": "local" }]*/
/*global some_unused_var */

some_unused_var = 42;
Source by eslint.org #
 
PREVIOUS NEXT
Tagged: #correct #code
ADD COMMENT
Topic
Name
2+1 =