Interface: Eslintrc
Contents
Properties
enabled
enabled?:
boolean|EslintSupportedVersions|"auto"
When true, generates a file that can be used by ESLint to know which variables are valid globals.
false: Don't generate the file.'auto': Check if eslint is installed, and if it is, generate a compatible config file.true: Same as8.old: Generate a config file compatible with ESLint <e; 8.flat: Generate a config file compatible with ESLint >e; 9.
Default
ts
'auto'Source
packages/wxt/src/types.ts:1597
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:1606
globalsPropValue
globalsPropValue?:
EslintGlobalsPropValue
Default
ts
trueSource
packages/wxt/src/types.ts:1608
Generated using typedoc-plugin-markdown and TypeDoc