Skip to content

API / wxt / Eslintrc

Interface: Eslintrc

Source: packages/wxt/src/types.ts:1699

Contents

Properties

enabled?

optional enabled?: boolean | EslintConfigVersion | "auto"

Source: packages/wxt/src/types.ts:1713

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

filePath?

optional filePath?: string

Source: packages/wxt/src/types.ts:1722

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'

globalsPropValue?

optional globalsPropValue?: EslintGlobalsPropValue

Source: packages/wxt/src/types.ts:1724

Default

ts
true

Generated using typedoc-plugin-markdown and TypeDoc