# @mladen-se/eslint-config

> ESLint configuration for front end projects.

Latest version **1.0.0** (published 2020-10-02) · ISC license · 0 weekly downloads

## Install

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

## 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.0.0 |
| Published | 2020-10-02 |
| First published | 2020-10-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mladen-se |

## Links

- npm: https://www.npmjs.com/package/@mladen-se/eslint-config
- npm.io page: https://npm.io/package/@mladen-se/eslint-config

## Dependencies (4)

- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.20.6
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) ^2.22.0
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) ^6.3.1
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^4.1.0

## Recent versions

- 1.0.0 (latest) — 2020-10-02

## README

# eslint-config

This package includes the common eslint config used by front end projects.

## Usage

Install the package

```sh
yarn add --dev @mladen-se/eslint-config
```

Create a `.eslintrc` with following content in the root folder of your project.

```js
{
  "extends": "@mladen-se/eslint-config"
}
```

For eslint to work correctly some settings needs to be configured.

_You need to specify what globals should be available_

```json
{
  "env": {
    // es6 features, e.g promises
    "es6": true,
    // Node features, e.g process.env.NODE_ENV
    "node": true,
    // jest feature, e.g describe, test and it
    "jest": true,
    // allow commonjs module system, e.g require()
    "commonjs": true,
    // allow browser api, e.g window
    "browser": true
  }
}
```

_If you use react, then you need to specify what react version to use_

```json
{
  "settings": {
    "react": {
      "version": "detect"
    }
  }
}
```

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