Skip to content

✓ cache hit, logs replayed causes problems with handling expected shape of output #10

@connorshea

Description

@connorshea

I'm running pnpm vite lint --rules --format=json to get a JSON format output of the oxlint rules list in the oxc playground.

Unfortunately, this will get cached and then a cache message is also printed, and so the file I save it as - or the command I pipe it to - no longer gets a valid JSON object. This is very annoying.

[
// many many log lines before this
{
    "scope": "vue",
    "value": "valid-define-emits",
    "category": "correctness",
    "type_aware": false,
    "fix": "pending",
    "default": false,
    "docs_url": "https://oxc.rs/docs/guide/usage/linter/rules/vue/valid-define-emits.html"
  },
  {
    "scope": "vue",
    "value": "valid-define-props",
    "category": "correctness",
    "type_aware": false,
    "fix": "pending",
    "default": false,
    "docs_url": "https://oxc.rs/docs/guide/usage/linter/rules/vue/valid-define-props.html"
  }
]✓ cache hit, logs replayed

failed to parse JSON output from `pnpm vite lint --rules --format=json`
 ELIFECYCLE  Command failed with exit code 1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions