eslint-config-with-xo

1.2.1 • Public • Published

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.

Package Sidebar

Install

npm i eslint-config-with-xo

Weekly Downloads

4

Version

1.2.1

License

MIT

Last publish

Collaborators

  • vanesyan