Mobile/Fennec/Android/Lint/Eslint: Difference between revisions

m
no edit summary
mNo edit summary
 
Line 1: Line 1:
==Install==
==Install==
npm global install is the recommended way of getting eslint. On OS X:
Easiest way to install <code>eslint</code> is to use <code>mach</code>:
mach eslint --setup
 
You can manually install <code>eslint</code> using <code>npm</code> as well. For example, on OS X:


  brew install npm
  brew install npm
Line 6: Line 9:


==Run==
==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:
<code>eslint</code> should be run from mobile/android as it contains the base .eslintignore and .eslintrc files. If you run from another directory, <code>eslint</code> may not parse these files and the output may be unexpected. For example, from the repository root:
  mach eslint mobile/android
  mach eslint mobile/android
canmove, Confirmed users, Bureaucrats and Sysops emeriti
2,798

edits