Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): add ability to override file headers #2363

Merged
merged 2 commits into from
Aug 7, 2020

Conversation

nicojs
Copy link
Member

@nicojs nicojs commented Aug 7, 2020

Add the ability to override the file headers inside a sandbox. This allows users to opt-out of the default header, as well as add custom headers.

You can configure it like this:

{
  "sandboxFileHeaders": {
  "**/*.ts": "// Hello world\n"
  }
}

The key here is a glob expression, where the value points to the header to be used for matching files.

Fixes #2357

Add the ability to override the file headers inside a sandbox. This allows users to opt-out of the default header, as well as add custom headers.

You can configure it like this:

```json
{
  "sandboxFileHeaders": {
  "**/*.ts": "// Hello world\n"
  }
}
```

The key here is a [glob expression](https://globster.xyz/), where the value points to the header to be used for matching files.
@nicojs nicojs merged commit 430d6d3 into epic/mutation-switching Aug 7, 2020
@nicojs nicojs deleted the feat/sandbox-file-headers branch August 7, 2020 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the @ts-nocheck header configurable
1 participant