eslint-config-preact

Unopinionated base ESLint configuration for Preact and Preact CLI projects.

MIT 12 个版本
安装
npm install eslint-config-preact
yarn add eslint-config-preact
pnpm add eslint-config-preact
bun add eslint-config-preact
README

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
];
版本列表
2.0.0 2025-07-12
1.5.0 2024-09-17
1.4.0 2024-05-12
1.3.0 2021-12-16
1.2.0 2021-10-22
1.1.4 2021-04-26
1.1.3 2020-11-02
1.1.2 2020-10-20
1.1.1 2020-03-23
1.1.0 2020-02-19
1.0.0 2020-02-19
0.0.1-alpha.1 2017-09-21