Skip to content

Commit 048aefa

Browse files
committed
Eliminate all tabs
1 parent 221e606 commit 048aefa

File tree

1,758 files changed

+473724
-473723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,758 files changed

+473724
-473723
lines changed

scripts/fix-tslint.ts

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,46 @@ import JSON = require("comment-json");
99
const home = path.join(__dirname, "..", "types");
1010

1111
for (const dirName of fs.readdirSync(home)) {
12-
if (dirName.startsWith(".") || dirName === "node_modules" || dirName === "scripts") {
13-
continue;
14-
}
15-
16-
const dir = path.join(home, dirName);
17-
const stats = fs.lstatSync(dir);
18-
if (stats.isDirectory()) {
19-
fixTslint(dir);
20-
// Also do it for old versions
21-
for (const subdir of fs.readdirSync(dir)) {
22-
if (/^v\d+$/.test(subdir)) {
23-
fixTslint(path.join(dir, subdir));
24-
}
25-
}
26-
}
12+
if (dirName.startsWith(".") || dirName === "node_modules" || dirName === "scripts") {
13+
continue;
14+
}
15+
16+
const dir = path.join(home, dirName);
17+
const stats = fs.lstatSync(dir);
18+
if (stats.isDirectory()) {
19+
fixTslint(dir);
20+
// Also do it for old versions
21+
for (const subdir of fs.readdirSync(dir)) {
22+
if (/^v\d+$/.test(subdir)) {
23+
fixTslint(path.join(dir, subdir));
24+
}
25+
}
26+
}
2727
}
2828

2929
function fixTslint(dir: string): void {
30-
const target = path.join(dir, 'tslint.json');
30+
const target = path.join(dir, 'tslint.json');
3131
if (!fs.existsSync(target)) return;
32-
let json = JSON.parse(fs.readFileSync(target, 'utf-8'));
33-
json = fix(json);
34-
const text = Object.keys(json).length === 1 ? '{ "extends": "dtslint/dt.json" }' : JSON.stringify(json, undefined, 4);
35-
fs.writeFileSync(target, text + "\n", "utf-8");
32+
let json = JSON.parse(fs.readFileSync(target, 'utf-8'));
33+
json = fix(json);
34+
const text = Object.keys(json).length === 1 ? '{ "extends": "dtslint/dt.json" }' : JSON.stringify(json, undefined, 4);
35+
fs.writeFileSync(target, text + "\n", "utf-8");
3636
}
3737

3838
function fix(config: any): any {
39-
const out: any = {};
40-
for (const key in config) {
41-
let value = config[key];
42-
out[key] = key === "rules" ? fixRules(value) : value;
43-
}
44-
return out;
39+
const out: any = {};
40+
for (const key in config) {
41+
let value = config[key];
42+
out[key] = key === "rules" ? fixRules(value) : value;
43+
}
44+
return out;
4545
}
4646

4747
function fixRules(rules: any): any {
48-
const out: any = {};
49-
for (const key in rules) {
50-
out[key] = rules[key];
51-
}
52-
return out;
48+
const out: any = {};
49+
for (const key in rules) {
50+
out[key] = rules[key];
51+
}
52+
return out;
5353
}
5454

scripts/generate-tsconfigs.ts

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,47 @@ import * as path from 'path';
88
const home = path.join(__dirname, "..", "types");
99

1010
for (const dirName of fs.readdirSync(home)) {
11-
if (dirName.startsWith(".") || dirName === "node_modules" || dirName === "scripts") {
12-
continue;
13-
}
14-
15-
const dir = path.join(home, dirName);
16-
const stats = fs.lstatSync(dir);
17-
if (stats.isDirectory()) {
18-
fixTsconfig(dir);
19-
// Also do it for old versions
20-
for (const subdir of fs.readdirSync(dir)) {
21-
if (/^v\d+$/.test(subdir)) {
22-
fixTsconfig(path.join(dir, subdir));
23-
}
24-
}
25-
}
11+
if (dirName.startsWith(".") || dirName === "node_modules" || dirName === "scripts") {
12+
continue;
13+
}
14+
15+
const dir = path.join(home, dirName);
16+
const stats = fs.lstatSync(dir);
17+
if (stats.isDirectory()) {
18+
fixTsconfig(dir);
19+
// Also do it for old versions
20+
for (const subdir of fs.readdirSync(dir)) {
21+
if (/^v\d+$/.test(subdir)) {
22+
fixTsconfig(path.join(dir, subdir));
23+
}
24+
}
25+
}
2626
}
2727

2828
function fixTsconfig(dir: string): void {
29-
const target = path.join(dir, 'tsconfig.json');
30-
let json = JSON.parse(fs.readFileSync(target, 'utf-8'));
31-
json = fix(json);
32-
fs.writeFileSync(target, JSON.stringify(json, undefined, 4), "utf-8");
29+
const target = path.join(dir, 'tsconfig.json');
30+
let json = JSON.parse(fs.readFileSync(target, 'utf-8'));
31+
json = fix(json);
32+
fs.writeFileSync(target, JSON.stringify(json, undefined, 4), "utf-8");
3333
}
3434

3535
function fix(config: any): any {
36-
const out: any = {};
37-
for (const key in config) {
38-
let value = config[key];
39-
if (key === "compilerOptions") {
40-
value = fixCompilerOptions(value);
41-
}
42-
out[key] = value;
43-
}
44-
return out;
36+
const out: any = {};
37+
for (const key in config) {
38+
let value = config[key];
39+
if (key === "compilerOptions") {
40+
value = fixCompilerOptions(value);
41+
}
42+
out[key] = value;
43+
}
44+
return out;
4545
}
4646

4747
function fixCompilerOptions(config: any): any {
48-
const out: any = {};
49-
for (const key in config) {
50-
out[key] = config[key];
51-
// Do something interesting here
52-
}
53-
return out;
48+
const out: any = {};
49+
for (const key in config) {
50+
out[key] = config[key];
51+
// Do something interesting here
52+
}
53+
return out;
5454
}

types/acc-wizard/acc-wizard-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ function testWithOptions() {
3333
};
3434

3535
$('#test').accwizard(options);
36-
}
36+
}

types/ace/test/document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,4 +249,4 @@ const aceDocumentTests = {
249249
doc.setValue(doc.getValue());
250250
assert.equal("1\n2", doc.getValue());
251251
}
252-
};
252+
};

types/ace/test/editor1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ const aceEditor1Tests = {
148148
next();
149149
}, 600);
150150
}
151-
};
151+
};

types/ace/test/editor_navigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,4 @@ const aceEditorNavigationTests = {
113113
editor.navigateDown();
114114
assert.position(editor.getCursorPosition(), 1, 7);
115115
}
116-
};
116+
};

types/ace/test/editor_text_edit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,4 +495,4 @@ const aceEditorTextEditTests = {
495495
assert.equal(session.getValue(), ["AJAX", "dot", "ORG"].join("\n"));
496496
assert.position(editor.getCursorPosition(), 1, 0);
497497
}
498-
};
498+
};

types/add2home/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ declare var addToHome: {
1212
close: () => void;
1313
/** Reset the local and session storages so the popup will show again (for automatic mode - has no affect if manually opening the popup). */
1414
reset: () => void;
15-
};
15+
};

types/adone/glosses/collections/byte_array.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ declare namespace adone.collection {
680680
* Resizes this ByteArray to be backed by a buffer of at least the given capacity.
681681
* Will do nothing if already that large or larger.
682682
*
683-
* @param capacity Capacity required
683+
* @param capacity Capacity required
684684
*/
685685
resize(capacity: number): this;
686686

types/adone/glosses/compressors.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ declare namespace adone {
648648
blockSize?: number;
649649

650650
/**
651-
* Timeout for a single encoding operation in multi-threading mode
651+
* Timeout for a single encoding operation in multi-threading mode
652652
*/
653653
timeout?: number;
654654

0 commit comments

Comments
 (0)