# eslint-config-safe

> Safe environment specific eslint configuration

Latest version **3.0.0** (published 2019-02-22) · MIT license · 0 weekly downloads

## Install

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

## 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 | 3.0.0 |
| Published | 2019-02-22 |
| First published | 2017-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 75.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alex Indigo |
| Maintainers | alexindigo |
| Keywords | safe, eslint, react, config, jsx, es6, jest, node, browser, tests |

## Links

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

## Dependencies (8)

- [eslint](https://npm.io/package/eslint.md) ^5.2.0
- [babel-eslint](https://npm.io/package/babel-eslint.md) ^10.0.1
- [eslint-plugin-babel](https://npm.io/package/eslint-plugin-babel.md) ^5.1.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.10.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.13.0
- [eslint-plugin-flowtype](https://npm.io/package/eslint-plugin-flowtype.md) ^3.4.2
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.2.1
- [eslint-restricted-globals](https://npm.io/package/eslint-restricted-globals.md) ^0.2.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

- 3.0.0 (latest) — 2019-02-22
- 1.0.0 — 2017-09-16

## README

# eslint-config-safe

## Install

```
npm install --save-dev eslint-config-safe
```

## Usage

Create `.eslintrc` file with

```json
{
  "extends": "safe/browser",
  "rules": {
    "custom": ["rules", "per", "project", "or", "environment"]
  }
}
```

### For your node projects

Create `.eslintrc` file with

```json
{
  "extends": "safe/node",
  "rules": {
    "custom": ["rules", "per", "project", "or", "environment"]
  }
}
```

Also you can add environment specific `.eslintrc` for the `server` folder of your project. Eslint will automatically take it into account analyzing that folder. In that case it would make sense to have browser (react) specific `.eslintrc` inside your `src` folder.

### For your Jest tests

Put `.eslintrc` file into your `tests` folder

```json
{
  "extends": "safe/jest",
  "rules": {
    "custom": ["rules", "per", "project", "or", "environment"]
  }
}
```

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