# eslint-config-dasprid

> Strict ESLint configuration for TypeScript projects

Latest version **0.3.2** (published 2023-10-24) · BSD-2-Clause license · 0 weekly downloads

## Install

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

## 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.3.2 |
| Published | 2023-10-24 |
| First published | 2021-11-30 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 13.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ben Scholzen 'DASPRiD' |
| Maintainers | dasprid |

## Links

- npm: https://www.npmjs.com/package/eslint-config-dasprid
- npm.io page: https://npm.io/package/eslint-config-dasprid

## Dependencies (6)

- [eslint-plugin-i](https://npm.io/package/eslint-plugin-i.md) ^2.25.3
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^6.7.5
- [eslint-plugin-prefer-arrow](https://npm.io/package/eslint-plugin-prefer-arrow.md) ^1.2.3
- [eslint-import-resolver-exports](https://npm.io/package/eslint-import-resolver-exports.md) ^1.0.0-beta.5
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^6.7.5
- [eslint-import-resolver-typescript](https://npm.io/package/eslint-import-resolver-typescript.md) ^3.6.1

## Recent versions

- 0.3.2 (latest) — 2023-10-24
- 0.3.1 — 2023-10-11
- 0.3.0 — 2023-10-11
- 0.2.0 — 2023-10-11
- 0.1.15 — 2023-03-27
- 0.1.14 — 2022-12-10
- 0.1.13 — 2022-06-16
- 0.1.12 — 2022-03-18
- 0.1.11 — 2022-03-16
- 0.1.10 — 2022-03-16
- 0.1.9 — 2022-03-12
- 0.1.8 — 2022-01-31
- 0.1.7 — 2022-01-31
- 0.1.6 — 2022-01-31
- 0.1.5 — 2022-01-31
- … 4 more at https://npm.io/package/eslint-config-dasprid/versions

## README

# eslint-config-dasprid

Strict ESLint configuration for TypeScript projects.

## Explanation

Over all the years I developed a very specific coding standard, which I use in both personal and professional projects.
Most of the time I was either using no linting or a very soft one. This was usually enough in small team projects or
where I was the only contributor. But as soon as more developers joined a team, I had to do a lot of linting on incoming
pull requests.

I thus decided to go through all available ESLint rules and compile a config I can reuse across all those projects. This
config is only aimed ad TypeScript projects, as I never write projects in pure JavaScript.

## Installation

Simply install eslint and eslint-config-dasprid:

```bash
npm i -D eslint eslint-config-dasprid
```

If you are working on a React project, you additional need to install a peer dependency:

```bash
npm i -D eslint-plugin-react
```

## Setup

Create a `.eslintrc.json` file:

```json
{
    "extends": "eslint-config-dasprid",
    "parserOptions": {
        "project": "tsconfig.json"
    }
}
```

For React projects, you instead extend `eslint-config-dasprid/react`.

Your `tsconfig.json` must contain the following settings:

```json
{
    "compilerOptions": {
        "noImplicitAny": true,
        "strictNullChecks": true,
        "importsNotUsedAsValues": "error"
    }
}
```

## Validate on commit

To validate the coding styles on commit, it is recommended to use lint-staged:

```bash
npx mrm@2 lint-staged
```

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