# @emanprague/eslint-config

> ESlint and prettier configurations

Latest version **3.3.0** (published 2023-09-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @emanprague/eslint-config
pnpm add @emanprague/eslint-config
yarn add @emanprague/eslint-config
bun add @emanprague/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 | 3.3.0 |
| Published | 2023-09-03 |
| First published | 2020-04-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 6.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Augustin Sulc |
| Maintainers | jindrichskupa, eman.devops, strnadj, gius |
| Keywords | eslint, shared, rules |

## Links

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

## Dependencies (8)

- [typescript](https://npm.io/package/typescript.md) ^5.2.2
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.33.2
- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) ^0.21.0
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^9.0.0
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) ^5.0.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^6.5.0
- [eslint-plugin-eslint-comments](https://npm.io/package/eslint-plugin-eslint-comments.md) ^3.2.0
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^6.5.0

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

- 3.3.0 (latest) — 2023-09-03
- 3.2.1 — 2023-06-06
- 3.2.0 — 2023-05-27
- 3.1.0 — 2022-10-20
- 3.0.0 — 2021-12-14
- 2.5.0 — 2021-11-25
- 2.4.0 — 2021-10-30
- 2.3.0 — 2021-10-30
- 2.2.0 — 2021-04-30
- 2.1.0 — 2020-12-14
- 2.0.0 — 2020-12-11
- 1.0.2 — 2020-05-07
- 1.0.1 — 2020-04-14
- 1.0.0 — 2020-04-11

## README

# eslint-config

This package contains shared rules for ESlint with TypeScript and Prettier.

Inspired by https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb

## Versions

eslint-config v3 supports ESlint 8.

eslint-config v2 requires ESlint 7.

Use eslint-config v1 for ESlint 6 + TSlint.

## Usage

Install ESlint:

    yarn add eslint prettier @emanprague/eslint-config -D

Update config files as follows:

### `.eslintrc.js`

    module.exports = {
      extends: [
        "@emanprague/eslint-config/eslint-default"
      ],
      settings: {
        react: {
          version: "detect",
        },
      },
      env: {
        browser: true,
      },
    };

### `.prettierrc.js`

    module.exports = require("@emanprague/eslint-config/prettier-config");

Note that instead of creating the `.prettierrc.js` file, you can just add the following row to your `package.json` file.

    "prettier": "@emanprague/eslint-config/prettier-config",

---

And you should be good to go with:

```console
eslint \"./src/**/*.{ts,tsx}\" --cache
```

# Contribution

How to release:
 1. manually set version in package.json
 1. push
 1. create a new release in GH

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