Browse Source

fix line length, run jscs & jshint in precommit

Dan Cech 8 years ago
parent
commit
da9e1a7e98

+ 2 - 1
public/app/plugins/datasource/graphite/func_editor.js

@@ -265,7 +265,8 @@ function (angular, _, $, rst2html) {
                     element: e.target,
                     position: 'bottom left',
                     classNames: 'drop-popover drop-function-def',
-                    template: '<div style="overflow:auto;max-height:30rem;"><h4>' + funcDef.name + '</h4>' + rst2html(funcDef.description) + '</div>',
+                    template: '<div style="overflow:auto;max-height:30rem;">'
+                      + '<h4>' + funcDef.name + '</h4>' + rst2html(funcDef.description) + '</div>',
                     openOn: 'click',
                   });
                 } else {

+ 2 - 0
scripts/grunt/default_task.js

@@ -20,6 +20,8 @@ module.exports = function(grunt) {
   ]);
 
   grunt.registerTask('precommit', [
+    'jscs',
+    'jshint',
     'sasslint',
     'exec:tslint',
     'no-only-tests'