@dosomething/eslint-config
Shared ESLint config for DoSomething.org projects.
Last updated 3 months ago by dfurnes .
MIT · Original npm · Tarball · package.json
$ cnpm install @dosomething/eslint-config 
SYNC missed versions from official npm registry.

eslint-config

This is our ESLint config used for JavaScript projects at DoSomething.org, based on Airbnb's JavaScript Style Guide.

It can be used by installing this package & setting the extends property in your .eslintrc.js:

module.exports = {
  extends: '@dosomething/eslint-config',
};

But you probably want to use a preset fine-tuned to your environment:

In browser...

We use Babel, Prettier and some browser-specific rules:

module.exports = {
  extends: '@dosomething/eslint-config/browser',
};

On a server...

We also write code for Node.js. We do not use a compilation step on the server.

module.exports = {
  extends: '@dosomething/eslint-config/server',
};

AVA tests

This ESLint configuration is different from other config profiles provided in this package. It meant to be inherited indirectly from a profile of your choice. Setup instructions:

  1. Install the ESLint AVA plugin: npm install --save-dev eslint-plugin-ava.
  2. Setup .eslintrc.js in your project root to extend @dosomething/eslint-config/server.
  3. Put another .eslintrc.js into your tests folder and set it to extend from @dosomething/eslint-config/server/ava

License

© DoSomething.org. @dosomething/eslint-config is free software, and may be redistributed under the terms specified in the LICENSE file. The name and logo for DoSomething.org are trademarks of Do Something, Inc and may not be used without permission.

Current Tags

  • 5.0.1                                ...           latest (3 months ago)

13 Versions

  • 5.0.1                                ...           3 months ago
  • 5.0.0                                ...           4 months ago
  • 4.0.0                                ...           a year ago
  • 3.1.2                                ...           2 years ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Downloads
Today 0
This Week 2
This Month 3
Last Day 0
Last Week 0
Last Month 16
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |