Skip to content

Conversation

@Kira-D
Copy link
Contributor

@Kira-D Kira-D commented Sep 23, 2016

No description provided.

}

$('#translatedTextClone').html($('#translatedText').attr('pristineText'));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing spaces not allowed no-trailing-spaces

var cleanMarkedText =
$("#translatedText").html().replace(/<span[^>]*id="wordGettingSuggested"[^>]*>/g, mark).replace(/<[/]?span[^>]*>/g, '');
var splittedText = cleanMarkedText.split(' ');
var targetIndex = splittedText.indexOf(mark + fromWord);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing spaces not allowed no-trailing-spaces

function getContext(fromWord, wrapLength) {
var mark = 'MEGAWORD!';
var cleanMarkedText =
$("#translatedText").html().replace(/<span[^>]*id="wordGettingSuggested"[^>]*>/g, mark).replace(/<[/]?span[^>]*>/g, '');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings must use singlequote quotes
Expected line break before .replace newline-per-chained-call


function getContext(fromWord, wrapLength) {
var mark = 'MEGAWORD!';
var cleanMarkedText =

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing spaces not allowed no-trailing-spaces

var mark = 'MEGAWORD!';
var cleanMarkedText =
// eslint-disable-next-line id-blacklist
$("#translatedText").html().replace(/<span[^>]*id="wordGettingSuggested"[^>]*>/g, mark).replace(/<[/]?span[^>]*>/g, '');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings must use singlequote quotes
Expected line break before .replace newline-per-chained-call

@Kira-D Kira-D closed this Sep 23, 2016
@Kira-D Kira-D reopened this Sep 25, 2016
var wordCount = splittedText.length;
for(var i = 0; i < wordCount && targetIndex === -1; i++) {
if(splittedText[i].indexOf(markedWord) !== -1) {
targetIndex = i;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 space characters but found 0 indent

var targetIndex = -1;
var wordCount = splittedText.length;
for(var i = 0; i < wordCount && targetIndex === -1; i++) {
if(splittedText[i].indexOf(markedWord) !== -1) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 space characters but found 0 indent

var splittedText = cleanMarkedText.replace(/\s+/g, ' ').split(' ');
var targetIndex = -1;
var wordCount = splittedText.length;
for(var i = 0; i < wordCount && targetIndex === -1; i++) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 space characters but found 0 indent

/* eslint-enable */
var splittedText = cleanMarkedText.replace(/\s+/g, ' ').split(' ');
var targetIndex = -1;
var wordCount = splittedText.length;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 space characters but found 0 indent

$("#translatedText").html().replace(/<span[^>]*id="wordGettingSuggested"[^>]*>/g, mark).replace(/<[/]?span[^>]*>/g, '');
/* eslint-enable */
var splittedText = cleanMarkedText.replace(/\s+/g, ' ').split(' ');
var targetIndex = -1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 space characters but found 0 indent


function getContext(fromWord, wrapLength) {
var mark = 'MEGAWORD!';
var markedWord = mark + fromWord;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected indentation of 4 space characters but found 0 indent

for(var i = 0; i < wordCount && targetIndex === -1; i++) {
if(splittedText[i].indexOf(markedWord) !== -1) {
targetIndex = i;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixed spaces and tabs no-mixed-spaces-and-tabs
Expected indentation of 8 space characters but found 0 indent

@sushain97 sushain97 changed the base branch from suggestions-Kira-D to issue-55-suggestions December 5, 2017 19:44
@sushain97
Copy link
Member

sushain97 commented Dec 5, 2017

@shardulc I think this PR needs to be de-conflicted and merged in as well for suggestions.

@Androbin Androbin mentioned this pull request Jan 1, 2018
@sushain97 sushain97 closed this Jan 1, 2018
sushain97 pushed a commit that referenced this pull request Jan 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants