Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pionxzh/eslint-config

Pionxzh's ESLint config presets
https://github.com/pionxzh/eslint-config

Last synced: about 1 month ago
JSON representation

Pionxzh's ESLint config presets

Awesome Lists containing this project

README

        

# @pionxzh/eslint-config
Forked from [antfu/eslint-config](https://github.com/antfu/eslint-config)

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

- Single quotes, no semi
- Auto fix for formatting (aimed to be used standalone **without** Prettier)
- Designed to work with TypeScript, Vue, React out-of-box
- Lints also for json, yaml, markdown
- Sorted imports, dangling commas
- Reasonable defaults, best practices, only one-line of config
- Respects `.gitignore` by default
- [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), compose easily!
- Using [ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic)
- **Style principle**: Minimal for reading, stable for diff, consistent

## Usage

### Install

```bash
pnpm i -D eslint @pionxzh/eslint-config
```

### Usage
create `eslint.config.mjs` in your project root:

```js
// eslint.config.mjs
import pionxzh from '@pionxzh/eslint-config'

export default pionxzh()
```

## Extended Reading

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

## License

[MIT](./LICENSE) License © 2022-PRESENT [Pionxzh](https://github.com/pionxzh)