Registry / http-networking / eslint-plugin-react-jss

eslint-plugin-react-jss

JSON →
library0.0.1jsnpmunverified

An ESLint plugin providing linting rules specific to React JSS (JavaScript Style Sheets) usage. Version 0.0.1 is the initial release with one rule: prefer-object. The package has no updates since 2017 and appears to be abandoned. No alternative ESLint plugins for react-jss are known. Requires ESLint as a peer dependency.

npm install eslint-plugin-react-jss
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-REAC
E
eslint-plugin-react-jss
http-networkingjavascriptv0.0.1
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.

rules
// In .eslintrc: { "plugins": ["react-jss"], "rules": { "react-jss/prefer-object": "warn" } }
// Using "extends" instead of "plugins"
The plugin must be added to the 'plugins' array, not 'extends'.

Configures ESLint plugin and shows a React component using react-jss with injected styles.

// .eslintrc.json { "plugins": ["react-jss"], "rules": { "react-jss/prefer-object": "warn" } } // Example React component with JSS import React from 'react'; import injectSheet from 'react-jss'; const styles = { button: { backgroundColor: 'blue', color: 'white', padding: '10px 20px', border: 'none', borderRadius: '4px', cursor: 'pointer' } }; const Button = ({ classes }) => ( <button className={classes.button}>Click me</button> ); export default injectSheet(styles)(Button);
Debug
Known issues
deprecatedPackage has not been updated since 2017 and is likely abandoned.
fix
Consider using styled-components or Emotion with eslint-plugin-styled-components instead.
affects: >=0.0.1
gotchaPlugin must be installed as a devDependency and listed in ESLint's plugins array.
fix
Add 'plugins': ['react-jss'] to your ESLint config.
affects: >=0.0.1
Errors
Common errors & fixes
ESLint couldn't find the plugin "eslint-plugin-react-jss".
Plugin not installed or not in node_modules.
fix
Run npm install --save-dev eslint-plugin-react-jss
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies
eslintoptionalPeer dependency; the plugin is loaded by ESLint.
Agent activity
7 hits · last 30 days
node
6
OpenAI (training)
1
Resources
eslint-plugin-react-jss — npm install eslint-plugin-react-jss · libregistry