Skip to content

Commit

Permalink
Merge pull request #2 from MatrixAI/json
Browse files Browse the repository at this point in the history
Integrating JSON serialization and deserialization
  • Loading branch information
CMCDragonkai authored May 9, 2022
2 parents ffe1ea6 + bec65f6 commit f9ab31c
Show file tree
Hide file tree
Showing 15 changed files with 6,709 additions and 50 deletions.
36 changes: 32 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"es2021": true,
"node": true,
"jest": true
},
Expand All @@ -18,8 +18,8 @@
"import"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
"project": "tsconfig.json",
"sourceType": "module"
},
"rules": {
"linebreak-style": ["error", "unix"],
Expand All @@ -31,6 +31,18 @@
"no-useless-escape": 0,
"no-console": "error",
"eqeqeq": ["error", "smart"],
"spaced-comment": [
"warn",
"always",
{
"line": {
"exceptions": ["-"]
},
"block": {
"exceptions": ["*"]
}
}
],
"capitalized-comments": [
"warn",
"always",
Expand Down Expand Up @@ -79,7 +91,22 @@
],
"@typescript-eslint/no-inferrable-types": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-this-alias": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/consistent-type-imports": ["error"],
"@typescript-eslint/consistent-type-exports": ["error"],
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": ["error"],
"@typescript-eslint/no-floating-promises": ["error", {
"ignoreVoid": true,
"ignoreIIFE": true
}],
"@typescript-eslint/no-misused-promises": ["error", {
"checksVoidReturn": false
}],
"@typescript-eslint/await-thenable": ["error"],
"@typescript-eslint/naming-convention": [
"error",
{
Expand All @@ -90,13 +117,14 @@
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
"selector": "parameter",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allowSingleOrDouble"
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/assets/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/assets/search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions docs/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,13 @@ footer .tsd-legend {

.tsd-flag {
display: inline-block;
padding: 1px 5px;
padding: 0.25em 0.4em;
border-radius: 4px;
color: var(--color-comment-tag-text);
background-color: var(--color-comment-tag);
text-indent: 0;
font-size: 14px;
font-size: 75%;
line-height: 1;
font-weight: normal;
}

Expand Down
Loading

0 comments on commit f9ab31c

Please sign in to comment.