Skip to content

Commit f9f7890

Browse files
committed
jshint configuration
1 parent 89c6930 commit f9f7890

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.jshintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"trailing": true,
2020
"smarttabs": true,
2121
"globals": {
22-
"angular": false
22+
"jQuery": false,
23+
"angular": false,
24+
"google": false,
25+
"Gauge": false
2326
}
2427
}

Gruntfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ module.exports = function (grunt) {
100100
},
101101
jshint: {
102102
options: {
103-
jshintrc: '.jshintrc'
103+
jshintrc: '.jshintrc',
104+
ignores: ['<%= yeoman.app %>/scripts/vendor/gauge.js']
104105
},
105106
all: [
106107
'Gruntfile.js',

app/scripts/directives/gauge.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ angular.module('app.directive')
1212
restrict: 'E',
1313
replace: true,
1414
scope: {
15-
label: "@",
16-
min: "=",
17-
max: "=",
18-
value: "="
15+
label: '@',
16+
min: '=',
17+
max: '=',
18+
value: '='
1919
},
2020
link: function postLink(scope, element, attrs) {
2121
var config = {

app/scripts/directives/lineChart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
'use strict';
22

33
angular.module('app.directive')
4-
.directive('lineChart', function ($timeout) {
4+
.directive('lineChart', function () {
55
return {
66
template: '<div></div>',
77
scope: {
88
chart: '='
99
},
1010
restrict: 'E',
1111
replace: true,
12-
link: function postLink(scope, element, attrs) {
12+
link: function postLink(scope, element) {
1313
var lineChart = new google.visualization.LineChart(element[0]);
1414

1515
function draw(chart) {

0 commit comments

Comments
 (0)