Skip to content

Commit 0b8a563

Browse files
* v3.0.3 * CI fixing * CI fixing * Lint fix * Tests fixes
1 parent fe606a9 commit 0b8a563

File tree

103 files changed

+1709
-2149
lines changed

Some content is hidden

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

103 files changed

+1709
-2149
lines changed

.eslintrc.yml

Lines changed: 66 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,90 @@
11
parser: "@typescript-eslint/parser"
22
extends:
3-
- "airbnb-typescript/base"
3+
- airbnb-base
44
parserOptions:
55
ecmaVersion: 2018
6-
sourceType: "module"
7-
project: "./tsconfig.lint.json"
6+
project: ./tsconfig.lint.json
87
plugins:
9-
- "import"
8+
- import
109
env:
1110
node: true
1211
browser: true
1312
rules:
14-
"@typescript-eslint/lines-between-class-members": "off"
15-
"arrow-parens":
16-
- "error"
17-
- "as-needed"
18-
"class-methods-use-this": "off"
19-
"eol-last": "error"
20-
"import/no-cycle": "off"
21-
"import/prefer-default-export": "off"
22-
"linebreak-style":
23-
- "error"
24-
- "unix"
25-
"lines-between-class-members": "off"
26-
"max-len": "off"
27-
"no-trailing-spaces": "error"
28-
"no-underscore-dangle": "off"
29-
"padding-line-between-statements":
30-
- "error"
31-
- blankLine: "always"
13+
"@typescript-eslint/lines-between-class-members": off
14+
arrow-parens:
15+
- error
16+
- as-needed
17+
class-methods-use-this: off
18+
eol-last: error
19+
import/extensions: off
20+
import/no-cycle: off
21+
import/no-unresolved: off
22+
import/prefer-default-export: off
23+
linebreak-style:
24+
- error
25+
- unix
26+
lines-between-class-members: off
27+
max-len: off
28+
no-trailing-spaces: error
29+
no-underscore-dangle: off
30+
no-dupe-class-members: off
31+
no-unused-vars: off
32+
no-useless-constructor: off
33+
no-empty-function: off
34+
no-param-reassign: off
35+
no-shadow: off
36+
no-redeclare: off
37+
padding-line-between-statements:
38+
- error
39+
- blankLine: always
3240
prev: "*"
3341
next:
34-
- "block"
35-
- "block-like"
36-
- "cjs-export"
37-
- "class"
38-
- "const"
39-
- "export"
40-
- "import"
41-
- "let"
42-
- "var"
43-
- blankLine: "always"
42+
- block
43+
- block-like
44+
- cjs-export
45+
- class
46+
- const
47+
- export
48+
- import
49+
- let
50+
- var
51+
- blankLine: always
4452
prev:
45-
- "block"
46-
- "block-like"
47-
- "cjs-export"
48-
- "class"
49-
- "const"
50-
- "export"
51-
- "import"
52-
- "let"
53-
- "var"
53+
- block
54+
- block-like
55+
- cjs-export
56+
- class
57+
- const
58+
- export
59+
- import
60+
- let
61+
- var
5462
next: "*"
55-
- blankLine: "any"
63+
- blankLine: any
5664
prev:
57-
- "const"
58-
- "let"
59-
- "var"
65+
- const
66+
- let
67+
- var
6068
next:
61-
- "const"
62-
- "let"
63-
- "var"
64-
- blankLine: "never"
69+
- const
70+
- let
71+
- var
72+
- blankLine: never
6573
prev:
66-
- "import"
74+
- import
6775
next:
68-
- "import"
69-
- blankLine: "always"
76+
- import
77+
- blankLine: always
7078
prev:
71-
- "import"
79+
- import
7280
next:
73-
- "export"
74-
- blankLine: "any"
81+
- export
82+
- blankLine: any
7583
prev:
76-
- "export"
84+
- export
7785
next:
78-
- "export"
86+
- export
7987
settings:
8088
import/parsers:
8189
"@typescript-eslint/parser":
82-
- ".ts"
90+
- .ts

.github/workflows/ci.yaml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on: push
44
jobs:
55
build:
66
name: Build
7-
runs-on: self-hosted
7+
runs-on: ubuntu-latest
88
strategy:
99
matrix:
1010
node-version: [18.x, 20.x]
1111
steps:
1212
- name: Checkout sources
1313
uses: actions/checkout@v4
1414
- name: Use Node.js ${{ matrix.node-version }}
15-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v4
1616
with:
1717
node-version: ${{ matrix.node-version }}
1818
- name: Installing dependencies
@@ -23,11 +23,19 @@ jobs:
2323
lint:
2424
name: Lint Code
2525
needs: build
26-
runs-on: self-hosted
26+
runs-on: ubuntu-latest
2727
strategy:
2828
matrix:
2929
node-version: [18.x, 20.x]
3030
steps:
31+
- name: Checkout sources
32+
uses: actions/checkout@v4
33+
- name: Use Node.js ${{ matrix.node-version }}
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: ${{ matrix.node-version }}
37+
- name: Installing dependencies
38+
run: npm ci
3139
- name: Linting
3240
run: npm run lint
3341
env:
@@ -36,11 +44,19 @@ jobs:
3644
test_unit:
3745
name: Unit Tests
3846
needs: build
39-
runs-on: self-hosted
47+
runs-on: ubuntu-latest
4048
strategy:
4149
matrix:
4250
node-version: [18.x, 20.x]
4351
steps:
52+
- name: Checkout sources
53+
uses: actions/checkout@v4
54+
- name: Use Node.js ${{ matrix.node-version }}
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: ${{ matrix.node-version }}
58+
- name: Installing dependencies
59+
run: npm ci
4460
- name: Running unit tests
4561
run: npm run test:unit
4662

@@ -49,12 +65,20 @@ jobs:
4965
needs:
5066
- lint
5167
- test_unit
52-
runs-on: self-hosted
68+
runs-on: ubuntu-latest
5369
strategy:
5470
max-parallel: 1
5571
matrix:
5672
node-version: [18.x, 20.x]
5773
steps:
74+
- name: Checkout sources
75+
uses: actions/checkout@v4
76+
- name: Use Node.js ${{ matrix.node-version }}
77+
uses: actions/setup-node@v4
78+
with:
79+
node-version: ${{ matrix.node-version }}
80+
- name: Installing dependencies
81+
run: npm ci
5882
- name: Creating `.env` file
5983
run: |
6084
touch .env

0 commit comments

Comments
 (0)