Skip to content

API > wxt > Eslintrc

Interface: Eslintrc

Contents

Properties

enabled

enabled?: boolean | 9 | 8 | "auto"

When true, generates a file that can be used by ESLint to know which variables are valid globals.

  • false: Don't generate the file.
  • 'auto': Check if eslint is installed, and if it is, generate a compatible config file.
  • true: Same as 8.
  • 8: Generate a config file compatible with ESLint 8.
  • 9: Generate a config file compatible with ESLint 9.

Default

ts
'auto'

Source

packages/wxt/src/types/index.ts:1259


filePath

filePath?: string

File path to save the generated eslint config.

Default depends on version of ESLint used:

  • 9 and above: './.wxt/eslint-auto-imports.mjs'
  • 8 and below: './.wxt/eslintrc-auto-import.json'

Source

packages/wxt/src/types/index.ts:1267


globalsPropValue

globalsPropValue?: EslintGlobalsPropValue

Default

ts
true

Source

packages/wxt/src/types/index.ts:1271


Generated using typedoc-plugin-markdown and TypeDoc