Skip to content

Commit 55e0004

Browse files
authored
Merge pull request #3 from MatrixAI/node16anderrors
Upgrading to Node 16 and upgrading @matrixai/errors to 1.1.0
2 parents 7bae943 + 92da66d commit 55e0004

39 files changed

Lines changed: 9937 additions & 8864 deletions

.eslintrc

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"env": {
33
"browser": true,
44
"commonjs": true,
5-
"es6": true,
5+
"es2021": true,
66
"node": true,
77
"jest": true
88
},
@@ -11,23 +11,33 @@
1111
"eslint:recommended",
1212
"plugin:@typescript-eslint/recommended",
1313
"plugin:prettier/recommended",
14-
"prettier",
15-
"prettier/@typescript-eslint"
14+
"prettier"
1615
],
1716
"parserOptions": {
18-
"sourceType": "module",
19-
"ecmaVersion": 2020
17+
"project": "tsconfig.json",
18+
"sourceType": "module"
2019
},
2120
"rules": {
2221
"linebreak-style": ["error", "unix"],
2322
"no-empty": 1,
24-
"no-undef": 1,
2523
"no-useless-catch": 1,
2624
"no-prototype-builtins": 1,
2725
"no-constant-condition": 0,
2826
"no-useless-escape": 0,
2927
"no-console": "error",
3028
"eqeqeq": ["error", "smart"],
29+
"spaced-comment": [
30+
"warn",
31+
"always",
32+
{
33+
"line": {
34+
"exceptions": ["-"]
35+
},
36+
"block": {
37+
"exceptions": ["*"]
38+
}
39+
}
40+
],
3141
"capitalized-comments": [
3242
"warn",
3343
"always",
@@ -48,7 +58,22 @@
4858
],
4959
"@typescript-eslint/no-inferrable-types": 0,
5060
"@typescript-eslint/no-non-null-assertion": 0,
61+
"@typescript-eslint/no-this-alias": 0,
5162
"@typescript-eslint/no-var-requires": 0,
63+
"@typescript-eslint/no-empty-function": 0,
64+
"@typescript-eslint/no-empty-interface": 0,
65+
"@typescript-eslint/consistent-type-imports": ["error"],
66+
"@typescript-eslint/consistent-type-exports": ["error"],
67+
"no-throw-literal": "off",
68+
"@typescript-eslint/no-throw-literal": ["error"],
69+
"@typescript-eslint/no-floating-promises": ["error", {
70+
"ignoreVoid": true,
71+
"ignoreIIFE": true
72+
}],
73+
"@typescript-eslint/no-misused-promises": ["error", {
74+
"checksVoidReturn": false
75+
}],
76+
"@typescript-eslint/await-thenable": ["error"],
5277
"@typescript-eslint/naming-convention": [
5378
"error",
5479
{
@@ -59,13 +84,14 @@
5984
},
6085
{
6186
"selector": "variable",
62-
"format": ["camelCase", "UPPER_CASE"],
87+
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
6388
"leadingUnderscore": "allow",
6489
"trailingUnderscore": "allowSingleOrDouble"
6590
},
6691
{
6792
"selector": "parameter",
6893
"format": ["camelCase"],
94+
"leadingUnderscore": "allow",
6995
"trailingUnderscore": "allowSingleOrDouble"
7096
},
7197
{

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
/tmp
1313
/docs
1414
/benches
15+
/dist/tsbuildinfo

benches/WorkerManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async function main() {
119119
}
120120

121121
if (require.main === module) {
122-
main();
122+
void main();
123123
}
124124

125125
export default main;

benches/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ async function main(): Promise<void> {
1717
);
1818
}
1919

20-
main();
20+
void main();

docs/.nojekyll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.

0 commit comments

Comments
 (0)