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

src/types/index.ts:1154


filePath

filePath?: string

File path to save the generated eslint config.

Default

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

Source

src/types/index.ts:1160


globalsPropValue

globalsPropValue?: EslintGlobalsPropValue

Default

ts
true

Source

src/types/index.ts:1164


Generated using typedoc-plugin-markdown and TypeDoc