Skip to content

Commit 7bbe557

Browse files
committed
Refactor from webmc to deepslate + use rollup and eslint
1 parent 53f8b49 commit 7bbe557

Some content is hidden

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

43 files changed

+6427
-13676
lines changed

.eslintrc.js

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"tsconfigRootDir": __dirname,
9+
"project": "./tsconfig.eslint.json"
10+
},
11+
"plugins": [
12+
"@typescript-eslint"
13+
],
14+
"ignorePatterns": [
15+
"**/out",
16+
"**/res",
17+
"**/node_modules",
18+
".eslintrc.js"
19+
],
20+
"rules": {
21+
"@typescript-eslint/consistent-type-imports": [
22+
"warn",
23+
{
24+
"prefer": "type-imports"
25+
}
26+
],
27+
"@typescript-eslint/prefer-readonly": "warn",
28+
"@typescript-eslint/quotes": [
29+
"warn",
30+
"single",
31+
{
32+
"avoidEscape": true
33+
}
34+
],
35+
"@typescript-eslint/semi": [
36+
"warn",
37+
"never"
38+
],
39+
"@typescript-eslint/indent": [
40+
"warn",
41+
"tab"
42+
],
43+
"@typescript-eslint/member-delimiter-style": [
44+
"warn",
45+
{
46+
"multiline": {
47+
"delimiter": "comma",
48+
"requireLast": true
49+
},
50+
"singleline": {
51+
"delimiter": "comma",
52+
"requireLast": false
53+
},
54+
"overrides": {
55+
"interface": {
56+
"multiline": {
57+
"delimiter": undefined
58+
}
59+
}
60+
}
61+
}
62+
],
63+
"comma-dangle": "off",
64+
"@typescript-eslint/comma-dangle": ["warn", "always-multiline"],
65+
"indent": "off",
66+
"eol-last": "warn",
67+
"no-fallthrough": "warn",
68+
"prefer-const": "warn",
69+
"prefer-object-spread": "warn",
70+
"quote-props": [
71+
"warn",
72+
"as-needed"
73+
]
74+
}
75+
}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ out/
22
node_modules/
33
.vscode-test/
44
*.vsix
5-
/editor/res/generated/
5+
/res/generated/

.vscode/settings.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"[typescript]": {
3+
"editor.codeActionsOnSave": {
4+
"source.organizeImports": true,
5+
"source.fixAll.eslint": true
6+
}
7+
},
8+
"[javascript]": {
9+
"editor.codeActionsOnSave": {
10+
"source.organizeImports": true,
11+
"source.fixAll.eslint": true
12+
}
13+
},
14+
"editor.insertSpaces": false
15+
}

.vscode/tasks.json

+9-13
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,22 @@
66
{
77
"label": "Watch Extension",
88
"type": "npm",
9-
"script": "watch",
10-
"problemMatcher": "$tsc-watch",
9+
"script": "dev",
1110
"isBackground": true,
1211
"presentation": {
1312
"reveal": "never"
1413
},
15-
"dependsOn": "Watch Editor",
1614
"group": {
1715
"kind": "build",
1816
"isDefault": true
19-
}
20-
},
21-
{
22-
"label": "Watch Editor",
23-
"type": "npm",
24-
"script": "watchEditor",
25-
"problemMatcher": "$ts-webpack-watch",
26-
"isBackground": true,
27-
"presentation": {
28-
"reveal": "never"
17+
},
18+
"problemMatcher": {
19+
"base": "$tsc-watch",
20+
"background": {
21+
"activeOnStart": true,
22+
"beginsPattern": "^bundles ",
23+
"endsPattern": "waiting for changes\\.\\.\\.$"
24+
}
2925
}
3026
}
3127
]

0 commit comments

Comments
 (0)