Skip to content

Commit 0de35ce

Browse files
committed
Build updates
1 parent 2d3938c commit 0de35ce

16 files changed

+8760
-5368
lines changed

Diff for: .devcontainer/devcontainer.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"extensions": [
55
"andys8.jest-snippets",
66
"dbaeumer.vscode-eslint",
7+
"editorconfig.editorconfig",
78
"esbenp.prettier-vscode",
89
"firsttris.vscode-jest-runner",
910
"hbenl.vscode-test-explorer",

Diff for: .editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
root = true
33

44
[*]
5+
charset = utf-8
56
indent_style = space
67
indent_size = 2
78
end_of_line = lf
8-
charset = utf-8
99
trim_trailing_whitespace = true
1010
insert_final_newline = true

Diff for: .eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
dist
3+
4+
samples

Diff for: .eslintrc.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
module.exports = {
2+
root: true,
23
env: {
34
browser: true,
45
es6: true,
56
node: true
67
},
78
extends: [
89
"eslint:recommended",
10+
'plugin:import/typescript',
11+
"plugin:@typescript-eslint/eslint-recommended",
912
"plugin:@typescript-eslint/recommended",
1013
"plugin:@typescript-eslint/recommended-requiring-type-checking",
1114
],
1215
globals: {
13-
Atomics: "readonly",
14-
SharedArrayBuffer: "readonly"
16+
MutationObserver: 'readonly',
17+
SharedArrayBuffer: 'readonly',
18+
Atomics: 'readonly',
19+
BigInt: 'readonly',
20+
BigInt64Array: 'readonly',
21+
BigUint64Array: 'readonly',
1522
},
1623
parser: "@typescript-eslint/parser",
1724
parserOptions: {
18-
ecmaVersion: 2018,
25+
ecmaVersion: 2020,
1926
sourceType: "module",
20-
project: [
21-
"./tsconfig.json",
22-
"./packages/*/tsconfig.json",
23-
],
24-
tsconfigRootDir: __dirname,
25-
warnOnUnsupportedTypeScriptVersion: false,
26-
EXPERIMENTAL_useSourceOfProjectReferenceRedirect: true,
27+
project: ["./tsconfig.json"],
28+
tsconfigRootDir: __dirname
2729
},
2830
plugins: [
29-
"eslint-plugin",
3031
"@typescript-eslint",
31-
"jest",
3232
"import",
33-
"eslint-comments"
33+
"jest",
3434
],
3535
ignorePatterns: [
36-
"node_modules",
36+
"node_modules"
3737
],
3838
rules: {
3939
"@typescript-eslint/explicit-module-boundary-types": "off",

Diff for: .vscode/extensions.json

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"recommendations": [
33
"andys8.jest-snippets",
44
"dbaeumer.vscode-eslint",
5+
"editorconfig.editorconfig",
56
"esbenp.prettier-vscode",
67
"firsttris.vscode-jest-runner",
78
"hbenl.vscode-test-explorer",

Diff for: .vscode/settings.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@
1313
"prettier.eslintIntegration": true,
1414
"typescript.tsdk": "./node_modules/typescript/lib",
1515
"cSpell.words": [
16-
"Exceptionless",
17-
"angularjs",
18-
"bootstrapcdn",
19-
"configversion",
20-
"lage",
21-
"maxcdn",
22-
"tracekit",
23-
"tsproject"
16+
"Exceptionless",
17+
"angularjs",
18+
"bootstrapcdn",
19+
"configversion",
20+
"eslintignore",
21+
"lage",
22+
"maxcdn",
23+
"tracekit",
24+
"tsproject",
25+
"webcompat"
2426
],
2527
"eslint.validate": [
2628
"javascript",

Diff for: .vscode/tasks.json

+22-56
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,30 @@
11
{
2-
"version": "0.1.0",
3-
"command": "gulp",
4-
"isShellCommand": true,
5-
"args": [
6-
"--no-color"
7-
],
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
85
"tasks": [
96
{
10-
"taskName": "build",
11-
"args": [],
12-
"isBuildCommand": true,
13-
"problemMatcher": {
14-
// The problem is owned by the cpp language service.
15-
"owner": "typescript",
16-
// The file name for reported problems is relative to the opened folder.
17-
"fileLocation": [
18-
"relative",
19-
"${workspaceRoot}"
20-
],
21-
// The actual pattern to match problems in the output.
22-
"pattern": {
23-
// The regular expression. Example to match: helloWorld.c:5:3: warning: implicit declaration of function ‘prinft’ [-Wimplicit-function-declaration]
24-
"regexp": "\\[\\d\\d:\\d\\d:\\d\\d\\] \\[gulp-tslint\\] error \\([^)]+\\) ([^\\[]+)\\[(\\d+), (\\d+)\\]: (.+)$",
25-
// The first match group matches the file name which is relative.
26-
"file": 1,
27-
// The second match group matches the line on which the problem occurred.
28-
"line": 2,
29-
// The third match group matches the column at which the problem occurred.
30-
"column": 3,
31-
// The fifth match group matches the message.
32-
"message": 4
33-
}
34-
}
7+
"type": "npm",
8+
"script": "clean",
359
},
3610
{
37-
"taskName": "test",
38-
"args": [],
39-
"isBuildCommand": true,
40-
"problemMatcher": {
41-
// The problem is owned by the cpp language service.
42-
"owner": "typescript",
43-
// The file name for reported problems is relative to the opened folder.
44-
"fileLocation": [
45-
"relative",
46-
"${workspaceRoot}"
47-
],
48-
// The actual pattern to match problems in the output.
49-
"pattern": {
50-
// The regular expression. Example to match: helloWorld.c:5:3: warning: implicit declaration of function ‘prinft’ [-Wimplicit-function-declaration]
51-
"regexp": "\\[\\d\\d:\\d\\d:\\d\\d\\] \\[gulp-tslint\\] error \\([^)]+\\) ([^\\[]+)\\[(\\d+), (\\d+)\\]: (.+)$",
52-
// The first match group matches the file name which is relative.
53-
"file": 1,
54-
// The second match group matches the line on which the problem occurred.
55-
"line": 2,
56-
// The third match group matches the column at which the problem occurred.
57-
"column": 3,
58-
// The fifth match group matches the message.
59-
"message": 4
60-
}
61-
}
11+
"type": "npm",
12+
"script": "build",
13+
"group": {
14+
"kind": "build",
15+
"isDefault": true
16+
},
17+
"problemMatcher": "$tsc"
18+
},
19+
{
20+
"type": "npm",
21+
"script": "test",
22+
"group": "test"
23+
},
24+
{
25+
"type": "npm",
26+
"script": "lint",
27+
"problemMatcher": "$eslint-stylish"
6228
}
6329
]
6430
}

0 commit comments

Comments
 (0)