radium-plugin-linter
npm install radium-plugin-linter --save
Radium plugin that uses uses inline-style-linter for runtime style linting. It is a modular & plugin-based and brings a lot of configuration options.
You must pass a configuration object using the linter
key within your Radium configuration.
Check Linter Configuration for detailed information on how to configure the Linter.
Usage
NOTE: This usage guide was directly copied from one of Ian Obermiller (Radium maintainer)'s Radium Plugins.
radium-plugin-linter
should be added before style prefixing (at least if you want to use the noVendorPrefix
-plugin shipped with with linter). Radium plugins are setup by passing a config object to @Radium
. Since you'll d probably want to use this plugin everywhere you use Radium, you can create your own module with a configured version of Radium:
ConfiguredRadium.js
var Radium = ;var lintStyles = ; { return component;} moduleexports = ConfiguredRadium;
Then you just use @ConfiguredRadium
instead of @Radium
. Or ConfiguredRadium(MyComponent)
instead of Radium(MyComponent)
.
@ConfiguredRadium // ...