Skip to content

Add option to add arbitrary code to the start of the generated file. #46

@sezaru

Description

@sezaru

Code of Conduct

  • I agree to follow this project's Code of Conduct

AI Policy

  • I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

Is your feature request related to a problem? Please describe.

In our frontend, we have some rules set in eslint that will break with the generated file from ash typescript.

Describe the solution you'd like

To fix the above issue, we need to add a line at the start of the file that will make eslint ignore some checks for this file:

/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type */

I would like to have an option to add arbitrary code to the start of a generated file from AshTypescript so I can add the above line and make the file work as intended.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions