# Turn off validation for non-TypeScript projects

When working on Flow or JS codebases, TS can get in your way by signalling irrelevant errors. To avoid this, disable the following settings in your project:

```javascript
{
  "javascript.validate.enable": false,
  "typescript.format.enable": false,
  "typescript.validate.enable": false,
}
```

You can do so by creating a `.vscode/settings.json` file in the project's root directory.

Note that `javascript.*` setting applies to JavaScript files only and `typescript.*` ones apply to TypeScript only. This means you can get validation errors even if you just disable TypeScript.

Source: <https://stackoverflow.com/a/51993691/1694191>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://til.andrecostalima.pt/vscode/turn-off-type-checks-for-non-typescript-projects.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
