eslint-config-preact

2.0.0 • Public • Published

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
];

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-preact

Weekly Downloads

30,364

Version

2.0.0

License

MIT

Unpacked Size

7 kB

Total Files

4

Last publish

Collaborators

  • preactjs
  • developit
  • marvinhagemeister
  • drewigg
  • jdecroock
  • rschristian