Skip to content

Commit 6bc9ed0

Browse files
committed
Fix linter errors
1 parent f4994fc commit 6bc9ed0

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

src/extension.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async function cache(): Promise<void> {
7979
}
8080

8181
function provideCompletionItemsGenerator(languageSelector: string, classMatchRegex: RegExp,
82-
classPrefix: string = "", splitChar: string = " ") {
82+
classPrefix: string = "", splitChar: string = " ") {
8383
return languages.registerCompletionItemProvider(languageSelector, {
8484
provideCompletionItems(document: TextDocument, position: Position): CompletionItem[] {
8585
const start: Position = new Position(position.line, 0);
@@ -147,7 +147,7 @@ export async function activate(context: ExtensionContext): Promise<void> {
147147
if (e.affectsConfiguration("html-css-class-completion.enableEmmetSupport")) {
148148
const isEnabled = workspace.getConfiguration()
149149
.get<boolean>("html-css-class-completion.enableEmmetSupport");
150-
isEnabled ? enableEmmetSupport(emmetDisposables) : disableEmmetSupport(emmetDisposables);
150+
isEnabled ? enableEmmetSupport(emmetDisposables) : disableEmmetSupport(emmetDisposables);
151151
}
152152
} catch (err) {
153153
err = new VError(err, "Failed to automatically reload the extension after the configuration change");
@@ -186,7 +186,9 @@ export async function activate(context: ExtensionContext): Promise<void> {
186186
});
187187

188188
// HTML based extensions
189-
["html", "django-html", "razor", "php", "blade", "vue", "twig", "markdown", "erb", "handlebars", "ejs"].forEach((extension) => {
189+
["html", "django-html", "razor", "php", "blade", "vue",
190+
"twig", "markdown", "erb", "handlebars", "ejs",
191+
].forEach((extension) => {
190192
context.subscriptions.push(provideCompletionItemsGenerator(extension, /class=["|']([\w- ]*$)/));
191193
});
192194

test/extension.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
//
55

66
// The module 'assert' provides assertion methods from node
7-
import * as assert from 'assert';
7+
import * as assert from "assert";
88

99
// You can import and use all API from the 'vscode' module
1010
// as well as import your extension to test it
11-
import * as vscode from 'vscode';
12-
import * as myExtension from '../src/extension';
11+
import * as vscode from "vscode";
12+
import * as myExtension from "../src/extension";
1313

1414
// Defines a Mocha test suite to group tests of similar kind together
1515
suite("Extension Tests", () => {
@@ -19,4 +19,4 @@ suite("Extension Tests", () => {
1919
assert.equal(-1, [1, 2, 3].indexOf(5));
2020
assert.equal(-1, [1, 2, 3].indexOf(0));
2121
});
22-
});
22+
});

test/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
// to report the results back to the caller. When the tests are finished, return
1111
// a possible error to the callback or null if none.
1212

13-
var testRunner = require('vscode/lib/testrunner');
13+
let testRunner = require("vscode/lib/testrunner");
1414

1515
// You can directly control Mocha options by uncommenting the following lines
1616
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for more info
1717
testRunner.configure({
18-
ui: 'tdd', // the TDD UI is being used in extension.test.ts (suite, test, etc.)
19-
useColors: true // colored output from test results
18+
ui: "tdd", // the TDD UI is being used in extension.test.ts (suite, test, etc.)
19+
useColors: true, // colored output from test results
2020
});
2121

22-
module.exports = testRunner;
22+
module.exports = testRunner;

tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
],
66
"jsRules": {},
77
"rules": {
8-
"no-console": false
8+
"no-console": false,
9+
"align": false
910
},
1011
"rulesDirectory": []
1112
}

0 commit comments

Comments
 (0)