Skip to content

Commit dab3472

Browse files
authored
Matej/pushed updates (#8)
1 parent 3094e25 commit dab3472

26 files changed

+15992
-6077
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
lib
2+
dist

.eslintrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

.eslintrc.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
node: true
5+
},
6+
root: true,
7+
reportUnusedDisableDirectives: true,
8+
parser: '@typescript-eslint/parser',
9+
plugins: ['@typescript-eslint', 'prettier'],
10+
extends: [
11+
'eslint:recommended',
12+
'plugin:@typescript-eslint/recommended',
13+
'plugin:prettier/recommended'
14+
],
15+
rules: {
16+
'prettier/prettier': 2
17+
}
18+
};

.github/pull_request_template.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
## Change Overview
2+
23
<!-- Describe the change clearly and succinctly, why it is needed, and what the result of the change will do -->
34

45
## Impact of Change
6+
57
<!-- Check all that apply and add other impacts that might not be listed -->
68

79
- [ ] Bug fix
8-
- [ ] External Facing (resolves an issue customers are currently experiencing)
9-
- [ ] Security Impact (fixes a potential vulnerability)
10+
- [ ] External Facing (resolves an issue customers are currently experiencing)
11+
- [ ] Security Impact (fixes a potential vulnerability)
1012
- [ ] Feature
11-
- [ ] Visible Change (changes semver of API surface or other change that would impact user/dev experience)
12-
- [ ] High Usage (impacts a major part of the core workflow for users)
13+
- [ ] Visible Change (changes semver of API surface or other change that would impact user/dev experience)
14+
- [ ] High Usage (impacts a major part of the core workflow for users)
1315
- [ ] Performance Improvement
1416
- [ ] Refactoring
15-
- [ ] Other: *Describe here*
17+
- [ ] Other: _Describe here_
1618

1719
## Detailed Technical Description of Change
20+
1821
<!-- Detail the technical approach and rationale for the change that you are working on. Are there are known limitations to the implementation or usage? -->
1922

2023
## Testing Approach and Results
24+
2125
<!-- Outline how you will test the change, provide rationale for whether unit / dev / system tests are needed (or why not), and post the evidence of your testing -->
2226

2327
## Collateral Work or Changes
28+
2429
<!-- Provide analysis of the overall impacts caused by your change. Does another system need to be updated to support the change? Does a configuration file need to be updated? etc -->
2530

2631
## Operational Impact
27-
<!-- Are new metrics available with this change? Are they being logged? Do new dashboards or operational alerts need to be setup? -->
32+
33+
<!-- Are new metrics available with this change? Are they being logged? Do new dashboards or operational alerts need to be setup? -->

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: code-quality
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
env:
10+
CI: true
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: '16.11.0'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
- name: Run linters
24+
run: npm run lint:check
25+
26+
test:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v2
30+
- uses: actions/setup-node@v2
31+
with:
32+
node-version: '16.11.0'
33+
34+
- name: Install dependencies
35+
run: npm ci
36+
37+
- name: Run tests
38+
run: npm run test -- --coverage --ci --runInBand
39+
40+
build:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions/setup-node@v2
45+
with:
46+
node-version: '16.11.0'
47+
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
- name: Build
52+
run: npm run build

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules
2-
2+
dist
33
coverage
44

55
# Logs
@@ -18,4 +18,4 @@ yarn-error.log*
1818
# Yarn Integrity file
1919
.yarn-integrity
2020

21-
.nyc_output
21+

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn check-types

.mocharc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.nycrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)