# @haydenull/fabric

> haydenull's eslint config

Latest version **1.0.0** (published 2025-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @haydenull/fabric
pnpm add @haydenull/fabric
yarn add @haydenull/fabric
bun add @haydenull/fabric
```

Provides the command `haydenull-fabric`.

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2025-06-10 |
| First published | 2023-07-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=20.0.0 |
| Dependencies | 17 |
| Unpacked size | 130.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | haydenull |
| Maintainers | hayden.chen |
| Keywords | eslint, eslintconfig, prettier |

## Links

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

## Dependencies (17)

- [czg](https://npm.io/package/czg.md) ^1.7.1
- [chalk](https://npm.io/package/chalk.md) ^4.1.2
- [globals](https://npm.io/package/globals.md) ^16.2.0
- [commander](https://npm.io/package/commander.md) ^11.0.0
- [local-pkg](https://npm.io/package/local-pkg.md) ^1.1.1
- [@eslint/js](https://npm.io/package/@eslint/js.md) ^9.28.0
- [eslint-plugin-vue](https://npm.io/package/eslint-plugin-vue.md) ^10.2.0
- [typescript-eslint](https://npm.io/package/typescript-eslint.md) ^8.34.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) ^7.37.5
- [prettier-plugin-merge](https://npm.io/package/prettier-plugin-merge.md) ^0.7.4
- [eslint-config-prettier](https://npm.io/package/eslint-config-prettier.md) ^8.8.0
- [@typescript-eslint/parser](https://npm.io/package/@typescript-eslint/parser.md) ^6.0.0
- [eslint-plugin-react-hooks](https://npm.io/package/eslint-plugin-react-hooks.md) ^5.2.0
- [prettier-plugin-classnames](https://npm.io/package/prettier-plugin-classnames.md) ^0.7.8
- [prettier-plugin-tailwindcss](https://npm.io/package/prettier-plugin-tailwindcss.md) ^0.6.12
- [@typescript-eslint/eslint-plugin](https://npm.io/package/@typescript-eslint/eslint-plugin.md) ^8.34.0
- [@trivago/prettier-plugin-sort-imports](https://npm.io/package/@trivago/prettier-plugin-sort-imports.md) ^4.1.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

- 1.0.0 (latest) — 2025-06-10
- 0.2.7 — 2024-08-25
- 0.2.6 — 2024-05-22
- 0.2.5 — 2023-12-09
- 0.2.4 — 2023-08-21
- 0.2.3 — 2023-08-21
- 0.2.2 — 2023-08-16
- 0.2.1 — 2023-08-16
- 0.2.0 — 2023-08-16
- 0.1.0 — 2023-07-30
- 0.0.1-dev.13 — 2023-07-30
- 0.0.1-dev.12 — 2023-07-30
- 0.0.1-dev.11 — 2023-07-30
- 0.0.1-dev.10 — 2023-07-30
- 0.0.1-dev.9 — 2023-07-30
- … 9 more at https://npm.io/package/@haydenull/fabric/versions

## README

# @haydenull/fabric
A collection of configuration files containing prettier, eslint, tsconfig and more

## Usage

Install the package
```shell
pnpm add @haydenull/fabric eslint prettier -D
```

## ![ESLint](https://img.shields.io/badge/ESLint-4B3263?style=for-the-badge&logo=eslint&logoColor=white) eslint-config

in `eslint.config.mjs`

```js
import haydenullLint from '@haydenull/fabric/eslint/react'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
  haydenullLint,
  globalIgnores(['public', 'dist']),
])
```

## ![Prettier](https://img.shields.io/badge/Prettier-1a2b34?style=for-the-badge&logo=prettier&logoColor=white) prettier

in `prettier.config.mjs`

```js
import haydenullPrettier from '@haydenull/fabric/prettier'

export default {
  ...haydenullPrettier,
  // docs: https://github.com/tailwindlabs/prettier-plugin-tailwindcss#sorting-classes-in-function-calls
  tailwindConfig: '.your-path/tailwind.config.js',
  tailwindFunctions: [], // ['cn', 'clsx']
}
```

If you use pnpm to manage dependencies, due to the hoisting mechanism of pnpm, you need to add the following configuration to `.npmrc` to lift `@trivago/prettier-plugin-sort-imports` and `prettier-plugin-*` dependencies to the global level:

```txt
public-hoist-pattern[]=@trivago/prettier-plugin-sort-imports
public-hoist-pattern[]=prettier-plugin-*
```

## ![Git](https://img.shields.io/badge/Git-e84e32?style=for-the-badge&logo=git&logoColor=white) verify commit

1. install [husky](https://typicode.github.io/husky/)
2. add commit-msg hook
```shell
# on Linux or Mac
echo "npx haydenull-fabric verify-commit" >> .husky/commit-msg
```

## ![TypeScript](https://img.shields.io/badge/TypeScript-3078c6?style=for-the-badge&logo=typescript&logoColor=white) tsconfig

in `tsconfig.json`
```json
{
  "extends": "@haydenull/fabric/tsconfig/tsconfig.json",
}
```

## ![czg](https://img.shields.io/badge/czg-1a2b34?style=for-the-badge&logo=cz-git&logoColor=white) [czg](https://cz-git.qbb.sh/cli/)

1. global install
```shell
npm install -g czg
```

2.in `cz.config.mjs`
```js
import haydenullCz from '@haydenull/fabric/cz'


export default {
  ...haydenullCz,
  scopes: [/** your scopes */],
}
```

## Recommended

### Use `lint-staged`

1. Install

```shell
pnpm add -D lint-staged
```

2. in `package.json`

```json
{
  "lint-staged": {
    "**/*.{js,jsx,ts,tsx}": [
      "npx prettier --write",
      "npx eslint --fix"
    ]
  }
}
```

3. add git hooks

```shell
# on Linux or Mac
echo "npx lint-staged" >> .husky/pre-commit
```

### type check before commit

1. in `package.json`
```json
{
  "scripts": {
    "typecheck": "tsc --noEmit"
  }
}
```
2. add git hooks

```shell
# on Linux or Mac
echo "npm run typecheck" >> .husky/pre-commit
```

### spell check

Install [Code Spell Checker](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) Plugin for VSCode.

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