# eslint

> Linting is done by Webpack also in production mode. You only need this process to manually run linting, or run it's `fix` command for example.

## Default command

```bash
eslint ./src/**/*.{js,jsx,ts,tsx}
```

## CLI Options

<https://eslint.org/docs/user-guide/command-line-interface>

## Examples

### Default CLI

```bash
mhy eslint
```

### Only lint one file

```bash
mhy eslint src/file.js
```

### Fix fixable errors

```bash
mhy eslint --fix
```


---

# 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://mhy.js.org/tools/processes/eslint.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.
