Skip to content

Commit 22f4e45

Browse files
committed
Init commit
0 parents  commit 22f4e45

13 files changed

Lines changed: 18426 additions & 0 deletions

File tree

‎.editorconfig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true

‎.eslintrc.js‎

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"project": "tsconfig.json",
9+
"sourceType": "module"
10+
},
11+
"plugins": [
12+
"@typescript-eslint",
13+
"@typescript-eslint/tslint"
14+
],
15+
"rules": {
16+
"@typescript-eslint/indent": [
17+
"error",
18+
2
19+
],
20+
"@typescript-eslint/member-delimiter-style": [
21+
"error",
22+
{
23+
"multiline": {
24+
"delimiter": "none",
25+
"requireLast": true
26+
},
27+
"singleline": {
28+
"delimiter": "semi",
29+
"requireLast": false
30+
}
31+
}
32+
],
33+
"@typescript-eslint/naming-convention": "off",
34+
"@typescript-eslint/no-empty-function": "error",
35+
"@typescript-eslint/no-shadow": [
36+
"error",
37+
{
38+
"hoist": "all"
39+
}
40+
],
41+
"@typescript-eslint/no-unused-expressions": "error",
42+
"@typescript-eslint/quotes": [
43+
"error",
44+
"single"
45+
],
46+
"@typescript-eslint/semi": [
47+
"error",
48+
"never"
49+
],
50+
"comma-dangle": "error",
51+
"complexity": [
52+
"off",
53+
{
54+
"max": 11
55+
}
56+
],
57+
"curly": "error",
58+
"default-case": "off",
59+
"eol-last": "error",
60+
"eqeqeq": [
61+
"error",
62+
"always"
63+
],
64+
"guard-for-in": "off",
65+
"id-blacklist": "off",
66+
"id-match": "off",
67+
"indent": "error",
68+
"linebreak-style": [
69+
"error",
70+
"unix"
71+
],
72+
"new-parens": "error",
73+
"no-caller": "error",
74+
"no-cond-assign": "error",
75+
"no-console": "off",
76+
"no-constant-condition": "error",
77+
"no-control-regex": "error",
78+
"no-debugger": "error",
79+
"no-empty": "error",
80+
"no-empty-function": "error",
81+
"no-eval": "error",
82+
"no-fallthrough": "error",
83+
"no-invalid-regexp": "error",
84+
"no-invalid-this": "off",
85+
"no-irregular-whitespace": "error",
86+
"no-magic-numbers": "off",
87+
"no-multiple-empty-lines": [
88+
"error",
89+
{
90+
"max": 2
91+
}
92+
],
93+
"no-new-wrappers": "error",
94+
"no-redeclare": "error",
95+
"no-regex-spaces": "error",
96+
"no-shadow": "error",
97+
"no-throw-literal": "error",
98+
"no-trailing-spaces": "error",
99+
"no-underscore-dangle": "off",
100+
"no-unused-expressions": "error",
101+
"no-unused-labels": "error",
102+
"no-var": "error",
103+
"object-shorthand": "off",
104+
"one-var": [
105+
"error",
106+
"never"
107+
],
108+
"prefer-const": "error",
109+
"quote-props": "off",
110+
"quotes": "error",
111+
"radix": "error",
112+
"semi": "error",
113+
"spaced-comment": [
114+
"error",
115+
"always",
116+
{
117+
"markers": [
118+
"/"
119+
]
120+
}
121+
],
122+
"use-isnan": "error",
123+
"@typescript-eslint/tslint/config": [
124+
"error",
125+
{
126+
"rules": {
127+
"array-bracket-spacing": [
128+
true,
129+
"never"
130+
],
131+
"ban": [
132+
true,
133+
[
134+
"alert"
135+
]
136+
],
137+
"block-spacing": true,
138+
"brace-style": [
139+
true,
140+
"1tbs",
141+
{
142+
"allowSingleLine": true
143+
}
144+
],
145+
"handle-callback-err": true,
146+
"no-duplicate-case": true,
147+
"no-empty-character-class": true,
148+
"no-ex-assign": true,
149+
"no-extra-boolean-cast": true,
150+
"no-extra-semi": true,
151+
"no-inner-declarations": [
152+
true,
153+
"functions"
154+
],
155+
"no-multi-spaces": true,
156+
"no-unexpected-multiline": true,
157+
"object-curly-spacing": [
158+
true,
159+
"never"
160+
],
161+
"space-in-parens": [
162+
true,
163+
"never"
164+
],
165+
"ter-arrow-parens": [
166+
true,
167+
"as-needed"
168+
],
169+
"ter-arrow-spacing": true,
170+
"ter-max-len": [
171+
true,
172+
120
173+
],
174+
"ter-no-irregular-whitespace": true,
175+
"ter-no-sparse-arrays": true,
176+
"valid-typeof": true
177+
}
178+
}
179+
]
180+
}
181+
};

‎.github/workflows/node.js.yml‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: NodeJS
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
node:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest]
14+
node-version: [10.x, 12.x, 14.x]
15+
runs-on: ${{ matrix.os }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- run: npm install --ignore-scripts
23+
- run: npm run lint
24+
- run: npm run build
25+
- run: npm run test

‎.gitignore‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.DS_Store
3+
/dist
4+
/.env
5+
/.deno-cache
6+
/samples
7+
.dccache

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 XRPL Labs, Wietse Wind
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎jest.config.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
roots: ["<rootDir>/test"],
3+
transform: {
4+
"^.+\\.ts?$": "ts-jest"
5+
},
6+
testEnvironment: "jsdom",
7+
testRegex: "(.*|(\\.|/)(test|spec))\\.ts?$",
8+
moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"],
9+
testPathIgnorePatterns: [
10+
"fixtures", "components"
11+
]
12+
}

0 commit comments

Comments
 (0)