Mobile/Fennec/Android/Lint/Eslint

< Mobile‎ | Fennec‎ | Android‎ | Lint
Revision as of 14:52, 29 November 2015 by MarkFinkle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Install

Easiest way to install eslint is to use mach:

mach eslint --setup

You can manually install eslint using npm as well. For example, on OS X:

brew install npm
npm -g install eslint

Run

eslint should be run from mobile/android as it contains the base .eslintignore and .eslintrc files. If you run from another directory, eslint may not parse these files and the output may be unexpected. For example, from the repository root:

mach eslint mobile/android