Skip to content

Claude Code often writes oxlint(/oxfmt) config to .oxlintrc.json(/.oxfmtrc.json) instead of vite.config.ts #1031

@naitokosuke

Description

@naitokosuke

Documentation is

  • Missing
  • Outdated
  • Confusing
  • Not sure

Explain in Detail

When using Claude Code (v2.1.78) with the CLAUDE.md generated by vp create (with Claude Code integration selected), Claude Code attempts to write oxlint rule configuration to oxlint.json or .oxlintrc.json instead of vite.config.ts lint.rules.

This happens despite the generated CLAUDE.md explicitly stating that Vite+ wraps Oxlint and that tools should not be configured directly.

Environment

  • Vite+: monorepo setup via vp create
  • CLAUDE.md: auto-generated (unmodified) with Claude Code option
  • Claude Code: v2.1.78

Your Suggestion for Changes

I'm not sure if this would fully solve the issue, but it might help to mention in the generated CLAUDE.md that lint(format) configurations should be added to vite.config.ts rather than to standalone oxlint config files.

Relevant Page

No response

Reproduction (Optional)

No response

Steps to reproduce (Optional)

  1. Create a monorepo project with vp create, selecting Claude Code integration
  2. Ask Claude Code to enable an oxlint rule
  3. Claude Code creates .oxlintrc.json at project root instead of adding it to lint.rules in vite.config.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions