-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nebula nodejs SDK implementation (#6)
* initial * update package name * add npm ignore file * enhance * enahnce readme * remove internal dependences * remove github workflow * Create test.yml * remove github workflow * update build.js * add keywords in package.json * update readme * update readme * convert stmt from string to buffer * update readme, for fix colon in config option example * update readme * add CommonJS import * remove the useless package * fix utf8 length issue * rename database to space * update readme and test case
- Loading branch information
Showing
95 changed files
with
16,567 additions
and
2,795 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true |
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,6 @@ | ||
dist/**/* | ||
.tmp/**/* | ||
node_modules | ||
specs/gen-nodejs/**/* | ||
src/nebula/interface/**/* | ||
src/thrift/* |
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,194 @@ | ||
module.exports = { | ||
parser: 'babel-eslint', | ||
env: { | ||
browser: true, | ||
es6: true, | ||
node: true | ||
}, | ||
extends: 'semistandard', | ||
parserOptions: { | ||
sourceType: 'module' | ||
}, | ||
rules: { | ||
indent: ['error', 2, { SwitchCase: 1 }], | ||
'linebreak-style': ['error', 'unix'], | ||
quotes: [1, 'single'], | ||
semi: [1, 'never'], | ||
'no-console': 1, | ||
'space-before-function-paren': 0, | ||
'no-multiple-empty-lines': ['off'] | ||
}, | ||
globals: { | ||
describe: true, | ||
it: true, | ||
after: true, | ||
before: true, | ||
afterEach: true, | ||
beforeEach: true, | ||
$: true, | ||
Viz: true, | ||
'Viz.render': true, | ||
'Viz.Module': true, | ||
nebula: true, | ||
Thrift: true | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
extends: [ | ||
'plugin:@typescript-eslint/recommended' | ||
], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
sourceType: 'module' | ||
}, | ||
plugins: [ | ||
'eslint-plugin-jsdoc', | ||
'eslint-plugin-prefer-arrow', | ||
'@typescript-eslint' | ||
], | ||
rules: { | ||
'@typescript-eslint/adjacent-overload-signatures': 'warn', | ||
'@typescript-eslint/array-type': [ | ||
'warn', | ||
{ | ||
default: 'array' | ||
} | ||
], | ||
'@typescript-eslint/ban-types': [ | ||
'warn', | ||
{ | ||
types: { | ||
Object: { | ||
message: 'Avoid using the `Object` type. Did you mean `object`?' | ||
}, | ||
Function: { | ||
message: 'Avoid using the `Function` type. Prefer a specific function type, like `() => void`.' | ||
}, | ||
Boolean: { | ||
message: 'Avoid using the `Boolean` type. Did you mean `boolean`?' | ||
}, | ||
Number: { | ||
message: 'Avoid using the `Number` type. Did you mean `number`?' | ||
}, | ||
String: { | ||
message: 'Avoid using the `String` type. Did you mean `string`?' | ||
}, | ||
Symbol: { | ||
message: 'Avoid using the `Symbol` type. Did you mean `symbol`?' | ||
} | ||
} | ||
} | ||
], | ||
'@typescript-eslint/consistent-type-assertions': 'warn', | ||
'@typescript-eslint/dot-notation': 'warn', | ||
'@typescript-eslint/naming-convention': 'off', | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/no-empty-interface': 'warn', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-misused-new': 'warn', | ||
'@typescript-eslint/no-namespace': 'off', | ||
'@typescript-eslint/no-parameter-properties': 'off', | ||
'@typescript-eslint/no-unused-expressions': 'warn', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/no-var-requires': 'warn', | ||
'@typescript-eslint/prefer-for-of': 'warn', | ||
'@typescript-eslint/prefer-function-type': 'warn', | ||
'@typescript-eslint/prefer-namespace-keyword': 'warn', | ||
'@typescript-eslint/no-this-alias': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/quotes': [ | ||
'warn', | ||
'single' | ||
], | ||
'@typescript-eslint/triple-slash-reference': [ | ||
'warn', | ||
{ | ||
path: 'always', | ||
types: 'prefer-import', | ||
lib: 'always' | ||
} | ||
], | ||
'@typescript-eslint/unified-signatures': 'warn', | ||
'@typescript-eslint/no-shadow': [ | ||
'warn', | ||
{ | ||
hoist: 'all' | ||
} | ||
], | ||
complexity: 'off', | ||
'constructor-super': 'warn', | ||
eqeqeq: [ | ||
'warn', | ||
'smart' | ||
], | ||
'guard-for-in': 'warn', | ||
'id-blacklist': [ | ||
'warn', | ||
'any', | ||
'Number', | ||
'number', | ||
'String', | ||
'string', | ||
'Boolean', | ||
'boolean', | ||
'Undefined', | ||
'undefined' | ||
], | ||
'id-match': 'warn', | ||
'jsdoc/check-alignment': 'warn', | ||
'jsdoc/check-indentation': 'warn', | ||
'jsdoc/newline-after-description': 'warn', | ||
'max-classes-per-file': [ | ||
'warn', | ||
1 | ||
], | ||
'max-len': [ | ||
'warn', | ||
{ | ||
code: 240 | ||
} | ||
], | ||
'new-parens': 'warn', | ||
'no-bitwise': 'warn', | ||
'no-caller': 'warn', | ||
'no-cond-assign': 'warn', | ||
'no-console': 'warn', | ||
'no-debugger': 'warn', | ||
'no-empty': 'off', | ||
'no-eval': 'warn', | ||
'no-fallthrough': 'off', | ||
'no-invalid-this': 'off', | ||
'no-new-wrappers': 'warn', | ||
'no-shadow': 'off', | ||
'no-throw-literal': 'warn', | ||
'no-trailing-spaces': 'warn', | ||
'no-undef-init': 'warn', | ||
'no-underscore-dangle': 'off', | ||
'no-unsafe-finally': 'warn', | ||
'no-unused-labels': 'warn', | ||
'no-var': 'warn', | ||
'object-shorthand': 'warn', | ||
'one-var': [ | ||
'warn', | ||
'never' | ||
], | ||
'prefer-arrow/prefer-arrow-functions': 'warn', | ||
'prefer-const': 'warn', | ||
radix: 'warn', | ||
'spaced-comment': [ | ||
'warn', | ||
'always', | ||
{ | ||
markers: [ | ||
'/' | ||
] | ||
} | ||
], | ||
'use-isnan': 'warn', | ||
'valid-typeof': '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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"cache": false, | ||
"sourceMap": true | ||
} |
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 @@ | ||
*.js text eol=lf |
This file was deleted.
Oops, something went wrong.
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,119 +1,8 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
lerna-debug.log* | ||
|
||
# Diagnostic reports (https://nodejs.org/api/report.html) | ||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
*.lcov | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Snowpack dependency directory (https://snowpack.dev/) | ||
web_modules/ | ||
|
||
# TypeScript cache | ||
*.tsbuildinfo | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Microbundle cache | ||
.rpt2_cache/ | ||
.rts2_cache_cjs/ | ||
.rts2_cache_es/ | ||
.rts2_cache_umd/ | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
.env.test | ||
|
||
# parcel-bundler cache (https://parceljs.org/) | ||
.cache | ||
.parcel-cache | ||
|
||
# Next.js build output | ||
.next | ||
out | ||
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
node_modules | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
# Comment in the public line in if your project uses Gatsby and not Next.js | ||
# https://nextjs.org/blog/next-9-1#public-directory-support | ||
# public | ||
|
||
# vuepress build output | ||
.vuepress/dist | ||
|
||
# Serverless directories | ||
.serverless/ | ||
|
||
# FuseBox cache | ||
.fusebox/ | ||
|
||
# DynamoDB Local files | ||
.dynamodb/ | ||
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Stores VSCode versions used for testing VSCode extensions | ||
.vscode-test | ||
|
||
# yarn v2 | ||
.yarn/cache | ||
.yarn/unplugged | ||
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
# ide | ||
*.idea | ||
.tmp | ||
package-lock.json | ||
.DS_Store | ||
.nyc_output | ||
coverage | ||
build |
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,6 @@ | ||
{ | ||
"MD013": false, | ||
"MD014": false, | ||
"MD029": false, | ||
"MD033": false | ||
} |
Oops, something went wrong.