{"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,"search_vec":"'0.3.1':14 '2019':50 'array/object':32 'author':18 'best':11 'bind':30 'compon':39 'enforc':37 'hook':22 'inact':16 'instead':25 'javascript':51 'jsx':35 'lambda':31 'latest':15 'liter':33 'pattern':40 'perf':4 'perform':10 'practic':12 'prevent':29 'project':17 'prop':36 'provid':26 'pure':38 'react':3,9,21 'recommend':19 'releas':46 'requir':41 'rule':7,27 'sinc':49 'supplement':5 'tslint':2,6,44 'tslint-react-perf':1 'typescript':42 'updat':48 'use':20 'usecallback':24 'usememo':23 'version':13","created_at":"2026-05-01T13:50:29.283872+00:00","updated_at":"2026-05-01T13:50:29.283872+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/darthtrevino/tslint-react-perf","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tslint-react-perf","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}