Skip to content

Commit ac48b72

Browse files
authored
docs: update config to use nuxt 3 config (#90)
1 parent 0caea6b commit ac48b72

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,31 +61,31 @@ Or, with `npm`
6161
npm install -D @nuxtjs/eslint-module
6262
```
6363

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

6666
```js
67-
export default {
67+
export default defineNuxtConfig({
6868
modules: [
6969
// Simple usage
7070
'@nuxtjs/eslint-module',
7171

7272
// With options
7373
['@nuxtjs/eslint-module', { /* module options */ }]
7474
]
75-
}
75+
})
7676
```
7777

7878
### Using top level options
7979

8080
```js
81-
export default {
81+
export default defineNuxtConfig({
8282
modules: [
8383
'@nuxtjs/eslint-module'
8484
],
8585
eslint: {
8686
/* module options */
8787
}
88-
}
88+
})
8989
```
9090

9191
## Options

0 commit comments

Comments
 (0)