# eslint-config-ericmasiello

> My preferred eslint configuration

Latest version **1.2.0** (published 2017-05-08) · ISC license · 0 weekly downloads

## Install

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

## 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.2.0 |
| Published | 2017-05-08 |
| First published | 2016-09-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Eric Masiello |
| Maintainers | ericmasiello |
| Keywords | eslint, react native, flow, react, es6, es2015 |

## Links

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

## Dependencies (1)

- [eslint-config-airbnb](https://npm.io/package/eslint-config-airbnb.md) 14.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2017-05-08
- 1.1.0 — 2017-01-30
- 1.0.0 — 2017-01-26
- 1.0.0-beta.2 — 2017-01-26
- 1.0.0-beta.1 — 2017-01-25
- 1.0.0-alpha.2 — 2017-01-25
- 1.0.0-alpha.1 — 2017-01-23
- 0.5.1 — 2016-12-14
- 0.5.0 — 2016-10-22
- 0.4.0 — 2016-10-19
- 0.3.0 — 2016-10-09
- 0.2.0 — 2016-09-18
- 0.1.1 — 2016-09-17
- 0.1.0 — 2016-09-17

## README

## What you get

Out of the box, this configuration is appropriate for any ES2015 projects running in the browser or Node. There are additional configurations you can add to extend the base configuration. These include:

* **Flow**: `eslint-config-ericmasiello/flow`
* **React**: `eslint-config-ericmasiello/react`
* **React Native**: `eslint-config-ericmasiello/react-native`
* **Mocha**: `eslint-config-ericmasiello/mocha`
* **Jest**: `eslint-config-ericmasiello/jest`

## Installation

### npm:
```shell
(
  export PKG=eslint-config-ericmasiello;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
)
```

### Yarn:
```shell
(
  export PKG=eslint-config-ericmasiello;
  npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add -D "$PKG@latest"
)
```

## Configure your project

### Create the eslint files
```shell
touch .eslintrc.js .eslintignore
```

Inside of `.eslintrc.js` add the following:

```js
module.exports = {
  extends: 'eslint-config-ericmasiello'
};
```

**Note**: if you wish to use any of the other addon configurations that extend the base linting ruleset, you can add them like so:

```js
module.exports = {
  extends: [
    'eslint-config-ericmasiello',
    'eslint-config-ericmasiello/react',
    'eslint-config-ericmasiello/react-native',
    'eslint-config-ericmasiello/flow',
    'eslint-config-ericmasiello/jest',
  ]
};
```
Pick and choose whichever are appropriate for your project.

If you are using the React Native configuration, add the following to your `.eslintignore`

```
android
ios
```

Then finally, add the following script to your package.json.

```
"scripts": {  
  "lint": "eslint . '**/.*.js' --cache",
  "lint:fix": "npm run lint -- --fix",
},
```
**Note** this may need to be customized for your own project. See the eslint CLI documentation http://eslint.org/docs/user-guide/command-line-interface

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