Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 626c552

Browse files
authored
Merge pull request #20 from Apexrsq/refactor/dev
Title: Refactor project using TypeScript
2 parents 37bfeae + 00fc86c commit 626c552

Some content is hidden

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

101 files changed

+11751
-5882
lines changed

.babelrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[Makefile]
16+
indent_style = tab

.env.tpl.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
_tests_/*.js
2+
lib/*.js
3+
4+
env.js
5+
src/dataTypes/**
6+
7+
test/*

.eslintrc.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true,
5+
"node": true,
6+
"jest": true
7+
},
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"parserOptions": {
14+
"ecmaVersion": 2018,
15+
"sourceType": "module"
16+
},
17+
"plugins": ["@typescript-eslint"],
18+
"globals": {
19+
"Atomics": "readonly",
20+
"SharedArrayBuffer": "readonly",
21+
"require": false,
22+
"export": false,
23+
"import": false
24+
},
25+
"rules": {
26+
"generator-star-spacing": [0],
27+
"camelcase": [0],
28+
"consistent-return": [0],
29+
"global-require": [0],
30+
"import/prefer-default-export": [0],
31+
"no-underscore-dangle": [0],
32+
"no-else-return": [0],
33+
"no-restricted-syntax": [0],
34+
"no-use-before-define": [0],
35+
"no-nested-ternary": [0],
36+
"arrow-body-style": [0],
37+
"import/extensions": [0],
38+
"max-len": [
39+
2,
40+
{
41+
"code": 200,
42+
"tabWidth": 2,
43+
"ignorePattern": "^\\s*[<svg|<path].+>",
44+
"ignoreUrls": true,
45+
"ignoreTemplateLiterals": true,
46+
"ignoreRegExpLiterals": true,
47+
"ignoreComments": true
48+
}
49+
],
50+
"no-bitwise": [0],
51+
"no-cond-assign": [0],
52+
"import/no-unresolved": [0],
53+
"require-yield": [0],
54+
"no-constant-condition": [0],
55+
"no-console": [0],
56+
"no-script-url": [0],
57+
"no-param-reassign": [0],
58+
"no-restricted-properties": [0],
59+
"no-plusplus": [2, { "allowForLoopAfterthoughts": true }],
60+
"object-curly-newline": [0],
61+
"@typescript-eslint/no-unused-vars": 1
62+
}
63+
}

.gitignore

Lines changed: 51 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,64 @@
1-
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
1+
# Compiled source #
2+
###################
3+
*.com
4+
*.class
5+
*.dll
6+
*.exe
7+
*.o
8+
*.so
29

3-
# Created by https://www.gitignore.io/api/macos,visualstudiocode,git
4-
# Edit at https://www.gitignore.io/?templates=macos,visualstudiocode,git
10+
# Packages #
11+
############
12+
# it's better to unpack these files and commit the raw source
13+
# git has its own built in compression methods
14+
*.7z
15+
*.dmg
16+
*.gz
17+
*.iso
18+
*.jar
19+
*.rar
20+
*.tar
21+
*.zip
522

6-
### Git ###
7-
# Created by git for backups. To disable backups in Git:
8-
# $ git config --global mergetool.keepBackup false
9-
*.orig
23+
# Logs and databases #
24+
######################
25+
*.log
26+
*.sql
27+
*.sqlite
1028

11-
# Created by git when using merge tools for conflicts
12-
*.BACKUP.*
13-
*.BASE.*
14-
*.LOCAL.*
15-
*.REMOTE.*
16-
*_BACKUP_*.txt
17-
*_BASE_*.txt
18-
*_LOCAL_*.txt
19-
*_REMOTE_*.txt
20-
21-
### macOS ###
22-
# General
29+
# OS generated files #
30+
######################
2331
.DS_Store
24-
.AppleDouble
25-
.LSOverride
26-
27-
# Icon must end with two \r
28-
Icon
29-
30-
# Thumbnails
32+
.DS_Store?
3133
._*
32-
33-
# Files that might appear in the root of a volume
34-
.DocumentRevisions-V100
35-
.fseventsd
3634
.Spotlight-V100
37-
.TemporaryItems
3835
.Trashes
39-
.VolumeIcon.icns
40-
.com.apple.timemachine.donotpresent
36+
ehthumbs.db
37+
Thumbs.db
38+
/Desktop
39+
40+
# Secrets #
41+
###########
42+
.secret
4143

42-
# Directories potentially created on remote AFP share
43-
.AppleDB
44-
.AppleDesktop
45-
Network Trash Folder
46-
Temporary Items
47-
.apdisk
44+
# Node #
45+
########
46+
node_modules
4847

49-
### VisualStudioCode ###
50-
.vscode/*
51-
!.vscode/settings.json
52-
!.vscode/tasks.json
53-
!.vscode/launch.json
54-
!.vscode/extensions.json
48+
# Yarn #
49+
########
50+
*.lock
5551

56-
### VisualStudioCode Patch ###
57-
# Ignore all local history of files
58-
.history
52+
# VSCode #
53+
##########
54+
.vscode
5955

60-
# End of https://www.gitignore.io/api/macos,visualstudiocode,git
56+
# IntelliJ #
57+
##########
58+
.idea
6159

62-
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
60+
# code coverage"
61+
coverage
6362

64-
*-error.log
65-
node_modules/
66-
.env.js
67-
pm2.json
68-
/app/*
69-
!app/.gitkeep
70-
!app/template.js
71-
!app/level3-full.js
72-
!app/level3-merge.js
73-
!app/level2-book.js
74-
/logs
75-
/sdk
63+
./*.js
64+
env.local.js

.prettierrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"quoteProps": "as-needed",
8+
"jsxSingleQuote": false,
9+
"trailingComma": "none",
10+
"bracketSpacing": true,
11+
"jsxBracketSameLine": false,
12+
"arrowParens": "always",
13+
"requirePragma": false,
14+
"insertPragma": false,
15+
"proseWrap": "preserve",
16+
"htmlWhitespaceSensitivity": "css",
17+
"endOfLine": "lf"
18+
}

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
3+
The current SDK has aligned documents to 2023.04.02
4+
5+
## [2.0.0](https://github.com/Kucoin/kucoin-futures-node-sdk/compare/v2.0.0...v1.0.3) (2023-06-20)
6+
7+
### ⚠ BREAKING CHANGES
8+
- Changes in usage
9+
- Method name changes

0 commit comments

Comments
 (0)