Skip to content

API > wxt > Eslintrc

Interface: Eslintrc

Contents

Properties

enabled

enabled?: boolean | "auto"

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

  • 'auto': Check if eslint is installed, and if it is, generate the helper file
  • true: Generate the helper file
  • false: Don't generate the file

Default

ts
'auto'

Source

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


filePath

filePath?: string

File path to save the generated eslint config.

Default

ts
'./.wxt/eslintrc-auto-import.json'

Source

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


globalsPropValue

globalsPropValue?: EslintGlobalsPropValue

Default

ts
true

Source

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


Generated using typedoc-plugin-markdown and TypeDoc