-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a huge change, trying to get anything to convert to typescript piecemeal was very very frustrating and most of the conversions are straight copies. However - Big changes to @serialport/stream - Big resultant downstream changes to serialport - Hardware tests now only require a loopback port and they all pass (from bindings-cpp up to stream, still working on serialport) Full change log - Typescript types are now available for all packages - Serialport no longer supports Node 10 - bindings-abstract is now bindings-interface and it's in it's own repo (bindings-cpp relies on it and having a cyclic dependency on the monorepo was hard) - baudRate on serialport and @serialport/stream packages is no longer defaulted to 9600 - All packages now have named exports - Bindings have moved from @serialport/bindings to @serialport/bindings-cpp they are shipped with - prebuildify and no longer require a download. - @serialport/bindings-cpp now leverages N-API and shouldn't need to be upgraded for every node release. - baudRate is now required - bindings and mock bindings now have a new interface with bindings-cpp - stream no longer has a list method - serialport package no longer has a static bindings property on it's class (now a subsclass of SerialPortStream)
- Loading branch information
Showing
159 changed files
with
3,540 additions
and
2,820 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,65 +1,61 @@ | ||
module.exports = { | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:node/recommended", | ||
"plugin:mocha/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"prettier", | ||
"node", | ||
"mocha", | ||
"@typescript-eslint", | ||
], | ||
"env": { | ||
"node": true, | ||
"mocha": true, | ||
"es6": true | ||
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:mocha/recommended', 'plugin:@typescript-eslint/recommended'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['prettier', 'node', 'mocha', '@typescript-eslint'], | ||
env: { | ||
node: true, | ||
mocha: true, | ||
es6: true, | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
parserOptions: { | ||
ecmaVersion: 12, | ||
}, | ||
"globals": { | ||
"assert": false, | ||
"makeTestFeature": false, | ||
"shouldReject": false | ||
globals: { | ||
assert: false, | ||
makeTestFeature: false, | ||
shouldReject: false, | ||
}, | ||
"rules": { | ||
"no-extra-semi": "off", | ||
"no-process-exit": "off", | ||
"no-var": "error", | ||
"node/no-extraneous-require": "off", | ||
"node/no-missing-import": "off", | ||
"node/no-missing-require": "off", | ||
"node/no-unpublished-import": "off", | ||
"node/no-unpublished-require": "off", | ||
"node/no-unsupported-features/es-builtins": "error", | ||
"node/no-unsupported-features/es-syntax": "off", | ||
"node/no-unsupported-features/node-builtins": "error", | ||
"node/shebang": "off", | ||
"object-shorthand": "error", | ||
"prefer-arrow-callback": "error", | ||
"prefer-const": "error", | ||
"prefer-template": "error", | ||
"prettier/prettier": [ | ||
"error", | ||
rules: { | ||
'no-extra-semi': 'off', //prettier does this | ||
'@typescript-eslint/no-extra-semi': 'off', //prettier does this | ||
'no-process-exit': 'off', | ||
'no-var': 'error', | ||
'node/no-extraneous-import': [ | ||
'error', | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "es5", | ||
"semi": false, | ||
"printWidth": 150, | ||
"arrowParens": "avoid" | ||
} | ||
allowModules: ['sinon', 'chai'], //this gets pulled from monorepo root where the tests are run | ||
}, | ||
], | ||
"mocha/no-exclusive-tests": "error", | ||
"mocha/no-hooks-for-single-case": "off", | ||
"mocha/no-mocha-arrows": "off", | ||
"mocha/no-pending-tests": "error", | ||
"mocha/no-setup-in-describe": "off", | ||
"strict": ["error", "never"], | ||
"valid-jsdoc": "off", | ||
"@typescript-eslint/no-var-requires": "off", // until we get all js ported over | ||
"@typescript-eslint/no-empty-function": "off", | ||
} | ||
'node/no-missing-import': 'off', | ||
'node/no-missing-require': 'off', | ||
'node/no-unpublished-import': 'off', | ||
'node/no-unpublished-require': 'off', | ||
'node/no-unsupported-features/es-builtins': 'error', | ||
'node/no-unsupported-features/es-syntax': 'off', | ||
'node/no-unsupported-features/node-builtins': 'error', | ||
'node/shebang': 'off', | ||
'object-shorthand': 'error', | ||
'prefer-arrow-callback': 'error', | ||
'prefer-const': 'error', | ||
'prefer-template': 'error', | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
semi: false, | ||
printWidth: 150, | ||
arrowParens: 'avoid', | ||
}, | ||
], | ||
'mocha/no-exclusive-tests': 'error', | ||
'mocha/no-hooks-for-single-case': 'off', | ||
'mocha/no-mocha-arrows': 'off', | ||
'mocha/no-pending-tests': 'error', | ||
'mocha/no-setup-in-describe': 'off', | ||
strict: ['error', 'never'], | ||
'valid-jsdoc': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', // until we get all js ported over | ||
'@typescript-eslint/no-empty-function': '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 |
---|---|---|
|
@@ -4,3 +4,5 @@ lerna-debug.log | |
node_modules | ||
npm-debug.log | ||
/packages/**/dist | ||
tsconfig-build.tsbuildinfo | ||
tsconfig.tsbuildinfo |
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 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 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.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.