# @sadorlovsky/eslint-config

> Sad Orlovsky Codestyle - ESLint Shareable Config

Latest version **0.14.0** (published 2020-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sadorlovsky/eslint-config
pnpm add @sadorlovsky/eslint-config
yarn add @sadorlovsky/eslint-config
bun add @sadorlovsky/eslint-config
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.14.0 |
| Published | 2020-02-10 |
| First published | 2016-04-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 0 |
| Unpacked size | 22.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zach Orlovsky |
| Maintainers | sadorlovsky |
| Keywords | sadorlovsky, codestyle, eslint, shareable, config |

## Links

- npm: https://www.npmjs.com/package/@sadorlovsky/eslint-config
- Repository: https://github.com/sadorlovsky/codestyle
- Homepage: https://github.com/sadorlovsky/codestyle#readme
- Issues: https://github.com/sadorlovsky/codestyle/issues
- npm.io page: https://npm.io/package/@sadorlovsky/eslint-config

## 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

- 0.14.0 (latest) — 2020-02-10
- 0.13.0 — 2016-09-09
- 0.12.0 — 2016-07-20
- 0.11.0 — 2016-07-20
- 0.10.0 — 2016-06-21
- 0.9.0 — 2016-06-11
- 0.8.1 — 2016-05-18
- 0.8.0 — 2016-05-14
- 0.7.0 — 2016-05-12
- 0.6.0 — 2016-05-11
- 0.5.0 — 2016-05-07
- 0.4.0 — 2016-05-07
- 0.3.0 — 2016-05-07
- 0.2.2 — 2016-04-24
- 0.2.1 — 2016-04-21
- … 3 more at https://npm.io/package/@sadorlovsky/eslint-config/versions

## README

# Sad Orlovsky Codestyle - ESLint Shareable Config

An ESLint [Shareable Config](http://eslint.org/docs/developer-guide/shareable-configs) for my preferable code style.

## THE RULES OF FIGHT CLUB

- **Two spaces**
- **Single quotes**
- **No semicolons**

See all rules [here](index.js#L23).

## Nice code example

```javascript
// only ES2015
import fetch from 'fetch' // empty line after import

// space after function's name
export function hello (name = 'world') { // single quotes
  return `Hello, ${name}!` // two spaces for indent
} // no semicolons

// consts everywhere
export const fetchData = uri => { // no parens if single argument
  return fetch(uri)
    .then(res => res.json()) // arrow callback
    .then(data => ({ a: data.a, b: data.b }))
    // spacing inside single-line blocks
}
// empty line at the end of code
```

## Usage

You need `ESLint`

```bash
yarn add --dev eslint
```

Also you need `babel-parser` and some plugins

```bash
yarn add --dev babel-eslint eslint-plugin-import eslint-plugin-fp
```

Finally, install this shareable config

```bash
yarn add --dev @sadorlovsky/eslint-config
```

Add this to your .eslintrc file:

```json
{
  "extends": "@sadorlovsky"
}
```

### Use with AVA

```bash
yarn add --dev eslint-plugin-ava
```

```json
{
  "extends": [
    "@sadorlovsky",
    "@sadorlovsky/eslint-config/ava"
  ]
}
```

### Use with React

```bash
yarn add --dev eslint-plugin-react
```

```json
{
  "extends": [
    "@sadorlovsky",
    "@sadorlovsky/eslint-config/react"
  ]
}
```

### Use with both

```json
{
  "extends": [
    "@sadorlovsky",
    "@sadorlovsky/eslint-config/ava",
    "@sadorlovsky/eslint-config/react"
  ]
}
```

### You can override any option

```json
{
  "extends": [
    "@sadorlovsky",
    "@sadorlovsky/eslint-config/ava",
    "@sadorlovsky/eslint-config/react"
  ],

  "rules": {
    "semi": ["error", "always"]
  }
}
```

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