ALERT: This info is outdated. Update will come.. (most is fixed)

Some preliminary usage guidance. :)

For now, I haven't got around to make an options dialog. (Will come)
But you can still add jslint options and global defs to the top of .js files.

For instance:
/*jslint browser: true */
/*global jQuery, ko */
(function($, ko) {
    function init() {
        var model = new {};
        $("#dialog").dialog();
        ko.applyBindings(model);
    }
    $(document).ready(init);
}(jQuery, ko));


In mixed language files, Resharper for some reason don't give me leading comments in script blocks.
It is possible to work around it by adding some no-use statement before the jslint comment.

For instance:
<body>
    ...
    <script type="text/javascript">
        var x; // no-use line
        /*jslint browser: true */
        /*global jQuery, ko */
        (function($, ko) {
            function init() {
                var model = new {};
                $("#dialog").dialog();
                ko.applyBindings(model);
            }
            $(document).ready(init);
        }(jQuery, ko));
    </script>
    ...
</body>


Also, for mixed language files, whitespace messages are currently disabled by hardcoded option.
This is due to difficulties with finding the correct indent and column numbers.

Last edited Nov 14, 2012 at 10:35 AM by bleedo, version 5

Comments

No comments yet.