@electron-toolkit/eslint-config-ts
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

@electron-toolkit/eslint-config-ts

Basic ESLint config for Electron-TypeScript projects.

Requires eslint >= 9.0.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, recommended and recommendedTypeChecked
parser TypeScript parser for ESLint, export form @typescript-eslint/parser
plugin TypeScript plugin for ESLint, export form @typescript-eslint/eslint-plugin

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
)

Package Sidebar

Install

npm i @electron-toolkit/eslint-config-ts

Weekly Downloads

19,410

Version

3.1.0

License

MIT

Unpacked Size

6.51 kB

Total Files

9

Last publish

Collaborators

  • alex.wei