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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy