Skip to content

API > wxt > Eslintrc

Interface: Eslintrc

Contents

Properties

enabled

enabled?: boolean | EslintConfigVersion | "auto"

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 <e; 8.
  • 9: Generate a flat config file compatible with ESLint >e; 9.
  • 'auto' (Deprecated): Same as true.

Default

ts
true

Source

packages/wxt/src/types.ts:1713


filePath

filePath?: string

File path to save the generated eslint config.

Default depends on version of ESLint used:

  • >e; 9: './.wxt/eslint-auto-imports.mjs'
  • <e; 8: './.wxt/eslintrc-auto-import.json'

Source

packages/wxt/src/types.ts:1722


globalsPropValue

globalsPropValue?: EslintGlobalsPropValue

Default

ts
true

Source

packages/wxt/src/types.ts:1724


Generated using typedoc-plugin-markdown and TypeDoc