pickstack

Preact + ESLint

Pluggable linter (flat config). This page shows exactly what pickstack adds to a Preact project for ESLint: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.

$ npm create pickstack@latest my-app -- --framework preact --modules eslint --yes
Customize in the configurator

Packages it adds

PackageVersionType
@eslint/js^10.0.1dev
eslint^10.15.0dev
eslint-plugin-react-hooks^7.1.1dev
globals^17.14.0dev
typescript-eslint^8.74.0dev

New files

eslint.config.js
import js from "@eslint/js";
import { defineConfig, globalIgnores } from "eslint/config";
import reactHooks from "eslint-plugin-react-hooks";
import globals from "globals";
import tseslint from "typescript-eslint";

export default defineConfig([
  globalIgnores(["dist"]),
  {
    files: ["**/*.{ts,tsx}"],
    extends: [
      js.configs.recommended,
      tseslint.configs.recommended,
      reactHooks.configs.flat.recommended,
    ],
    languageOptions: {
      globals: globals.browser,
    },
  },
]);

Project files

Related templates