Playground: Virtual file name discrepancy between playground (input.ts) and docs & rule tests (file.ts) #9269
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
website: playground
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
:typescript-eslint/packages/website/src/components/editor/LoadedEditor.tsx
Line 92 in 9e0d9f5
typescript-eslint/packages/website/src/components/linter/bridge.ts
Line 16 in fd4ac7e
...while docs and rule tests use
file.ts
:typescript-eslint/packages/rule-tester/src/RuleTester.ts
Line 71 in 5ca7f6e
Rule options such as #8404 that care about file name need a stable name to work the same in both.
💖
The text was updated successfully, but these errors were encountered: