eslint-plugin-math
JSON →ESLint plugin for Math object and Number linting. Current version 0.13.1, peer dependency ESLint >=8.57.0, requires Node ^18 or >=20. Provides ~30 rules including prefer-math-trunc, prefer-math-pow, prefer-number-is-finite. Supports flat config (eslint.config.js) and legacy .eslintrc. Offers a recommended config and fixable suggestions. Built on eslint-type-tracer for efficient type detection. Designed to catch common Math/Number anti-patterns and promote modern alternatives. Notable for its focus on correctness (e.g., prefer-math-sum-precise for floating point).
Traffic · last 30 days ↓20% vs prev 7d
total hits 13
actors 5 distinct systems
last hit 1d ago Bingbot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇹🇷 Turkey · VN
Resources
API endpoints
full doc /v1/registry/eslint-plugin-math
compatibility /v1/registry/eslint-plugin-math/compatibility