# @ldesign/eslint-config-monorepo

> [![npm](https://img.shields.io/npm/v/@ldesign/eslint-config?color=a1b858&label=)](https://npmjs.com/package/@ldesign/eslint-config)

Latest version **0.33.2** (published 2022-12-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ldesign/eslint-config-monorepo
pnpm add @ldesign/eslint-config-monorepo
yarn add @ldesign/eslint-config-monorepo
bun add @ldesign/eslint-config-monorepo
```

## 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.33.2 |
| Published | 2022-12-12 |
| First published | 2022-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 257.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Anthony Fu |
| Maintainers | swimly |

## Links

- npm: https://www.npmjs.com/package/@ldesign/eslint-config-monorepo
- npm.io page: https://npm.io/package/@ldesign/eslint-config-monorepo

## Recent versions

- 0.33.2 (latest) — 2022-12-12
- 0.2.4 — 2022-10-14
- 0.2.3 — 2022-10-14
- 0.2.2 — 2022-10-14
- 0.0.3 — 2022-10-14

## README

# @ldesign/eslint-config

[![npm](https://img.shields.io/npm/v/@ldesign/eslint-config?color=a1b858&label=)](https://npmjs.com/package/@ldesign/eslint-config)

- Single quotes, no semi
- Auto fix for formatting (aimed to be used standalone without Prettier)
- Designed to work with TypeScript, Vue out-of-box
- Lint also for json, yaml, markdown
- Sorted imports, dangling commas
- Reasonable defaults, best practices, only one-line of config
- **Style principle**: Minimal for reading, stable for diff

## Usage

### Install

```bash
pnpm add -D eslint @ldesign/eslint-config
```

### Config `.eslintrc`

```json
{
  "extends": "@ldesign"
}
```

> You don't need `.eslintignore` normally as it has been provided by the preset.

### Add script for package.json

For example:

```json
{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}
```

### Config VS Code auto fix

Install [VS Code ESLint extension](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and create `.vscode/settings.json`

```json
{
  "prettier.enable": false,
  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}
```

### TypeScript Aware Rules

Type aware rules are enabled when a `tsconfig.eslint.json` is found in the project root. Refer to [this file](https://github.com/ldesign/eslint-config/blob/main/packages/typescript/index.js#L17).

## Extended Reading

Learn more about the context - [Why I don't use Prettier](https://ldesign.me/posts/why-not-prettier).

## Check Also

- [ldesign/dotfiles](https://github.com/ldesign/dotfiles) - My dotfiles
- [ldesign/vscode-settings](https://github.com/ldesign/vscode-settings) - My VS Code settings
- [ldesign/ts-starter](https://github.com/ldesign/ts-starter) - My starter template for TypeScript library
- [ldesign/vitesse](https://github.com/ldesign/vitesse) - My starter template for Vue & Vite app

## License

[MIT](./LICENSE) License &copy; 2019-PRESENT [Anthony Fu](https://github.com/ldesign)

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