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.

testing
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.

This package is an ESLint plugin; it is used by adding to the plugins array in ESLint configuration, not imported in source code.

// In .eslintrc: { "plugins": ["jsx"] }

Rules are enabled via ESLint config with plugin prefix.

// In .eslintrc: { "rules": { "jsx/uses-factory": [1, {"pragma": "JSX"}] } }

Configurable with pragma option.

// In .eslintrc: { "rules": { "jsx/factory-in-scope": [1, {"pragma": "JSX"}] } }

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 footguns
breakingThis plugin is designed for JSX-to-JS transpiler, not standard React JSX; rules may not work as expected with React.
gotchaPlugin must be installed in the same location as ESLint (global or local). Mismatch can cause plugin not found errors.
deprecatedThe package is based on an old version of eslint-plugin-react and may not be maintained. No recent updates.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
14 hits · last 30 days
gptbot
4
ahrefsbot
4
amazonbot
4
script
1
bingbot
1
Resources