Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(module): explain how to disable configuration file generation #429

Merged
merged 2 commits into from
May 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
docs(module): explain how to disable configuration file generation
Resolves #427
  • Loading branch information
dargmuesli committed May 10, 2024
commit 5bd92b4e97f35a89825d9ac4865e23457bff53a7
17 changes: 17 additions & 0 deletions docs/content/1.packages/0.module.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,20 @@ export default withNuxt(
// ...your other rules
)
```

### Disable `eslint.config.js` file generation

You can opt-out of `eslint.config.js` file generation by setting `config.autoInit` to `false` in the `eslint` module options. This is useful if you configure your eslint configuration file to be sourced from another directory.

```ts [nuxt.config.ts]
export default defineNuxtConfig({
modules: [
'@nuxt/eslint'
],
eslint: {
config: {
autoInit: false // <---
}
}
})
```
Loading