Skip to content

Commit

Permalink
docs: update config to use nuxt 3 config (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
damisparks committed Apr 5, 2023
1 parent 0caea6b commit ac48b72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,31 +61,31 @@ Or, with `npm`
npm install -D @nuxtjs/eslint-module
```

2. Add `@nuxtjs/eslint-module` to the `modules` section of `nuxt.config.js`
2. Add `@nuxtjs/eslint-module` to the `modules` section of `nuxt.config.ts`

```js
export default {
export default defineNuxtConfig({
modules: [
// Simple usage
'@nuxtjs/eslint-module',

// With options
['@nuxtjs/eslint-module', { /* module options */ }]
]
}
})
```

### Using top level options

```js
export default {
export default defineNuxtConfig({
modules: [
'@nuxtjs/eslint-module'
],
eslint: {
/* module options */
}
}
})
```

## Options
Expand Down

0 comments on commit ac48b72

Please sign in to comment.