Skip to content

Commit

Permalink
ESLint: enable no-tabs rule (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
ficristo committed Dec 9, 2018
1 parent 74488a1 commit 4e22e10
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ module.exports = {
"no-bitwise": "error",
"no-mixed-spaces-and-tabs": "error",
"no-new-object": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"operator-linebreak": ["error", "after", {
"overrides": {
Expand Down
6 changes: 3 additions & 3 deletions src/extensions/default/CloseOthers/unittests.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ define(function (require, exports, module) {
"use strict";

var SpecRunnerUtils = brackets.getModule("spec/SpecRunnerUtils"),
FileUtils = brackets.getModule("file/FileUtils"),
FileUtils = brackets.getModule("file/FileUtils"),
CommandManager,
Commands,
// eslint-disable-next-line no-unused-vars
Expand Down Expand Up @@ -87,12 +87,12 @@ define(function (require, exports, module) {
SpecRunnerUtils.createTestWindowAndRun(this, function (w) {
testWindow = w;
$ = testWindow.$;
brackets = testWindow.brackets;
brackets = testWindow.brackets;
DocumentManager = testWindow.brackets.test.DocumentManager;
MainViewManager = testWindow.brackets.test.MainViewManager;
CommandManager = testWindow.brackets.test.CommandManager;
EditorManager = testWindow.brackets.test.EditorManager;
Dialogs = testWindow.brackets.test.Dialogs;
Dialogs = testWindow.brackets.test.Dialogs;
Commands = testWindow.brackets.test.Commands;
FileSystem = testWindow.brackets.test.FileSystem;
});
Expand Down
20 changes: 10 additions & 10 deletions src/language/HTMLTokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ define(function (require, exports, module) {
}

/*
* attributes
*/
* attributes
*/
} else if (this._state === BEFORE_ATTRIBUTE_NAME) {
if (c === ">") {
this._state = TEXT;
Expand Down Expand Up @@ -388,8 +388,8 @@ define(function (require, exports, module) {
}

/*
* declarations
*/
* declarations
*/
} else if (this._state === BEFORE_DECLARATION) {
if (c === "[") {
this._state = BEFORE_CDATA_1;
Expand All @@ -407,8 +407,8 @@ define(function (require, exports, module) {


/*
* processing instructions
*/
* processing instructions
*/
} else if (this._state === IN_PROCESSING_INSTRUCTION) {
if (c === ">") {
this._emitToken("processinginstruction");
Expand All @@ -418,8 +418,8 @@ define(function (require, exports, module) {


/*
* comments
*/
* comments
*/
} else if (this._state === BEFORE_COMMENT) {
if (c === "-") {
this._state = IN_COMMENT;
Expand Down Expand Up @@ -452,8 +452,8 @@ define(function (require, exports, module) {


/*
* cdata
*/
* cdata
*/
} else if (this._state === BEFORE_CDATA_1) {
if (c === "C") {
this._state = BEFORE_CDATA_2;
Expand Down
2 changes: 2 additions & 0 deletions test/spec/EditorCommandHandlers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ define(function (require, exports, module) {
"\n" +
"}";

/* eslint-disable no-tabs */
var tabbedContent = "function funcWithTabs() {\n" +
" var i = 0;\n" +
" var offset = 0;\n" +
"}";
/* eslint-enable no-tabs */

var myDocument, myEditor;

Expand Down

0 comments on commit 4e22e10

Please sign in to comment.