Using eslint while building atom package


I’m building an atom package and getting the lint error 'atom' is not defined . (no-undef). This makes sense since atom is a global variable and not defined in my individual modules. Anyone know of a rule set or a eslint-plugin I can install to allow atom as a global variable with eslint?


You can define globals in your .eslintrc file like so:

"globals": {
	"atom": true

This should make eslint to stop complaining about atom being undefined :slight_smile: