Registry / testing / eslint-plugin-jsx

eslint-plugin-jsx

JSON →
library0.1.0jsnpmunverified

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.

npm install eslint-plugin-jsx
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-JSX
E
eslint-plugin-jsx
testingjavascriptv0.1.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin (via eslint config)
// In .eslintrc: { "plugins": ["jsx"] }
import plugin from 'eslint-plugin-jsx' (not a regular import)
This package is an ESLint plugin; it is used by adding to the plugins array in ESLint configuration, not imported in source code.
jsx/uses-factory
// In .eslintrc: { "rules": { "jsx/uses-factory": [1, {"pragma": "JSX"}] } }
Using require('eslint-plugin-jsx').rules['uses-factory'] (should be configured in ESLint config)
Rules are enabled via ESLint config with plugin prefix.
jsx/factory-in-scope
// In .eslintrc: { "rules": { "jsx/factory-in-scope": [1, {"pragma": "JSX"}] } }
Directly calling the rule function (ESLint handles registration)
Configurable with pragma option.

Shows installation and configuration of eslint-plugin-jsx in .eslintrc with its rules.

// Install globally or locally alongside ESLint // .eslintrc.json { "plugins": ["jsx"], "rules": { "jsx/uses-factory": [1, {"pragma": "JSX"}], "jsx/factory-in-scope": [1, {"pragma": "JSX"}], "jsx/mark-used-vars": 1, "jsx/no-undef": 1 } } // Example JSX file (for JSX-to-JS transpiler) // Note: This is not standard React JSX var el = <div id="foo">text</div>;
Debug
Known issues
breakingThis plugin is designed for JSX-to-JS transpiler, not standard React JSX; rules may not work as expected with React.
fix
Use eslint-plugin-react instead for React JSX.
affects: >=0.0.0
gotchaPlugin must be installed in the same location as ESLint (global or local). Mismatch can cause plugin not found errors.
fix
Install both ESLint and this plugin in the same scope (both global or both local).
affects: >=0.0.0
deprecatedThe package is based on an old version of eslint-plugin-react and may not be maintained. No recent updates.
fix
Consider migrating to eslint-plugin-react for active development.
affects: >=0.0.0
Errors
Common errors & fixes
ESLint: Failed to load plugin 'jsx': Cannot find module 'eslint-plugin-jsx'
Plugin not installed or installed in wrong scope (global vs local).
fix
Ensure eslint-plugin-jsx is installed in the same location (global or local) as ESLint.
Definition for rule 'jsx/uses-factory' was not found
Plugin not listed in plugins array or misconfigured.
fix
Add "jsx" to the plugins array in .eslintrc.
Parsing error: Unexpected token <
ESLint parser does not support JSX by default.
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.
Upgrade
Version history
0.1.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
eslint-plugin-jsx — npm install eslint-plugin-jsx · libregistry