Mobile/Fennec/Android/Lint/Eslint

From MozillaWiki
< Mobile‎ | Fennec‎ | Android‎ | Lint
Revision as of 22:47, 26 June 2015 by Mcomella (talk | contribs) (Created page with "==Install== npm global install is the recommended way of getting eslint. On OS X: brew install npm npm -g install eslint ==Run== To run eslint, cd to `mobile/android` and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install

npm global install is the recommended way of getting eslint. On OS X:

brew install npm
npm -g install eslint

Run

To run eslint, cd to `mobile/android` and run eslint on all .js and .jsm files:

# From mozilla-central
pushd mobile/android
eslint . --ext "[.js,.jsm]"
popd