Skip to content

Commit

Permalink
Fixed lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Chillee committed Jun 30, 2017
1 parent cc5f4c2 commit 1e51dbb
Show file tree
Hide file tree
Showing 94 changed files with 35 additions and 214 deletions.
1 change: 0 additions & 1 deletion extension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

/**
* Extension.ts is a lightweight wrapper around ModeHandler. It converts key
Expand Down
16 changes: 8 additions & 8 deletions src/actions/commands/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1213,14 +1213,14 @@ export class PutCommand extends BaseCommand {

if (register.text instanceof RecordedState) {
/**
* Paste content from recordedState. This one is actually complex as
* Vim has internal key code for key strokes.For example, Backspace
* is stored as `<80>kb`. So if you replay a macro, which is stored
* in a register as `a1<80>kb2`, youshall just get `2` inserted as
* `a` represents entering Insert Mode, `<80>bk` represents
* Backspace. However here, we shall
* insert the plain text content of the register, which is `a1<80>kb2`.
*/
* Paste content from recordedState. This one is actually complex as
* Vim has internal key code for key strokes.For example, Backspace
* is stored as `<80>kb`. So if you replay a macro, which is stored
* in a register as `a1<80>kb2`, youshall just get `2` inserted as
* `a` represents entering Insert Mode, `<80>bk` represents
* Backspace. However here, we shall
* insert the plain text content of the register, which is `a1<80>kb2`.
*/
vimState.recordedState.transformations.push({
type: 'macro',
register: vimState.recordedState.registerName,
Expand Down
4 changes: 2 additions & 2 deletions src/actions/operator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export class DeleteOperator extends BaseOperator {
public modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine];

/**
* Deletes from the position of start to 1 past the position of end.
*/
* Deletes from the position of start to 1 past the position of end.
*/
public async delete(
start: Position,
end: Position,
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/close.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as node from '../node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/deleteRange.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as node from '../node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/file.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as path from 'path';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/nohl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../node';
import { ModeHandler } from '../../mode/modeHandler';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/quit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as node from '../node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/read.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../node';
import { readFile } from 'fs';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/register.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as node from '../node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/setoptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../node';
import * as util from '../../util';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/sort.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as node from '../node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/substitute.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* tslint:disable:no-bitwise */
('use strict');

import * as vscode from 'vscode';
import * as node from '../node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/tab.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as node from '../node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/wall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as node from '../node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/write.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

// XXX: use graceful-fs ??
import * as fs from 'fs';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/writequit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../node';
import { ModeHandler } from '../../mode/modeHandler';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/commands/writequitall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../node';
import { ModeHandler } from '../../mode/modeHandler';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/lexer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { Scanner } from './scanner';
import { Token, TokenType } from './token';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as parser from './parser';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import * as token from './token';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/parser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as token from './token';
import * as node from './node';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/scanner.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

// Provides state and behavior to scan an input string character by character.
export class Scanner {
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { parseQuitCommandArgs, parseQuitAllCommandArgs } from './subparsers/quit';
import { parseWriteCommandArgs } from './subparsers/write';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/close.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/close';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/deleteRange.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/deleteRange';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/file.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/file';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/nohl.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/nohl';

Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/quit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/quit';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/read.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ReadCommand, IReadCommandArguments } from '../commands/read';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/register.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/register';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/setoptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/setoptions';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/sort.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/sort';

Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/substitute.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* tslint:disable:no-bitwise */
('use strict');

import * as node from '../commands/substitute';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/tab.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/tab';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/wall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/wall';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/write.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { WriteCommand, IWriteCommandArguments } from '../commands/write';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/writequit.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { WriteQuitCommand, IWriteQuitCommandArguments } from '../commands/writequit';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/subparsers/writequitall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as node from '../commands/writequitall';
import { Scanner } from '../scanner';
Expand Down
1 change: 0 additions & 1 deletion src/cmd_line/token.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

// Tokens for the Vim command line.

Expand Down
1 change: 0 additions & 1 deletion src/common/motion/position.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as _ from 'lodash';
import * as vscode from 'vscode';
Expand Down
1 change: 0 additions & 1 deletion src/common/motion/range.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import { Position, PositionDiff } from './position';
Expand Down
1 change: 0 additions & 1 deletion src/configuration/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import { taskQueue } from '../../src/taskQueue';
Expand Down
1 change: 0 additions & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as util from './util';

Expand Down
1 change: 0 additions & 1 deletion src/mode/mode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

export enum ModeName {
Normal,
Expand Down
1 change: 0 additions & 1 deletion src/mode/modeEasyMotion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { VSCodeVimCursorType } from './mode';
Expand Down
13 changes: 4 additions & 9 deletions src/mode/modeHandler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');
import { SurroundInputMode } from './surroundInputMode';

import * as vscode from 'vscode';
Expand Down Expand Up @@ -581,9 +580,9 @@ export class ModeHandler implements vscode.Disposable {
isRunning: false,

/**
* We don't want these to become backlogged! If they do, we'll update
* the selection to an incorrect value and see a jittering cursor.
*/
* We don't want these to become backlogged! If they do, we'll update
* the selection to an incorrect value and see a jittering cursor.
*/
highPriority: true,
});
}
Expand Down Expand Up @@ -1012,11 +1011,7 @@ export class ModeHandler implements vscode.Disposable {
this.setCurrentModeByName(vimState);

// We don't want to mark any searches as a repeatable action
if (
vimState.currentMode === ModeName.Normal &&
prevState !== ModeName.SearchInProgressMode &&
vimState.currentMode !== ModeName.SearchInProgressMode
) {
if (vimState.currentMode === ModeName.Normal && prevState !== ModeName.SearchInProgressMode) {
ranRepeatableAction = true;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/mode/modeInsert.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { VSCodeVimCursorType } from './mode';
Expand Down
1 change: 0 additions & 1 deletion src/mode/modeNormal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { ModeHandler } from './modeHandler';
Expand Down
1 change: 0 additions & 1 deletion src/mode/modeReplace.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { VSCodeVimCursorType } from './mode';
Expand Down
1 change: 0 additions & 1 deletion src/mode/modeSearchInProgress.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { VSCodeVimCursorType } from './mode';
Expand Down
1 change: 0 additions & 1 deletion src/mode/modeVisual.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { VSCodeVimCursorType } from './mode';
Expand Down
1 change: 0 additions & 1 deletion src/mode/modeVisualBlock.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { VSCodeVimCursorType } from './mode';
Expand Down
1 change: 0 additions & 1 deletion src/mode/modeVisualLine.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { VSCodeVimCursorType } from './mode';
Expand Down
1 change: 0 additions & 1 deletion src/mode/surroundInputMode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeName, Mode } from './mode';
import { VSCodeVimCursorType } from './mode';
Expand Down
1 change: 0 additions & 1 deletion src/neovim/nvimUtil.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as vscode from 'vscode';
import { VimState } from '../mode/modeHandler';
Expand Down
1 change: 0 additions & 1 deletion src/textEditor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');
import { ReplaceTextTransformation } from './transformations/transformations';
import { VimState } from './mode/modeHandler';

Expand Down
1 change: 0 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as _ from 'lodash';
import * as vscode from 'vscode';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/lexer.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

// The module 'assert' provides assertion methods from node
import * as assert from 'assert';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/parser.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as assert from 'assert';
import * as parser from '../../src/cmd_line/parser';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/read.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeHandler } from '../../src/mode/modeHandler';
import { setupWorkspace, cleanUpWorkspace, assertEqualLines } from './../testUtils';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/scanner.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import * as assert from 'assert';
import { Scanner } from '../../src/cmd_line/scanner';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/sort.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeHandler } from '../../src/mode/modeHandler';
import { setupWorkspace, cleanUpWorkspace, assertEqualLines } from './../testUtils';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/subparser.close.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

// The module 'assert' provides assertion methods from node
import * as assert from 'assert';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/subparser.quit.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

// The module 'assert' provides assertion methods from node
import * as assert from 'assert';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/subparser.substitute.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

// The module 'assert' provides assertion methods from node
import * as assert from 'assert';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/subparser.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

// The module 'assert' provides assertion methods from node
import * as assert from 'assert';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/substitute.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeHandler } from '../../src/mode/modeHandler';
import { setupWorkspace, cleanUpWorkspace, assertEqualLines } from './../testUtils';
Expand Down
1 change: 0 additions & 1 deletion test/cmd_line/writequit.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
('use strict');

import { ModeHandler } from '../../src/mode/modeHandler';
import { setupWorkspace, cleanUpWorkspace, assertEqualLines, assertEqual } from './../testUtils';
Expand Down
Loading

0 comments on commit 1e51dbb

Please sign in to comment.