Skip to content

Commit

Permalink
docs: add nuxi module add instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 10, 2024
1 parent d84af6f commit eadf056
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/content/1.packages/0.module.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ Source code on GitHub

## Quick Setup

```bash
npx nuxi module add eslint
```

Then start your Nuxt app, a `eslint.config.mjs` file will be generated under your project root. You can customize it as needed.

### Manual Setup

::code-group
```bash [yarn]
yarn add --dev @nuxt/eslint eslint
Expand All @@ -54,7 +62,7 @@ export default defineNuxtConfig({
})
```

And create an `eslint.config.mjs` file under **your project root**, with the following content:
And create an `eslint.config.mjs` file under your project root, with the following content:

```js [eslint.config.mjs]
import withNuxt from './.nuxt/eslint.config.mjs'
Expand Down

0 comments on commit eadf056

Please sign in to comment.