Registry / testing / eslint-plugin-wix-style-react

eslint-plugin-wix-style-react

JSON →
library1.0.418jsnpmunverified

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.

npm install eslint-plugin-wix-style-react
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-WIX-
E
eslint-plugin-wix-style-react
testingjavascriptv1.0.418
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

Plugin Config
// In .eslintrc: { "plugins": ["wix-style-react"] }
// Missing or incorrect plugin name
The plugin is loaded by specifying 'wix-style-react' in ESLint plugins. No explicit import in code.
Rules
// In .eslintrc: "rules": { "wix-style-react/no-full-wsr-lib": 2 }
// Using 'wix-style-react/no-full-wsr-lib': 'error' works too, but old config uses numbers.
Rules are prefixed with 'wix-style-react/'. Refer to plugin docs for all available rules.
ESLint (peer dependency)
const eslint = require('eslint');
const eslint = import('eslint'); // dynamic import not typical for config
ESLint is typically installed globally or locally; plugin is used via .eslintrc.

Configures ESLint to use the plugin and enable a sample rule that prevents importing the full Wix Style React library.

{ "plugins": ["wix-style-react"], "rules": { "wix-style-react/no-full-wsr-lib": "error" } }
Debug
Known issues
gotchaPlugin may not work with ESLint flat config (eslint.config.js) as it follows legacy config format.
fix
Use .eslintrc or .eslintrc.json for configuration, or check for plugin updates supporting flat config.
affects: >=1.0.0
breakingNode engine requirement >=0.10.0 is outdated; modern Node versions may cause unexpected behavior.
fix
Use Node >= 12 or check for newer plugin versions with updated engine requirements.
affects: >=1.0.0
deprecatedThe package repository is private (github.com/wix-private/wix-ui). External contributors may not access issues or PRs.
fix
Submit issues through Wix support or internal channels.
affects: >=1.0.0
gotchaRule names and behavior may change without public changelog due to private development.
fix
Pin plugin version and test after updates.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'wix-style-react': Cannot find module 'eslint-plugin-wix-style-react'
Plugin not installed or not in node_modules.
fix
Run 'npm install eslint-plugin-wix-style-react --save-dev' and ensure it is in the project's dependencies.
Error: Configuration for rule 'wix-style-react/no-full-wsr-lib' is invalid: value '2' is not a valid severity.
Using numeric severity (2) without proper ESLint version support or inside flat config.
fix
Use string severity 'error' instead of number: 'wix-style-react/no-full-wsr-lib': 'error'
Upgrade
Version history
1.0.418latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required to run the plugin
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-plugin-wix-style-react — npm install eslint-plugin-wix-style-react · libregistry