Interface: Eslintrc
Contents
Properties
enabled
enabled?:
boolean|8|9|"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 a compatible config file.true: Same as'auto'.false: Don't generate the file.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.ts:1681
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.ts:1690
globalsPropValue
globalsPropValue?:
EslintGlobalsPropValue
Default
ts
trueSource
packages/wxt/src/types.ts:1692
Generated using typedoc-plugin-markdown and TypeDoc