{"id":19898,"library":"eslint-plugin-react-jss","title":"ESLint Plugin React JSS","description":"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.","status":"abandoned","version":"0.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/dashxhq/eslint-plugin-react-jss","tags":["javascript","eslint","eslint-plugin","react","react-jss"],"install":[{"cmd":"npm install eslint-plugin-react-jss","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-react-jss","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-react-jss","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency; the plugin is loaded by ESLint.","package":"eslint","optional":true}],"imports":[{"note":"The plugin must be added to the 'plugins' array, not 'extends'.","wrong":"// Using \"extends\" instead of \"plugins\"","symbol":"rules","correct":"// In .eslintrc: { \"plugins\": [\"react-jss\"], \"rules\": { \"react-jss/prefer-object\": \"warn\" } }"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"plugins\": [\"react-jss\"],\n  \"rules\": {\n    \"react-jss/prefer-object\": \"warn\"\n  }\n}\n\n// Example React component with JSS\nimport React from 'react';\nimport injectSheet from 'react-jss';\n\nconst styles = {\n  button: {\n    backgroundColor: 'blue',\n    color: 'white',\n    padding: '10px 20px',\n    border: 'none',\n    borderRadius: '4px',\n    cursor: 'pointer'\n  }\n};\n\nconst Button = ({ classes }) => (\n  <button className={classes.button}>Click me</button>\n);\n\nexport default injectSheet(styles)(Button);","lang":"javascript","description":"Configures ESLint plugin and shows a React component using react-jss with injected styles."},"warnings":[{"fix":"Consider using styled-components or Emotion with eslint-plugin-styled-components instead.","message":"Package has not been updated since 2017 and is likely abandoned.","severity":"deprecated","affected_versions":">=0.0.1"},{"fix":"Add 'plugins': ['react-jss'] to your ESLint config.","message":"Plugin must be installed as a devDependency and listed in ESLint's plugins array.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install --save-dev eslint-plugin-react-jss","cause":"Plugin not installed or not in node_modules.","error":"ESLint couldn't find the plugin \"eslint-plugin-react-jss\"."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}