Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xojs/eslint-config-xo-space

ESLint shareable config for XO with 2-space indent
https://github.com/xojs/eslint-config-xo-space

eslint eslint-config eslint-rules nodejs xo

Last synced: 5 days ago
JSON representation

ESLint shareable config for XO with 2-space indent

Awesome Lists containing this project

README

        

# eslint-config-xo-space

> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for [XO](https://github.com/xojs/xo) with 2-space indent

This is for advanced users. [You probably want to use XO directly.](https://github.com/xojs/eslint-config-xo#use-the-xo-cli-instead)

**Use the [XO issue tracker](https://github.com/xojs/xo/issues) instead of this one.**

## Install

```sh
npm install --save-dev eslint-config-xo-space
```

## Usage

Add some ESLint config to your `package.json`:

```json
{
"name": "my-awesome-project",
"eslintConfig": {
"extends": "xo-space"
}
}
```

Or to `.eslintrc`:

```json
{
"extends": "xo-space"
}
```

This package also exposes [`xo-space/browser`](browser.js) if you're in the browser:

```json
{
"extends": "xo-space/browser"
}
```

## Related

- [eslint-config-xo](https://github.com/xojs/eslint-config-xo) - ESLint shareable config for XO
- [eslint-config-xo-react](https://github.com/xojs/eslint-config-xo-react) - ESLint shareable config for React to be used with the above