Content-Length: 272429 | pFad | https://github.com/typescript-eslint/typescript-eslint/issues/11052

2C Repo: Lint rule to ban dynamic syntax in generating tests · Issue #11052 · typescript-eslint/typescript-eslint · GitHub
Skip to content

Repo: Lint rule to ban dynamic syntax in generating tests #11052

Open
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Suggestion

Following #9691 and its ~dozen linked test cleanup issues, we'd like to statically enforce that folks don't add more auto-generated / dynamic tests. I bet this could be done with a lint rule to ban:

  • Putting function calls or other dynamic syntax inside RuleTester tests
  • Placing RuleTester tests anywhere other than the root of a file (except maybe ifs, for environment/version checks)

Additional Info

I could see this eventually being upstreamed into eslint-plugin-eslint-plugin...

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuerepo maintenancethings to do with maintenance of the repo, and not with code/docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/typescript-eslint/typescript-eslint/issues/11052

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy