# eslint-config-sandokan

> Eslint opinionated configuration for react projects, that use:

Latest version **0.23.0** (published 2025-10-24) · 0 weekly downloads

## Install

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

## Health

**Score 40/100 (D)** — status: stable.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.23.0 |
| Published | 2025-10-24 |
| First published | 2021-04-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 23 |
| Unpacked size | 26.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Tibor The Mad Programmer |
| Maintainers | anuovec |

## Links

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

## Dependencies (23)

- [prettier](https://npm.io/package/prettier.md) 3.5.3
- [eslint-config-xo](https://npm.io/package/eslint-config-xo.md) 0.46.0
- [eslint-plugin-jest](https://npm.io/package/eslint-plugin-jest.md) 28.11.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) 7.35.0
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) 2.31.0
- [eslint-plugin-regexp](https://npm.io/package/eslint-plugin-regexp.md) 2.6.0
- [eslint-plugin-promise](https://npm.io/package/eslint-plugin-promise.md) 7.1.0
- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) 3.0.2
- [eslint-plugin-unicorn](https://npm.io/package/eslint-plugin-unicorn.md) 58.0.0
- [prettier-plugin-curly](https://npm.io/package/prettier-plugin-curly.md) 0.3.2
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) 10.1.2
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) 6.10.2
- [eslint-plugin-prettier](https://npm.io/package/eslint-plugin-prettier.md) 5.2.6
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) 8.31.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) 5.2.0
- [eslint-config-xo-typescript](https://npm.io/package/eslint-config-xo-typescript.md) 7.0.0
- [eslint-plugin-perfectionist](https://npm.io/package/eslint-plugin-perfectionist.md) 4.12.2
- [prettier-plugin-packagejson](https://npm.io/package/prettier-plugin-packagejson.md) 2.5.10
- [@tanstack/eslint-plugin-query](https://npm.io/package/@tanstack/eslint-plugin-query.md) 5.51.15
- [eslint-plugin-eslint-comments](https://npm.io/package/eslint-plugin-eslint-comments.md) 3.2.0
- [eslint-plugin-testing-library](https://npm.io/package/eslint-plugin-testing-library.md) 7.1.1
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) 8.31.0
- [eslint-plugin-sort-destructure-keys](https://npm.io/package/eslint-plugin-sort-destructure-keys.md) 2.0.0

## Recent versions

- 0.23.0 (latest) — 2025-10-24
- 0.22.0 — 2024-08-19
- 0.21.3 — 2024-06-17
- 0.20.0 — 2023-11-23
- 0.19.0 — 2023-08-26
- 0.18.0 — 2023-03-21
- 0.17.0 — 2023-02-14
- 0.16.0 — 2023-01-29
- 0.15.0 — 2022-07-28
- 0.14.0 — 2021-12-11
- 0.13.0 — 2021-11-16
- 0.12.3 — 2021-09-19
- 0.12.2 — 2021-09-14
- 0.12.0 — 2021-09-13
- 0.11.0 — 2021-09-08
- … 11 more at https://npm.io/package/eslint-config-sandokan/versions

## README

# eslint-plugin-sandokan

Eslint opinionated configuration for react projects, that use:

- React with hooks or are in process of refactoring to hooks
- Typescript
- React Query for data fetching
- Recoil as state management library
- Jest with Testing library for unit, integration testing and UI interaction testing

It also contains configuration for `Prettier` and `Typescript`.

![Sandokan](sandokan.jpg)

## Usage

- If you don't have ESLint yet configured for your project, follow [these instructions](https://github.com/eslint/eslint#installation-and-usage).
- Install `eslint-plugin-sandokan` using `npm` (or `yarn`) for you project or globally:

```sh
npm install eslint-plugin-sandokan --save-dev # install for your project
npm install eslint-plugin-sandokan -g         # or install globally
```

- Add `sandokan` to the `extends` option to enable all recommended rules:

```json
{
  "extends": ["sandokan"]
}
```

### Prettier

To use the shared Prettier config, set the following in `.prettierrc.yaml`:

`'eslint-config-sandokan/prettier'`

### TypeScript

To use the shared TypeScript config, set the following in `tsconfig.json`.

```json
{
  "extends": "eslint-config-sandokan/typescript"
}
```

## Testing config

The configuration is made for Jest and Testing Library.
it is applied to all files that ends with `.test.` or `.spec.`.

## TODO

- unicorn/filename-case

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