Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 152f1b0

Browse files
author
Marc Baqué
committed
Refactored to Typescript + Added unit testing
1 parent 54b7b9f commit 152f1b0

17 files changed

+16143
-64
lines changed

.eslintignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# /node_modules/* in the project root is ignored by default
2+
# build artefacts
3+
dist/*
4+
coverage/*
5+
# data definition files
6+
**/*.d.ts
7+
# 3rd party libs
8+
/src/public/
9+
# custom definition files
10+
/src/types/

.eslintrc

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"extends": ["plugin:@typescript-eslint/recommended"],
4+
"parserOptions": {
5+
"ecmaVersion": 2018,
6+
"sourceType": "module"
7+
},
8+
"rules": {
9+
"semi": ["error", "always"],
10+
"quotes": ["error", "double"],
11+
"@typescript-eslint/explicit-function-return-type": "off",
12+
"@typescript-eslint/no-explicit-any": 1,
13+
"@typescript-eslint/no-inferrable-types": [
14+
"warn", {
15+
"ignoreParameters": true
16+
}
17+
],
18+
"@typescript-eslint/no-unused-vars": "warn"
19+
}
20+
}

.gitignore

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
lib-cov
2+
*.seed
3+
*.log
4+
*.csv
5+
*.dat
6+
*.out
7+
*.pid
8+
*.gz
9+
*.swp
10+
11+
pids
12+
logs
13+
results
14+
tmp
15+
16+
# Build
17+
public/css/main.css
18+
19+
# Coverage reports
20+
coverage
21+
.rpt2_cache
22+
23+
# API keys and secrets
24+
.env
25+
26+
# Dependency directory
27+
node_modules
28+
bower_components
29+
30+
# Editors
31+
.idea
32+
*.iml
33+
34+
# OS metadata
35+
.DS_Store
36+
Thumbs.db
37+
38+
# Ignore built ts files
39+
dist/**/*
40+
41+
# ignore yarn.lock
42+
yarn.lock

.npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
tsconfig.json
2+
src

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# enchainte-sdk-js
1+
# Enchainte SDK Javascript

comms.js

-36
This file was deleted.

coreLib.js

-27
This file was deleted.

0 commit comments

Comments
 (0)