3.0.0 • Published 9 years ago
eslint-config-fxa v3.0.0
eslint-config-fxa
ESLint shareable config file for Firefox Accounts projects.
Installation:
$ npm install eslint-config-fxa -D(You'll need to install eslint dependency into your project as well.)
Usage:
- Create an .eslintrc file in your project's root directory.
- Add the following content to your project's .eslintrc file:
"extends": "fxa". - Run
$ eslint .(if you have ESLint installed globally, or call via$ ./node_modules/.bin/eslint .in your Terminal, or simplyeslint .if you're using an npmscripttask).
Options:
There are currently three configs:
fxa(usage:"extends": "fxa") — Includes base ESLint environments and rules.client(usage:"extends": "fxa/client") — Overrides basefxaconfig, and adds additional environments for 'amd', 'browser', and 'mocha'.server(usage:"extends": "fxa/server") — Overrides basefxaconfig, and disables thesemirule.
NOTE:
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.