ESLint shareable config file for Firefox Accounts projects.
$ npm install eslint-config-fxa -D
(You'll need to install
eslint dependency into your project as well.)
$ eslint .(if you have ESLint installed globally, or call via
$ ./node_modules/.bin/eslint .in your Terminal, or simply
eslint .if you're using an npm
There are currently three configs:
"extends": "fxa") — Includes base ESLint environments and rules.
"extends": "fxa/client") — Overrides base
fxaconfig, and adds additional environments for 'amd', 'browser', and 'mocha'.
"extends": "fxa/server") — Overrides base
fxaconfig, and disables the
The eslint-config-fxa@2 module is compatible w/ eslint@1. If you're still using a pre ESLint v1 build, you'll need to stick with eslint-config-fxa@1.