# eslint-config-universal

> ESLint Shareable Config

Latest version **1.1.0** (published 2016-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install eslint-config-universal
pnpm add eslint-config-universal
yarn add eslint-config-universal
bun add eslint-config-universal
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2016-09-10 |
| First published | 2016-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Taylor Silenzio |
| Maintainers | tsilenzio |
| Keywords | check, checker, code, code checker, code linter, code standards, code style, enforce, eslint, eslintconfig, hint, jscs, jshint, jslint, lint, linter, quality, simple, standard, strict, style, style checker, style linter, validate, verify |

## Links

- npm: https://www.npmjs.com/package/eslint-config-universal
- Repository: https://github.com/tsilenzio/eslint-config-universal
- Issues: https://github.com/tsilenzio/eslint-config-universal/issues
- npm.io page: https://npm.io/package/eslint-config-universal

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2016-09-10
- 1.0.0 — 2016-02-22

## README

# eslint-config-universal

> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html)


## Install

```bash
$ npm install --save-dev eslint-config-universal
```

When using the `babel` version you'll also need Babel's ESLint [parser](https://github.com/babel/babel-eslint) and [plugin](https://github.com/babel/eslint-plugin-babel):

```bash
$ npm install --save-dev babel-eslint eslint-plugin-babel
```

When using the `react` version you'll also need the React ESLint [plugin](https://github.com/yannickcr/eslint-plugin-react):

```bash
$ npm install --save-dev eslint-plugin-react
```


## Usage

### Universal

To get started, simply add [`universal`](index.js) to `.eslintrc`. It has rules for [vanilla javascript](#legacy), [the browser](#browser), [node.js](#node), [react](#react) and [ES2015](#es2015)

```json
{
    "extends": "universal"
}
```

### <a name="legacy"></a>Legacy

[`universal/legacy`](legacy.js) has an environment independent set of rules with support for [ECMAScript 5](http://www.ecma-international.org/ecma-262/5.1/)

```json
{
    "extends": "universal/legacy"
}
```

### <a name="es2015"></a>ES2015

[`universal/es2015`](es2015.js) starts where [`universal/legacy`](#legacy) left off and adds rules for [ECMAScript 2015](http://www.ecma-international.org/ecma-262/6.0/)

```json
{
    "extends": "universal/es2015"
}
```

### <a name="browser"></a>Browser

[`universal/browser`](browser.js) uses [`universal/legacy`](#legacy) and adds support for the browser

```json
{
    "extends": "universal/browser"
}
```

### <a name="node"></a>Node

[`universal/node`](node.js) uses [`universal/legacy`](#legacy) and adds with support for node.js

```json
{
    "extends": "universal/node"
}
```

### <a name="react"></a>React / JSX

[`universal/react`](react.js) mixes [`universal/browser`](#browser) and [`universal/node`](#node), enables JSX support and configures the react plugin

```json
{
    "extends": "universal/react"
}
```

### <a name="babel"></a>Babel

[`universal/babel`](babel.js) builds upon [`universal/es2015`](#es2015) by enabling the rules from [`eslint-plugin-babel`](https://github.com/babel/eslint-plugin-babel) and sets the lint parser to [`babel-eslint`](https://github.com/babel/babel-eslint)

```json
{
    "extends": "universal/babel"
}
```

### Mix &amp; Match
You can also mix and match different configurations

Universal with Babel support
```json
{
    "extends": [
        "universal",
        "universal/babel"
    ]
}
```

Node.js and Browser support
```json
{
    "extends": [
        "universal/node",
        "universal/browser"
    ]
}
```

_**Note:** We omitted the `eslint-config-` prefix since it is automatically assumed by ESLint._

## License

MIT © [Taylor Silenzio](http://tsilenz.io)

---
_Source: https://npm.io/package/eslint-config-universal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
