Skip to content

Commit f9ab31c

Browse files
authored
Merge pull request #2 from MatrixAI/json
Integrating JSON serialization and deserialization
2 parents ffe1ea6 + bec65f6 commit f9ab31c

File tree

15 files changed

+6709
-50
lines changed

15 files changed

+6709
-50
lines changed

.eslintrc

Lines changed: 32 additions & 4 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
},
@@ -18,8 +18,8 @@
1818
"import"
1919
],
2020
"parserOptions": {
21-
"sourceType": "module",
22-
"ecmaVersion": 2020
21+
"project": "tsconfig.json",
22+
"sourceType": "module"
2323
},
2424
"rules": {
2525
"linebreak-style": ["error", "unix"],
@@ -31,6 +31,18 @@
3131
"no-useless-escape": 0,
3232
"no-console": "error",
3333
"eqeqeq": ["error", "smart"],
34+
"spaced-comment": [
35+
"warn",
36+
"always",
37+
{
38+
"line": {
39+
"exceptions": ["-"]
40+
},
41+
"block": {
42+
"exceptions": ["*"]
43+
}
44+
}
45+
],
3446
"capitalized-comments": [
3547
"warn",
3648
"always",
@@ -79,7 +91,22 @@
7991
],
8092
"@typescript-eslint/no-inferrable-types": 0,
8193
"@typescript-eslint/no-non-null-assertion": 0,
94+
"@typescript-eslint/no-this-alias": 0,
8295
"@typescript-eslint/no-var-requires": 0,
96+
"@typescript-eslint/no-empty-function": 0,
97+
"@typescript-eslint/no-empty-interface": 0,
98+
"@typescript-eslint/consistent-type-imports": ["error"],
99+
"@typescript-eslint/consistent-type-exports": ["error"],
100+
"no-throw-literal": "off",
101+
"@typescript-eslint/no-throw-literal": ["error"],
102+
"@typescript-eslint/no-floating-promises": ["error", {
103+
"ignoreVoid": true,
104+
"ignoreIIFE": true
105+
}],
106+
"@typescript-eslint/no-misused-promises": ["error", {
107+
"checksVoidReturn": false
108+
}],
109+
"@typescript-eslint/await-thenable": ["error"],
83110
"@typescript-eslint/naming-convention": [
84111
"error",
85112
{
@@ -90,13 +117,14 @@
90117
},
91118
{
92119
"selector": "variable",
93-
"format": ["camelCase", "UPPER_CASE"],
120+
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
94121
"leadingUnderscore": "allow",
95122
"trailingUnderscore": "allowSingleOrDouble"
96123
},
97124
{
98125
"selector": "parameter",
99126
"format": ["camelCase"],
127+
"leadingUnderscore": "allow",
100128
"trailingUnderscore": "allowSingleOrDouble"
101129
},
102130
{

docs/assets/main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/style.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,12 +766,13 @@ footer .tsd-legend {
766766

767767
.tsd-flag {
768768
display: inline-block;
769-
padding: 1px 5px;
769+
padding: 0.25em 0.4em;
770770
border-radius: 4px;
771771
color: var(--color-comment-tag-text);
772772
background-color: var(--color-comment-tag);
773773
text-indent: 0;
774-
font-size: 14px;
774+
font-size: 75%;
775+
line-height: 1;
775776
font-weight: normal;
776777
}
777778

0 commit comments

Comments
 (0)