{"id":19814,"library":"eslint-plugin-jsx","title":"eslint-plugin-jsx","description":"eslint-plugin-jsx v0.1.0 provides JSX-specific linting rules for ESLint, designed specifically for the JSX-to-JS transpiler (not standard JSX like React). It includes rules such as jsx/uses-factory, jsx/factory-in-scope, jsx/mark-used-vars, and jsx/no-undef. This plugin is intended for non-standard JSX syntax and is not compatible with typical React JSX. It is based on eslint-plugin-react but targets a different semantics. The project appears to be a niche solution for a specific transpiler, with no recent updates, suggesting it is in maintenance or deprecated state.","status":"active","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/jkroso/eslint-plugin-jsx","tags":["javascript","eslint","plugin","jsx"],"install":[{"cmd":"npm install eslint-plugin-jsx","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-jsx","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-jsx","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package is an ESLint plugin; it is used by adding to the plugins array in ESLint configuration, not imported in source code.","wrong":"import plugin from 'eslint-plugin-jsx' (not a regular import)","symbol":"plugin (via eslint config)","correct":"// In .eslintrc: { \"plugins\": [\"jsx\"] }"},{"note":"Rules are enabled via ESLint config with plugin prefix.","wrong":"Using require('eslint-plugin-jsx').rules['uses-factory'] (should be configured in ESLint config)","symbol":"jsx/uses-factory","correct":"// In .eslintrc: { \"rules\": { \"jsx/uses-factory\": [1, {\"pragma\": \"JSX\"}] } }"},{"note":"Configurable with pragma option.","wrong":"Directly calling the rule function (ESLint handles registration)","symbol":"jsx/factory-in-scope","correct":"// In .eslintrc: { \"rules\": { \"jsx/factory-in-scope\": [1, {\"pragma\": \"JSX\"}] } }"}],"quickstart":{"code":"// Install globally or locally alongside ESLint\n// .eslintrc.json\n{\n  \"plugins\": [\"jsx\"],\n  \"rules\": {\n    \"jsx/uses-factory\": [1, {\"pragma\": \"JSX\"}],\n    \"jsx/factory-in-scope\": [1, {\"pragma\": \"JSX\"}],\n    \"jsx/mark-used-vars\": 1,\n    \"jsx/no-undef\": 1\n  }\n}\n\n// Example JSX file (for JSX-to-JS transpiler)\n// Note: This is not standard React JSX\nvar el = <div id=\"foo\">text</div>;","lang":"javascript","description":"Shows installation and configuration of eslint-plugin-jsx in .eslintrc with its rules."},"warnings":[{"fix":"Use eslint-plugin-react instead for React JSX.","message":"This plugin is designed for JSX-to-JS transpiler, not standard React JSX; rules may not work as expected with React.","severity":"breaking","affected_versions":">=0.0.0"},{"fix":"Install both ESLint and this plugin in the same scope (both global or both local).","message":"Plugin must be installed in the same location as ESLint (global or local). Mismatch can cause plugin not found errors.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Consider migrating to eslint-plugin-react for active development.","message":"The package is based on an old version of eslint-plugin-react and may not be maintained. No recent updates.","severity":"deprecated","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Ensure eslint-plugin-jsx is installed in the same location (global or local) as ESLint.","cause":"Plugin not installed or installed in wrong scope (global vs local).","error":"ESLint: Failed to load plugin 'jsx': Cannot find module 'eslint-plugin-jsx'"},{"fix":"Add \"jsx\" to the plugins array in .eslintrc.","cause":"Plugin not listed in plugins array or misconfigured.","error":"Definition for rule 'jsx/uses-factory' was not found"},{"fix":"Use a parser that supports JSX (e.g., babel-eslint) or disable JSX parsing if not needed. Note that this plugin expects JSX-to-JS transpiler syntax.","cause":"ESLint parser does not support JSX by default.","error":"Parsing error: Unexpected token <"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}