1.2.1 • Published 7 years ago

eslint-config-with-xo v1.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

XO's ESLint config

ESLint config. with use at XO, following our JavaScript guidelines.

Installation

$ npm i eslint-config-with-xo

Usage

Currently we expose 2 version of config, one for Node.js and one for browsers.

Put the following lines into your .eslintrc for Node.js

{
    "extends": "with-xo"
}

N.B.: currently, we do not support ECMAScript 6 modules in default config, use with-xo/browser instead or extend the corresponding rules directly from with-xo/rules/import

If you're in a browser, use config below

{
    "extends": "with-xo/browser"
}

The config includes rules for React as well, that can be extended directly from with-xo/rules/react.

Licence

Licenced under the MIT licence.