Skip to content

Commit 92d3de2

Browse files
committed
Update deps and code style
1 parent 91b9c5d commit 92d3de2

34 files changed

+3481
-2727
lines changed

.eslintrc.js

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"project": "tsconfig.json",
9+
"sourceType": "module"
10+
},
11+
"plugins": [
12+
"@typescript-eslint"
13+
],
14+
"extends": [
15+
"eslint:recommended",
16+
"plugin:@typescript-eslint/recommended",
17+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
18+
],
19+
"rules": {
20+
"@typescript-eslint/adjacent-overload-signatures": "warn",
21+
"@typescript-eslint/array-type": [
22+
"warn",
23+
{
24+
"default": "array"
25+
}
26+
],
27+
"@typescript-eslint/naming-convention": [
28+
"warn",
29+
{
30+
"selector": "enumMember",
31+
"format": ["PascalCase"]
32+
}
33+
],
34+
"@typescript-eslint/consistent-type-assertions": "warn",
35+
"@typescript-eslint/consistent-type-definitions": "warn",
36+
"@typescript-eslint/indent": "warn",
37+
"@typescript-eslint/member-delimiter-style": [
38+
"warn",
39+
{
40+
"multiline": {
41+
"delimiter": "semi",
42+
"requireLast": true
43+
},
44+
"singleline": {
45+
"delimiter": "semi",
46+
"requireLast": false
47+
}
48+
}
49+
],
50+
"@typescript-eslint/no-inferrable-types": "warn",
51+
"@typescript-eslint/no-unused-expressions": "off",
52+
"@typescript-eslint/no-var-requires": "off",
53+
"@typescript-eslint/prefer-for-of": "warn",
54+
"@typescript-eslint/prefer-namespace-keyword": "warn",
55+
"@typescript-eslint/quotes": [
56+
"warn",
57+
"single",
58+
{
59+
"avoidEscape": true
60+
}
61+
],
62+
"@typescript-eslint/semi": [
63+
"warn",
64+
"never"
65+
],
66+
"@typescript-eslint/triple-slash-reference": "warn",
67+
"@typescript-eslint/type-annotation-spacing": "warn",
68+
"arrow-body-style": "warn",
69+
"arrow-parens": [
70+
"warn",
71+
"always"
72+
],
73+
"brace-style": [
74+
"warn",
75+
"stroustrup"
76+
],
77+
"camelcase": "warn",
78+
"comma-dangle": [
79+
"warn",
80+
"always-multiline"
81+
],
82+
"curly": [
83+
"warn",
84+
"multi-line"
85+
],
86+
"eqeqeq": [
87+
"warn",
88+
"smart"
89+
],
90+
"id-match": "warn",
91+
"sort-imports": "warn",
92+
"new-parens": "warn",
93+
"no-eval": "warn",
94+
"no-irregular-whitespace": "warn",
95+
"no-multiple-empty-lines": [
96+
"warn",
97+
{
98+
"max": 1
99+
}
100+
],
101+
"no-redeclare": "warn",
102+
"no-throw-literal": "warn",
103+
"no-trailing-spaces": "warn",
104+
"no-underscore-dangle": "warn",
105+
"no-unsafe-finally": "warn",
106+
"no-var": "warn",
107+
"one-var": [
108+
"warn",
109+
"never"
110+
],
111+
"prefer-const": "warn",
112+
"prefer-template": "warn",
113+
"quote-props": [
114+
"warn",
115+
"as-needed"
116+
],
117+
"radix": "warn",
118+
"space-before-function-paren": [
119+
"warn",
120+
{
121+
"anonymous": "never",
122+
"named": "never",
123+
"asyncArrow": "always"
124+
}
125+
],
126+
"spaced-comment": [
127+
"warn",
128+
"always",
129+
{
130+
"markers": [
131+
"/"
132+
]
133+
}
134+
],
135+
"use-isnan": "warn"
136+
}
137+
};

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist
22
out
33
node_modules
4+
.vscode-test

.vscode/launch.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@
77
"request": "launch",
88
"runtimeExecutable": "${execPath}",
99
"args": [ "--extensionDevelopmentPath=${workspaceFolder}" ],
10+
"cwd": "${workspaceFolder}",
1011
"outFiles": [ "${workspaceFolder}/dist/**/*.js" ],
11-
"stopOnEntry": false,
12-
"sourceMaps": true,
12+
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
13+
"smartStep": true,
14+
"sourceMaps": true
1315
},
1416
{
1517
"name": "Watch and Launch Git Stash",
1618
"type": "extensionHost",
1719
"request": "launch",
1820
"runtimeExecutable": "${execPath}",
1921
"args": [ "--extensionDevelopmentPath=${workspaceFolder}" ],
22+
"cwd": "${workspaceFolder}",
2023
"outFiles": [ "${workspaceFolder}/dist/**/*.js" ],
24+
"skipFiles": ["<node_internals>/**", "**/node_modules/**", "**/resources/app/out/vs/**"],
2125
"smartStep": true,
2226
"sourceMaps": true,
2327
"preLaunchTask": "npm: webpack-dev"
@@ -28,8 +32,9 @@
2832
"request": "launch",
2933
"runtimeExecutable": "${execPath}",
3034
"args": [
35+
"--disable-extensions",
3136
"--extensionDevelopmentPath=${workspaceFolder}",
32-
"--extensionTestsPath=${workspaceFolder}/out/test"
37+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
3338
],
3439
"stopOnEntry": false,
3540
"sourceMaps": true,

0 commit comments

Comments
 (0)