Skip to content

Commit

Permalink
Fixes linting errors
Browse files Browse the repository at this point in the history
This fixes the linting errors in master
  • Loading branch information
Joshua B. Smith committed Jul 12, 2016
1 parent 10519dc commit 7d63034
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions public/js/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @return {Object} exposed functions that interact with application state logic
*
*/
function App(documentTones, sentences, thresholds, selectedSample) {
function App(documentTones, sentences, thresholds, selectedSample) { // eslint-disable-line no-unused-vars
var _selectedFilter = 'Anger',
_selectedTone = 'Emotion Tone',
_selectedSample = selectedSample || 'customer-call',
Expand Down Expand Up @@ -131,8 +131,8 @@ function App(documentTones, sentences, thresholds, selectedSample) {
category_name: 'Social Tone'
}], SCORE_DECIMAL_PLACE = 2,
PERCENTAGE_DECIMAL_PLACE = 1,
SOCIAL_TONE_MIN_RANGE = -1,
SOCIAL_TONE_MAX_RANGE = 1,
SOCIAL_TONE_MIN_RANGE = -1, // eslint-disable-line no-unused-vars
SOCIAL_TONE_MAX_RANGE = 1, // eslint-disable-line no-unused-vars
output = {};

/**
Expand Down
2 changes: 1 addition & 1 deletion public/js/components/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function move(arr, oldIndex, newIndex) {
if (internalNewIndex >= internalArray.length) {
var k = internalNewIndex - internalArray.length;
while ((k--) + 1) {
internalArray.push(undefined);
internalArray.push(undefined); // eslint-disable-line no-undefined
}
}
internalArray.splice(internalNewIndex, 0, internalArray.splice(internalOldIndex, 1)[0]);
Expand Down
14 changes: 7 additions & 7 deletions public/js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ function allReady(thresholds, sampleText) {
$sentenceRankTable = $('.sentence-rank--table'),
$sentenceJson = $('.json .json--code'),
$outputResetButton = $('.output--reset-button'),
barGraph_template = barGraphTemplate.innerHTML,
emotionBarGraph_template = emotionBarGraphTemplate.innerHTML,
filters_template = filtersTemplate.innerHTML,
originalText_template = originalTextTemplate.innerHTML,
sentenceRank_template = sentenceRankTemplate.innerHTML,
originalTextTooltip_template = originalTextTooltipTemplate.innerHTML,
originalTextLegend_template = originalTextLegendTemplate.innerHTML,
barGraph_template = barGraphTemplate.innerHTML, // eslint-disable-line camelcase
emotionBarGraph_template = emotionBarGraphTemplate.innerHTML, // eslint-disable-line camelcase
filters_template = filtersTemplate.innerHTML, // eslint-disable-line camelcase
originalText_template = originalTextTemplate.innerHTML, // eslint-disable-line camelcase
sentenceRank_template = sentenceRankTemplate.innerHTML, // eslint-disable-line camelcase
originalTextTooltip_template = originalTextTooltipTemplate.innerHTML, // eslint-disable-line camelcase
originalTextLegend_template = originalTextLegendTemplate.innerHTML, // eslint-disable-line camelcase
lastSentenceID = 0;

/**
Expand Down

0 comments on commit 7d63034

Please sign in to comment.