Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@electron-toolkit/eslint-config-prettier

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@electron-toolkit/eslint-config-prettier

ESLint config with Prettier support for Electron projects.

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
increased by11.75%
Maintainers
1
Weekly downloads
 
Created
Source

@electron-toolkit/eslint-config-prettier

ESLint config with Prettier support for Electron projects.

Requires eslint >= 8.0.0 and prettier >= 3.0.0.

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

The default config is based on the recommended configuration of eslint-plugin-prettier, which also depends on eslint-config-prettier. Please refer to their corresponding documentations for more implementation details.

Installation

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

Usage

Add @electron-toolkit/eslint-config-prettier to the extends array in your .eslintrc.cjs file. Make sure to put it last, so it gets the chance to override other configs.

module.exports = {
  extends: [
    // ... other configs
    '@electron-toolkit/eslint-config-prettier'
  ]
}

This configuration is the most straightward way to use ESLint with Prettier.

It disables all rules that are unnecessary or might conflict with Prettier. It also enables the eslint-plugin-prettier plugin, which runs Prettier as an ESLint rule and reports differences as individual ESLint issues.

By default all formatting issues are reported as warnings, and will be automatically fixed during eslint --fix.

Keywords

FAQs

Package last updated on 19 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc