Basic ESLint config for Electron-TypeScript projects.
Requires eslint >= 8.0.0
.
This config is specifically designed to be used by @quick-start/create-electron
setups.
See @typescript-eslint/eslint-plugin for available rules.
npm add -D @electron-toolkit/eslint-config-ts
This package comes with 3 rulesets.
This ruleset is the base configuration for Electron-TypeScript projects.
module.exports = {
extends: ['@electron-toolkit/eslint-config-ts']
}
Built-in some recommended rules for Electron-TypeScript projects.
module.exports = {
extends: ['@electron-toolkit/eslint-config-ts/eslint-recommended']
}
This is extended from @electron-toolkit/eslint-config-ts
and @electron-toolkit/eslint-config-ts/eslint-recommended
ruleset.
module.exports = {
extends: ['@electron-toolkit/eslint-config-ts/recommended']
}