docs: add code style badge (#220)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
Cloyd Lau 2023-07-17 22:53:38 +08:00 committed by GitHub
parent 500fe9df8d
commit bf390b0693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
# @antfu/eslint-config # @antfu/eslint-config
[![npm](https://img.shields.io/npm/v/@antfu/eslint-config?color=a1b858&label=)](https://npmjs.com/package/@antfu/eslint-config) [![npm](https://img.shields.io/npm/v/@antfu/eslint-config?color=444&label=)](https://npmjs.com/package/@antfu/eslint-config) [![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)
- Single quotes, no semi - Single quotes, no semi
- Auto fix for formatting (aimed to be used standalone **without** Prettier) - Auto fix for formatting (aimed to be used standalone **without** Prettier)
@ -109,6 +109,16 @@ and then
npm i -D lint-staged simple-git-hooks npm i -D lint-staged simple-git-hooks
``` ```
## Badge
If you enjoy this code style, and would like to mention it in your project, here is the badge you can use:
```md
[![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)
```
[![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)
## FAQ ## FAQ
### Prettier? ### Prettier?