Skip to content

qfox/node-jscs-plugin-tpl

Repository files navigation

node-jscs plugin volo tpl Build Status

JSCS plugin volo template

To create empty stub use volo

npm install volo
volo create {place here your plugin name} zxqfox/node-jscs-plugin-tpl

Friendly packages

Plugin installation

jscs-plugin can be installed using npm:

npm install jscs-plugin

To use plugin you should add it to configuration file .jscsrc:

{
  ...
  "additionalRules": [
    'node_modules/jscs-plugin/rules/*'
  ]
}

Browser Usage

File jscs-plugin-browser.js contains browser-compatible version of jscs-plugin.

Download and include jscs-plugin-browser.js into your page just after jscs-browser.js.

<script src="jscs-browser.js"></script>
<script src="jscs-plugin-browser.js"></script>
<script>
    var checker = new JscsStringChecker();
    checker.registerDefaultRules();
    checker.configure({yourPluginRules: {...}});
    var errors = checker.checkString('var x, y = 1;');
    errors.getErrorList().forEach(function(error) {
        console.log(errors.explainError(error));
    });
</script>

About

Stub project for JSCS plugins

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published