Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

eslint-config-preact

> 前端框架
Open source

Unopinionated baseline ESLint config for Preact and Preact CLI codebases.

100 stars0 likes1 views
WebsiteGitHub

About

Unopinionated baseline ESLint config for Preact and Preact CLI codebases.

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:

bash
npm i -D eslint eslint-config-preact

Now in your eslint.config.js:

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

Or in CommonJS eslint.config.cjs:

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

module.exports = [
  ...preact
];

Issues· 4 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScripteslintpreact

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架