Mobile/Fennec/Android/Lint/Eslint

< Mobile‎ | Fennec‎ | Android‎ | Lint

Install

npm global install is the recommended way of getting eslint. 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