-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from AlexanderGranhof/move-to-typescript
Move to typescript
- Loading branch information
Showing
16 changed files
with
3,269 additions
and
2,410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,63 @@ | ||
{ | ||
"extends": [ | ||
"airbnb-base", | ||
"plugin:mocha/recommended" | ||
], | ||
"plugins": [ | ||
"mocha" | ||
], | ||
"env": { | ||
"mocha": true | ||
}, | ||
"rules": { | ||
"no-plusplus": "off", | ||
"arrow-parens": "off", | ||
"quotes": ["error", "double"], | ||
"indent": ["error", 4], | ||
"no-restricted-syntax": [ "off", "ForOfStatement" ] | ||
}, | ||
"overrides": [{ | ||
"files": ["test/*.js"], | ||
"rules": { | ||
"func-names": "off", | ||
"object-curly-newline": "off", | ||
"max-len": "off", | ||
"prefer-arrow-callback": 0, | ||
"mocha/prefer-arrow-callback": 2 | ||
} | ||
}, | ||
{ | ||
"files": ["lib/**/*.js"], | ||
"rules": { | ||
"consistent-return": "off", | ||
"max-len": ["error", 150], | ||
"no-ternary": "off" | ||
} | ||
}] | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": [ | ||
"airbnb-base", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"settings": { | ||
"import/resolver": { | ||
"node": { | ||
"extensions": [ | ||
".js", | ||
".jsx", | ||
".ts", | ||
".tsx" | ||
] | ||
} | ||
} | ||
}, | ||
"env": { | ||
"mocha": true | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"max-classes-per-file": "off", | ||
"lines-between-class-members": "off", | ||
"class-methods-use-this": "off", | ||
"import/extensions": "off", | ||
"no-plusplus": "off", | ||
"arrow-parens": "off", | ||
"consistent-return": "off", | ||
"max-len": "warn", | ||
"@typescript-eslint/ban-ts-ignore": "off", | ||
"quotes": [ | ||
"error", | ||
"double" | ||
], | ||
"indent": [ | ||
"error", | ||
4 | ||
], | ||
"no-restricted-syntax": [ | ||
"off", | ||
"ForOfStatement" | ||
] | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"test/*.ts" | ||
], | ||
"rules": { | ||
"func-names": "off", | ||
"object-curly-newline": "off", | ||
"max-len": "off", | ||
"prefer-arrow-callback": "off", | ||
"mocha/prefer-arrow-callback": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
node_modules | ||
lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## [3.0.5] - 2020-05-23 | ||
|
||
### Changed | ||
- ported the repo from JS to TS | ||
|
||
### Added | ||
- type files for the drone and its methods | ||
- this changelog | ||
|
||
## [3.0.4] - 2020-03-15 | ||
### Changed | ||
- fixed a link in the readme | ||
- updated documentation on the options parameter | ||
|
||
|
||
## [3.0.3] - 2020-03-15 | ||
### Added | ||
- added missing z1 and z2 parameters of the curve command to tello-data.json | ||
|
||
## [3.0.2] - 2020-03-15 | ||
|
||
### Added | ||
- added missing rc command to tello-data.json | ||
|
||
## [3.0.1] - 2019-11-27 | ||
|
||
### Changed | ||
- added breaking changes note on readme | ||
|
||
|
||
## [3.0.0] - 2019-11-27 | ||
|
||
### Added | ||
- testing | ||
- linting | ||
|
||
### Changed | ||
- removed delays from the tello-data.json file | ||
- removed 'DELAYS' property from index.js | ||
- removed 'bufferOffset' option | ||
- changed the structure of the repository | ||
|
||
## [2.1.0] - 2019-01-24 | ||
|
||
### Changed | ||
- replaced large parts of code with native nodeJS modules (assert, events) | ||
- changed drone function into a class | ||
- removed 'sync' methods, package is now only async | ||
|
||
## [2.0.1] - 2019-01-22 | ||
|
||
### Changed | ||
- fixed bug where class did not send the 'command' command | ||
|
||
## [2.0.0] - 2019-01-22 | ||
|
||
### Added | ||
- added 'async' option to drone constructor | ||
- added method syncSend() | ||
- added method asyncSend() | ||
- added method forceSendSync() | ||
- added method forceSendAsync() | ||
|
||
### Changed | ||
- the send() method now handles sync or async depending on options | ||
|
||
## [1.0.2] - 2019-01-07 | ||
Version patch, nothing changed | ||
|
||
## [1.0.1] - 2019-01-07 | ||
|
||
### Changed | ||
- Fixed spelling in method documentation | ||
|
||
## [1.0.0] - 2019-01-07 | ||
First publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.