{"id":26536,"library":"tslint-react-perf","title":"tslint-react-perf","description":"Supplemental TSLint rules for React performance best practices. Version 0.3.1 (latest). Inactive project; author recommends using React hooks (useMemo, useCallback) instead. Provides rules to prevent binding, lambdas, array/object literals in JSX props, enforce pure component patterns. Requires TypeScript and TSLint. No releases or updates since 2019.","status":"deprecated","version":"0.3.1","language":"javascript","source_language":"en","source_url":"https://github.com/darthtrevino/tslint-react-perf","tags":["javascript"],"install":[{"cmd":"npm install tslint-react-perf","lang":"bash","label":"npm"},{"cmd":"yarn add tslint-react-perf","lang":"bash","label":"yarn"},{"cmd":"pnpm add tslint-react-perf","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency; required to load and run rules","package":"tslint","optional":false},{"reason":"peer dependency; required for TSLint to parse TypeScript code","package":"typescript","optional":false}],"imports":[{"note":"This is a TSLint rules package; you use it via configuration, not import. Extend in tslint.json.","wrong":"import { rules } from 'tslint-react-perf'","symbol":"rules","correct":"{\n  \"extends\": [\"tslint-react-perf\"]\n}"},{"note":"Rules are enabled via tslint.json configuration, not imported.","wrong":"import { jsx-no-bind-props } from 'tslint-react-perf'","symbol":"jsx-no-bind-props","correct":"{\n  \"rules\": {\n    \"jsx-no-bind-props\": true\n  }\n}"},{"note":"Common mistake: trying to require the package directly instead of configuring via extends.","wrong":"const rule = require('tslint-react-perf')","symbol":"react-pure-components-have-simple-attributes","correct":"{\n  \"rules\": {\n    \"react-pure-components-have-simple-attributes\": true\n  }\n}"}],"quickstart":{"code":"{\n  \"extends\": [\"tslint:latest\", \"tslint-react\", \"tslint-react-perf\"],\n  \"rules\": {\n    \"jsx-no-lambda\": true,\n    \"jsx-no-bind\": true,\n    \"jsx-no-bind-props\": true,\n    \"jsx-no-lambda-props\": true,\n    \"jsx-no-array-literal-props\": true,\n    \"jsx-no-object-literal-props\": true,\n    \"react-component-classes-should-implement-scu\": true,\n    \"react-pure-components-have-simple-attributes\": true\n  }\n}","lang":"json","description":"Enable all react-perf rules via tslint.json configuration inheritance and rule settings."},"warnings":[{"fix":"Migrate to eslint-plugin-react-hooks or rely on hooks for performance optimization.","message":"Project is abandoned; author recommends using React hooks (useMemo, useCallback) instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Switch to ESLint with @typescript-eslint/parser and eslint-plugin-react.","message":"tslint-react is also deprecated; TSLint is deprecated in favor of ESLint.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Do not attempt to use with ESLint; only applicable in TSLint-based projects.","message":"Rules only work with TSLint; they do not work with ESLint or other linters.","severity":"gotcha","affected_versions":">=0.3.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install tslint-react-perf --save-dev' or 'yarn add tslint-react-perf --dev'.","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'tslint-react-perf'"},{"fix":"Add 'tslint-react-perf' to your extends array in tslint.json.","cause":"Rule not enabled in tslint.json configuration or package not extended properly.","error":"Could not find rule: 'jsx-no-bind-props'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}