Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 562 Bytes

learning_javascript_eslint.md

File metadata and controls

21 lines (13 loc) · 562 Bytes
path title
/learnings/javascript_eslint
Learnings: Javascript: ESLint

Table Of Contents

<<ESLint_Forcing_Import_Of_Some_Identifier>>

You can use the (undocumented) global declaration if you have to

/* global history, location, console */

console.log('hello') // this will lint properly even because we pulled in the console

Really should only be required if you didn't import an identifier any other way (like you're using a browser built-in, or you're doing something tricky with types).