Skip to content

Commit

Permalink
Update Event Streams node SDK v1.3.0 at 1696888669
Browse files Browse the repository at this point in the history
  • Loading branch information
Event Streams developer committed Oct 9, 2023
1 parent 5938e8d commit 9b8b0be
Show file tree
Hide file tree
Showing 28 changed files with 14,498 additions and 19,133 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ test/resources/auth.js
# ignore emitted js
**/*v*.js
!test/**/*.js
!examples/**/*.js
lib/*.js
scripts/typedoc/
72 changes: 51 additions & 21 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,54 @@
module.exports = {
"env": {
"node": true
},
"plugins": [
"node",
"prettier",
'root': true,
'overrides': [
{
'env': {
'node': true,
},
'files': ['**/*.js', '**/*.jsx'],
'plugins': ['node', 'jest', 'prettier'],
'extends': ['airbnb-base', 'plugin:jest/recommended', 'plugin:jest/style', 'prettier'],
'rules': {
'camelcase': 'off',
'import/extensions': 'off',
'no-template-curly-in-string': 'off',
'no-underscore-dangle': 'off',
'prefer-const': 'error',
'prettier/prettier': 'error',
},
},
{
'files': ['*.test.js', '*.test.jsx'],
'rules': {
'jest/expect-expect': 'off',
'jest/no-conditional-expect': 'off',
'jest/no-done-callback': 'off',
'jest/no-standalone-expect': 'off',
'jest/no-try-expect': 'off',
'no-unused-vars': 'off',
},
},
{
'files': ['**/*.ts', '**/*.tsx'],
'env': {
'node': true,
},
'extends': ['airbnb-typescript/base', 'prettier'],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'project': 'tsconfig.json',
'sourceType': 'module',
},
'plugins': ['eslint-plugin-jsdoc', 'eslint-plugin-import', '@typescript-eslint', 'prettier'],
'rules': {
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'max-len': 'off',
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'prettier/prettier': 'error',
'spaced-comment': ['error', 'always', { 'exceptions': ['*'] }],
},
},
],
"extends": [
"eslint:recommended",
"google",
"plugin:node/recommended",
"prettier",
],
"rules": {
"prettier/prettier": ["error", {"singleQuote": true, "printWidth": 100}],
"prefer-const": "error",
"prefer-rest-params": "off", // https://github.com/mysticatea/eslint-plugin-node/issues/63
// The rest of these override rules that are enabled by one of the configs we extend but not compatible with current codebase
// todo: fix issues and then remove overrides here
"valid-jsdoc": "off", // too many issues; drowns out everything else
"camelcase": "off", // todo: determine if we should keep this off globally, or disable it on a per-line basis
}
};
1 change: 0 additions & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
## PR summary
<!-- please include a brief summary of the changes in this PR -->

**Fixes:** <! -- link to issue -->

## PR Checklist
Please make sure that your PR fulfills the following requirements:
Expand Down
4 changes: 3 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = {
trailingComma: "es5",
semi: true,
trailingComma: 'es5',
singleQuote: true,
printWidth: 100,
quoteProps: 'preserve',
endOfLine: 'auto',
};
27 changes: 20 additions & 7 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
{
"debug": true,
"branches": [ "main" ],
"verifyConditions": ["@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git"],
"prepare": ["@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git"],
"branches": [
"main"
],
"verifyConditions": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"prepare": [
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git"
],
"publish": [
["@semantic-release/npm", {
"pkgRoot": "dist"
}],
[
"@semantic-release/npm",
{
"pkgRoot": "dist"
}
],
{
"path": "@semantic-release/github"
}
]
}
}
28 changes: 13 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
language: node_js

sudo: false
dist: focal

# Remove this if using external Travis
group: focal


node_js:
- 14
- 16
# - 14
# - 16
# - 18

# remove the "echo" command from the "before_install" section below.
before_install:
- echo -e "machine github.ibm.com\n login $GITHUB_OAUTH_TOKEN" > ~/.netrc
# - 'openssl aes-256-cbc -K $my_key -iv $my_iv -in myservice.env.enc -out myservice.env -d || true'
- echo -e "machine github.ibm.com\n login $GITHUB_ACCESS_TOKEN" > ~/.netrc
- wget -qO - https://package.perforce.com/perforce.pubkey | sudo apt-key add -
- npm i -g npm@8
- npm --version

script:
- npm run build
- npm run test-travis || travis_terminate 1
- npm run lint
- npm run check-packages
# - sh scripts/typedoc/generate_typedoc.sh currently in progress


# To enable semantic-release, uncomment this section.
# deploy:
# - provider: script
# skip_cleanup: true
# script: npx semantic-release
# on:
# node: 12
# branch: main
Loading

0 comments on commit 9b8b0be

Please sign in to comment.