Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Commit 1330ad9

Browse files
committed
Update tslint for new lint
1 parent 3fb6bc4 commit 1330ad9

Some content is hidden

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

79 files changed

+105
-25
lines changed

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"editor.formatOnSave": true,
77
// Allow use of prettier extension solely
88
"typescript.format.enable": false,
9-
"tslint.autoFixOnSave": true,
109
// Consistent finalNewLine
1110
"files.insertFinalNewline": true,
1211
// Use of node_modules folder typescript version
@@ -15,5 +14,8 @@
1514
"**/node_modules": true,
1615
"**/bower_components": true,
1716
"**/dist": true
17+
},
18+
"editor.codeActionsOnSave": {
19+
"source.fixAll.tslint": true
1820
}
1921
}

dist/index.js

Lines changed: 4 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
SymbolInformation,
1010
SymbolKind
1111
} from "vscode-languageserver";
12-
1312
import URI from "vscode-uri";
13+
1414
import { getAllNodes } from "./completions";
1515
import { COMMENT_START } from "./consts";
1616
import { DataManager } from "./data/manager";

src/brigadier/errors.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { DiagnosticSeverity } from "vscode-languageserver/lib/main";
2+
23
import { MCFormat } from "../misc-functions";
34
import { LineRange } from "../types";
45

src/brigadier/string-reader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { CompletionItemKind } from "vscode-languageserver/lib/main";
2+
23
import { getReturned, ReturnHelper } from "../misc-functions";
34
import { typed_keys } from "../misc-functions/third_party/typed-keys";
45
import { CE, ReturnedInfo, Suggestion } from "../types";
6+
57
import { CommandErrorBuilder } from "./errors";
68

79
const EXCEPTIONS = {

src/data/cache.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
} from "../misc-functions/promisified-fs";
99
import { typed_keys } from "../misc-functions/third_party/typed-keys";
1010
import { WorkspaceSecurity } from "../types";
11+
1112
import { Cacheable, RegistriesData } from "./types";
1213

1314
if (!process.env.MCFUNCTION_CACHE_DIR) {

src/data/datapack-resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
} from "../misc-functions/promisified-fs";
1212
import { typed_keys } from "../misc-functions/third_party/typed-keys";
1313
import { ReturnSuccess } from "../types";
14+
1415
import { mapPacksInfo } from "./extractor/mapfunctions";
1516
import { loadNBT } from "./nbt/nbt-cache";
1617
import {

src/data/extractor/collect-data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
RegistriesData,
1515
RegistryNames
1616
} from "../types";
17+
1718
import { runMapFunctions } from "./mapfunctions";
1819
const readFileAsync = promisify(fs.readFile);
1920

src/data/extractor/extract-data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { execFile } from "child_process";
22
import * as path from "path";
33
import { promisify } from "util";
4+
45
import { cacheFolder } from "../cache";
56
const execFileAsync = promisify(execFile);
67

0 commit comments

Comments
 (0)