# eslint-config-mytools

Latest version **2.0.0** (published 2026-11-19) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2026-11-19 |
| First published | 2023-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | ^22.22.3 \|\| ^24.16.0 \|\| >=26.3.0 |
| Dependencies | 1 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 4 |
| Maintainers | diazdavid-info |
| Keywords | eslint, eslint-config, mytools |

## Links

- npm: https://www.npmjs.com/package/eslint-config-mytools
- Repository: https://github.com/diazdavid-info/my-tools
- npm.io page: https://npm.io/package/eslint-config-mytools

## Dependencies (1)

- [@eslint/js](https://npm.io/package/@eslint/js.md) ^10.0.1

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

- 2.0.0 (latest) — 2026-11-19
- 1.0.2 — 2026-03-01
- 1.0.1 — 2025-12-31
- 1.0.0 — 2025-12-31
- 0.0.9 — 2025-12-31
- 0.0.8 — 2025-12-31
- 0.0.7 — 2024-01-21
- 0.0.6 — 2024-01-19
- 0.0.5 — 2024-01-19
- 0.0.4 — 2024-01-19
- 0.0.3 — 2024-01-19
- 0.0.2 — 2024-01-19
- 0.0.1 — 2023-12-24
- 0.0.0 — 2023-08-20

## README

# Introduction

[![NPM license](https://img.shields.io/npm/l/eslint-config-mytools.svg)](https://www.npmjs.com/package/eslint-config-mytools)
[![NPM version](https://img.shields.io/npm/v/eslint-config-mytools.svg)](https://www.npmjs.com/package/eslint-config-mytools)
[![NPM downloads](https://img.shields.io/badge/dynamic/json.svg?label=downloads&colorB=green&suffix=/day&query=$.downloads&uri=https://api.npmjs.org//downloads/point/last-day/eslint-config-mytools&maxAge=3600)](http://www.npmtrends.com/eslint-config-mytools)
[![NPM downloads](https://img.shields.io/npm/dw/eslint-config-mytools.svg)](http://www.npmtrends.com/eslint-config-mytools)
[![NPM downloads](https://img.shields.io/npm/dm/eslint-config-mytools.svg)](http://www.npmtrends.com/eslint-config-mytools)
[![NPM downloads](https://img.shields.io/npm/dy/eslint-config-mytools.svg)](http://www.npmtrends.com/eslint-config-mytools)
[![NPM downloads](https://img.shields.io/npm/dt/eslint-config-mytools.svg)](http://www.npmtrends.com/eslint-config-mytools)

`eslint-config-mytools` helps you configure `eslint` and `prettier` in your project according to your team's needs.

## Installation

```bash
pnpm add -D eslint eslint-config-mytools
```

If you also need `prettier`, you need to install it:

```bash
pnpm add -D prettier prettier-plugin-astro
```

If your project is using `Astro`, you will also need to install the `prettier` library for `Astro`:

```bash
pnpm add -D prettier
```

## Configure eslint for Javascript projects

You have to create an `eslint.config.mjs` file in your project and import the js config:

```js
import { defineConfig } from 'eslint/config'
import { base } from 'eslint-config-mytools'

export default defineConfig([
  ...base,
])
```

## Configure eslint for Typescript projects

You have to create an `eslint.config.mjs` file in your project and import the js config:

```js
import { defineConfig } from 'eslint/config'
import { base, typescript } from 'eslint-config-mytools'

export default defineConfig([
  ...base,
  ...typescript,
])
```

## Configure eslint for React projects with Typescript or Javascript

You have to create an `eslint.config.mjs` file in your project and import the js config:

```js
import { defineConfig } from 'eslint/config'
import { base, typescript, react } from 'eslint-config-mytools'

export default defineConfig([
  ...base,
  ...typescript,
  ...react,
])
```

## Configure eslint for Astro projects

You have to create an `eslint.config.mjs` file in your project and import the js config:

```js
import { defineConfig } from 'eslint/config'
import { astro, base, typescript } from 'eslint-config-mytools'

export default defineConfig([
  ...base,
  ...typescript,
  ...astro,
])
```

If you have React, add the config as well:

```js
import { defineConfig } from 'eslint/config'
import { astro, base, typescript, react } from 'eslint-config-mytools'

export default defineConfig([
  ...base,
  ...typescript,
  ...astro,
  ...react,
])
```

## Configure Prettier for any project

You have to create an `eslint.config.mjs` file in your project and import the js config:

```js
import { defineConfig } from 'eslint/config'
import { prettier } from 'eslint-config-mytools'

export default defineConfig([
  ...prettier,
])
```

If you want `.astro`, `.json`, and `.md` files to work with prettier, a `prettier.config.mjs` file is required:

```js
/**
 * @see https://prettier.io/docs/configuration
 * @type {import("prettier").Config}
 */
export default {
  plugins: ['prettier-plugin-astro'],
  singleQuote: true,
  printWidth: 120,
  semi: false,
  trailingComma: 'all',
}
```

And add the following script to your `package.json` file:

```json
{
  "format": "prettier --write **/*{.astro,.json,.md}"
}
```

The prettier configuration imported into eslint will only affect files: `**/*.{js,mjs,cjs,jsx,ts,jsx,tsx}`

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