Socket
Book a DemoInstallSign in
Socket

eslint-config-preact

Package Overview
Dependencies
Maintainers
6
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-preact

Unopinionated base ESLint configuration for Preact and Preact CLI projects.

2.0.0
latest
Source
npmnpm
Version published
Weekly downloads
17K
-35.3%
Maintainers
6
Weekly downloads
 
Created
Source

eslint-config-preact

An unopinionated baseline ESLint configuration for Preact and Preact CLI codebases.

It helps you avoid bugs, and lets you know when there's a more optimal way to do things.

What's included: sensible defaults for modern JS, JSX, Preact, Jest and Mocha.

⛔️ What's not included: no stylistic or subjective rules are provided.

Installation

Install eslint and this config:

npm i -D eslint eslint-config-preact

Now in your eslint.config.js:

import preact from 'eslint-config-preact';
export default [
  ...preact
];

Or in CommonJS eslint.config.cjs:

const {default: preact} = require('eslint-config-preact');

module.exports = [
  ...preact
];

Keywords

eslint

FAQs

Package last updated on 12 Jul 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.