eslint-config-ponder

raw JSON →
0.16.6 verified Sat Apr 25 auth: no javascript

Recommended ESLint configuration for Ponder projects. Version 0.16.6, released alongside Ponder framework updates. This package provides a shareable ESLint config tailored to Ponder's TypeScript codebase, enforcing best practices and consistency. It depends on @typescript-eslint/eslint-plugin and @typescript-eslint/parser version ^6.3.0. Alternative to manually configuring ESLint rules for Ponder apps.

error Error: Failed to load config "ponder" to extend from.
cause eslint-config-ponder is not installed or not found in node_modules.
fix
Run npm install eslint-config-ponder --save-dev and ensure it's listed in devDependencies.
error ESLint: TypeError: this.libOptions.parse is not a function
cause Incompatible version of @typescript-eslint/parser (older than 6.3.0).
fix
Update @typescript-eslint/parser to ^6.3.0.
breaking Requires @typescript-eslint/eslint-plugin@^6.3.0 and @typescript-eslint/parser@^6.3.0. Older versions may cause rule incompatibilities.
fix Update peer deps to ^6.3.0.
deprecated ESLint flat config (eslint.config.js) is not supported; only .eslintrc format works.
fix Use .eslintrc.json or .eslintrc.js instead of eslint.config.js.
gotcha The config is intended for Ponder projects; using it in non-Ponder projects may cause false positives.
fix Only use this config for Ponder-based frameworks.
npm install eslint-config-ponder
yarn add eslint-config-ponder
pnpm add eslint-config-ponder

Shows how to extend eslint-config-ponder in a .eslintrc.json file and run ESLint.

// .eslintrc.json
{
  "extends": "ponder"
}

// Then run:
// npx eslint . --ext .ts,.tsx