Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1018 Bytes

File metadata and controls

33 lines (22 loc) · 1018 Bytes

@electron-toolkit/eslint-config-ts

Basic ESLint config for Electron-TypeScript projects.

Requires eslint >= 8.56.0.

This config is specifically designed to be used by @quick-start/create-electron setups.

Installation

npm add -D @electron-toolkit/eslint-config-ts

Usage

This package exports the following:

name Description
config A utility function for creating type-safe flat configs, export form typescript-eslint
configs Built-in configurations: base and recommended

Import @electron-toolkit/eslint-config-ts and add it to the configuration array in your eslint.config.js file.

import tseslint from '@electron-toolkit/eslint-config-ts'

export default tseslint.config(
  tseslint.configs.recommended
  // Any other config
)