Skip to content

Commit 434cedf

Browse files
committed
Fix lint errors
1 parent 9405d0c commit 434cedf

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.eslintrc.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
root: true
22
extends: xo
3-
installedESLint: true
43
env:
54
node: true
65
es6: true
76
parserOptions:
8-
ecmaVersion: 6
7+
ecmaVersion: 8
98
sourceType: module
9+
impliedStrict: true
1010
rules:
1111
brace-style:
1212
- error
@@ -19,6 +19,9 @@ rules:
1919
- error
2020
- multi-line
2121
- consistent
22+
function-paren-newline:
23+
- warn
24+
- consistent
2225
indent:
2326
- error
2427
- 4
@@ -35,6 +38,9 @@ rules:
3538
no-implicit-coercion:
3639
- error
3740
- allow: ["!!"]
41+
no-multi-spaces:
42+
- error
43+
- ignoreEOLComments: true
3844
no-negated-condition: off
3945
no-use-before-define:
4046
- error
@@ -43,6 +49,9 @@ rules:
4349
no-unused-vars:
4450
- error
4551
- argsIgnorePattern: "^_"
52+
padded-blocks:
53+
- warn
54+
- classes: always
4655
object-property-newline:
4756
- error
4857
- allowMultiplePropertiesPerLine: true

lib/bootstrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Bootstrapper {
1616

1717
_registerProviders(context) {
1818
const disposable = this._vscode.workspace.registerTextDocumentContentProvider(
19-
this._extensionScheme, this._contentProvider);
19+
this._extensionScheme, this._contentProvider);
2020
context.subscriptions.push(disposable);
2121
}
2222

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//
1+
/* eslint-disable capitalized-comments */
22
// PLEASE DO NOT MODIFY / DELETE UNLESS YOU KNOW WHAT YOU ARE DOING
33
//
44
// This file is providing the test runner to use when running extension tests.

0 commit comments

Comments
 (0)