Skip to content

Commit 06c9ed6

Browse files
authored
Merge pull request #213 from petarvujovic98/develop
Refactor the project and add generics and getter options
2 parents e8d1288 + 89678ea commit 06c9ed6

File tree

135 files changed

+7414
-5314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+7414
-5314
lines changed

.eslintrc.cjs

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
es2021: true,
5+
node: true,
6+
},
7+
overrides: [
8+
{
9+
files: ["./**/*.ts", "./**/*.js"],
10+
extends: [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"prettier",
14+
],
15+
parser: "@typescript-eslint/parser",
16+
parserOptions: {
17+
ecmaVersion: "latest",
18+
sourceType: "module",
19+
project: ["./{t,j}sconfig.json", "./**/{t,j}sconfig.json"],
20+
},
21+
plugins: ["@typescript-eslint"],
22+
rules: {
23+
"@typescript-eslint/no-unused-vars": [
24+
"warn",
25+
{
26+
varsIgnorePattern: "^_",
27+
argsIgnorePattern: "^_",
28+
destructuredArrayIgnorePattern: "^_",
29+
caughtErrorsIgnorePattern: "^_",
30+
},
31+
],
32+
},
33+
},
34+
],
35+
ignorePatterns: [
36+
"./**/node_modules",
37+
"node_modules",
38+
"./**/lib",
39+
"lib",
40+
"./**/build",
41+
"build",
42+
"./**/deps",
43+
"deps",
44+
],
45+
rules: {},
46+
};

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Build
2-
on:
2+
on:
33
pull_request:
44
push:
55
branches:

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Examples
2-
on:
2+
on:
33
pull_request:
44
push:
55
branches:
@@ -39,4 +39,4 @@ jobs:
3939
- name: status-message
4040
run: cd examples && yarn build:status-message && yarn test:status-message
4141
- name: parking-lot
42-
run: cd examples && yarn build:parking-lot && yarn test:parking-lot
42+
run: cd examples && yarn build:parking-lot && yarn test:parking-lot

.github/workflows/lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
7+
- develop
8+
jobs:
9+
lint:
10+
strategy:
11+
matrix:
12+
platform: [ubuntu-latest]
13+
runs-on: ${{ matrix.platform }}
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: "16"
21+
- name: Install modules
22+
run: yarn
23+
- name: Run lint
24+
run: yarn lint
25+
- name: Format code
26+
run: yarn format
27+
- name: Run git status
28+
run: git status
29+
- name: Check that lints where commited
30+
run: test -z "$(git status --porcelain)"

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Unit tests
2-
on:
2+
on:
33
pull_request:
44
push:
55
branches:

.prettierignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
deps
2+
build
3+
node_modules
4+
lib
5+

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
26-
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
30-
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
32-
professional setting
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
- Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
3333

3434
## Our Responsibilities
3535

0 commit comments

Comments
 (0)