Skip to content

Commit

Permalink
Merge pull request #20 from Apexrsq/refactor/dev
Browse files Browse the repository at this point in the history
Title: Refactor project using TypeScript
  • Loading branch information
GannicusZhou committed Jun 26, 2023
2 parents 37bfeae + 00fc86c commit 626c552
Show file tree
Hide file tree
Showing 101 changed files with 11,751 additions and 5,882 deletions.
16 changes: 0 additions & 16 deletions .babelrc

This file was deleted.

16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
11 changes: 0 additions & 11 deletions .env.tpl.js

This file was deleted.

7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_tests_/*.js
lib/*.js

env.js
src/dataTypes/**

test/*
63 changes: 63 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"require": false,
"export": false,
"import": false
},
"rules": {
"generator-star-spacing": [0],
"camelcase": [0],
"consistent-return": [0],
"global-require": [0],
"import/prefer-default-export": [0],
"no-underscore-dangle": [0],
"no-else-return": [0],
"no-restricted-syntax": [0],
"no-use-before-define": [0],
"no-nested-ternary": [0],
"arrow-body-style": [0],
"import/extensions": [0],
"max-len": [
2,
{
"code": 200,
"tabWidth": 2,
"ignorePattern": "^\\s*[<svg|<path].+>",
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
"ignoreComments": true
}
],
"no-bitwise": [0],
"no-cond-assign": [0],
"import/no-unresolved": [0],
"require-yield": [0],
"no-constant-condition": [0],
"no-console": [0],
"no-script-url": [0],
"no-param-reassign": [0],
"no-restricted-properties": [0],
"no-plusplus": [2, { "allowForLoopAfterthoughts": true }],
"object-curly-newline": [0],
"@typescript-eslint/no-unused-vars": 1
}
}
113 changes: 51 additions & 62 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,75 +1,64 @@
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so

# Created by https://www.gitignore.io/api/macos,visualstudiocode,git
# Edit at https://www.gitignore.io/?templates=macos,visualstudiocode,git
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip

### Git ###
# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
*.orig
# Logs and databases #
######################
*.log
*.sql
*.sqlite

# Created by git when using merge tools for conflicts
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
*_BACKUP_*.txt
*_BASE_*.txt
*_LOCAL_*.txt
*_REMOTE_*.txt

### macOS ###
# General
# OS generated files #
######################
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
.DS_Store?
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
ehthumbs.db
Thumbs.db
/Desktop

# Secrets #
###########
.secret

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
# Node #
########
node_modules

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# Yarn #
########
*.lock

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
# VSCode #
##########
.vscode

# End of https://www.gitignore.io/api/macos,visualstudiocode,git
# IntelliJ #
##########
.idea

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

*-error.log
node_modules/
.env.js
pm2.json
/app/*
!app/.gitkeep
!app/template.js
!app/level3-full.js
!app/level3-merge.js
!app/level2-book.js
/logs
/sdk
./*.js
env.local.js
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog

The current SDK has aligned documents to 2023.04.02

## [2.0.0](https://github.com/Kucoin/kucoin-futures-node-sdk/compare/v2.0.0...v1.0.3) (2023-06-20)

### ⚠ BREAKING CHANGES
- Changes in usage
- Method name changes

0 comments on commit 626c552

Please sign in to comment.