8000 Playground: Virtual file name discrepancy between playground (input.ts) and docs & rule tests (file.ts) · Issue #9269 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content
Playground: Virtual file name discrepancy between playground (input.ts) and docs & rule tests (file.ts) #9269
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggestion

Splitting out of https://github.com/typescript-eslint/typescript-eslint/pull/9234/files#r1624918878: we have two different virtual file names used in our tooling.

The playground uses input.ts:

files.set(`/input${config.fileType}`, config.code);

...while docs and rule tests use file.ts:

defaultFilenames: { ts: 'file.ts', tsx: 'react.tsx' },

Rule options such as #8404 that care about file name need a stable name to work the same in both.

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingwebsite: playground

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0