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:
We use Babel, Prettier and some browser-specific rules:
module.exports = { extends: '@dosomething/eslint-config/browser', };
We also write code for Node.js. We do not use a compilation step on the server.
module.exports = { extends: '@dosomething/eslint-config/server', };
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:
npm install --save-dev eslint-plugin-ava
..eslintrc.js
in your project root to extend @dosomething/eslint-config/server
..eslintrc.js
into your tests folder and set it to extend from @dosomething/eslint-config/server/ava
© 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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4