---
url: /api/reference/wxt/interfaces/Eslintrc.md
---

[API](../../packages.md) / [wxt](../index.md) / Eslintrc

# Interface: Eslintrc

Source: [packages/wxt/src/types.ts:1733](https://github.com/wxt-dev/wxt/blob/026473bb3ea473793aba6dcb622c4bcd0e9ce595/packages/wxt/src/types.ts#L1733)

## Contents

* [Properties](#properties)
  * [enabled?](#enabled)
  * [filePath?](#filepath)
  * [globalsPropValue?](#globalspropvalue)

## Properties

### enabled?

> `optional` **enabled?**: `boolean` | [`EslintConfigVersion`](../type-aliases/EslintConfigVersion.md) | `"auto"`

Source: [packages/wxt/src/types.ts:1747](https://github.com/wxt-dev/wxt/blob/026473bb3ea473793aba6dcb622c4bcd0e9ce595/packages/wxt/src/types.ts#L1747)

Determines if and in what format a config file will be generated to inform
ESLint of unimport globals.

* `true`: If eslint is installed, generate a compatible config file based on
  the installed version.
* `false`: Never generate the file.
* `8`: Generate an eslintrc file compatible with ESLint \&lte; 8.
* `9`: Generate a flat config file compatible with ESLint \&gte; 9.
* `'auto'` (Deprecated): Same as `true`.

#### Default

```ts
true
```

***

### filePath?

> `optional` **filePath?**: `string`

Source: [packages/wxt/src/types.ts:1756](https://github.com/wxt-dev/wxt/blob/026473bb3ea473793aba6dcb622c4bcd0e9ce595/packages/wxt/src/types.ts#L1756)

File path to save the generated eslint config.

Default depends on version of ESLint used:

* \&gte; 9: './.wxt/eslint-auto-imports.mjs'
* \&lte; 8: './.wxt/eslintrc-auto-import.json'

***

### globalsPropValue?

> `optional` **globalsPropValue?**: [`EslintGlobalsPropValue`](../type-aliases/EslintGlobalsPropValue.md)

Source: [packages/wxt/src/types.ts:1758](https://github.com/wxt-dev/wxt/blob/026473bb3ea473793aba6dcb622c4bcd0e9ce595/packages/wxt/src/types.ts#L1758)

#### Default

```ts
true
```

***

Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
