{"id":25536,"library":"eslint-plugin-wix-style-react","title":"eslint-plugin-wix-style-react","description":"An ESLint plugin providing custom lint rules for projects using the Wix Style React library. Current version is 1.0.418. It enforces best practices and prevents common mistakes specific to wix-style-react components, such as avoiding full library imports. The package is maintained by Wix and follows ESLint plugin conventions. It is designed for Node.js environments (>=0.10.0) and requires ESLint as a peer dependency. Key differentiator: it focuses on Wix's internal React component library, offering rules not found in general React lint plugins.","status":"active","version":"1.0.418","language":"javascript","source_language":"en","source_url":"https://github.com/wix-private/wix-ui","tags":["javascript","eslint","eslintplugin","eslint-plugin"],"install":[{"cmd":"npm install eslint-plugin-wix-style-react","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-wix-style-react","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-wix-style-react","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required to run the plugin","package":"eslint","optional":false}],"imports":[{"note":"The plugin is loaded by specifying 'wix-style-react' in ESLint plugins. No explicit import in code.","wrong":"// Missing or incorrect plugin name","symbol":"Plugin Config","correct":"// In .eslintrc: { \"plugins\": [\"wix-style-react\"] }"},{"note":"Rules are prefixed with 'wix-style-react/'. Refer to plugin docs for all available rules.","wrong":"// Using 'wix-style-react/no-full-wsr-lib': 'error' works too, but old config uses numbers.","symbol":"Rules","correct":"// In .eslintrc: \"rules\": { \"wix-style-react/no-full-wsr-lib\": 2 }"},{"note":"ESLint is typically installed globally or locally; plugin is used via .eslintrc.","wrong":"const eslint = import('eslint'); // dynamic import not typical for config","symbol":"ESLint (peer dependency)","correct":"const eslint = require('eslint');"}],"quickstart":{"code":"{\n  \"plugins\": [\"wix-style-react\"],\n  \"rules\": {\n    \"wix-style-react/no-full-wsr-lib\": \"error\"\n  }\n}","lang":"javascript","description":"Configures ESLint to use the plugin and enable a sample rule that prevents importing the full Wix Style React library."},"warnings":[{"fix":"Use .eslintrc or .eslintrc.json for configuration, or check for plugin updates supporting flat config.","message":"Plugin may not work with ESLint flat config (eslint.config.js) as it follows legacy config format.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use Node >= 12 or check for newer plugin versions with updated engine requirements.","message":"Node engine requirement >=0.10.0 is outdated; modern Node versions may cause unexpected behavior.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Submit issues through Wix support or internal channels.","message":"The package repository is private (github.com/wix-private/wix-ui). External contributors may not access issues or PRs.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Pin plugin version and test after updates.","message":"Rule names and behavior may change without public changelog due to private development.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install eslint-plugin-wix-style-react --save-dev' and ensure it is in the project's dependencies.","cause":"Plugin not installed or not in node_modules.","error":"Error: Failed to load plugin 'wix-style-react': Cannot find module 'eslint-plugin-wix-style-react'"},{"fix":"Use string severity 'error' instead of number: 'wix-style-react/no-full-wsr-lib': 'error'","cause":"Using numeric severity (2) without proper ESLint version support or inside flat config.","error":"Error: Configuration for rule 'wix-style-react/no-full-wsr-lib' is invalid: value '2' is not a valid severity."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}