Skip to content

Commit 8bdcc44

Browse files
authored
Merge pull request #120 from Sykander/develop
Release 2.0.1
2 parents 7f8ad43 + cc32804 commit 8bdcc44

File tree

123 files changed

+140346
-1337
lines changed

Some content is hidden

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

123 files changed

+140346
-1337
lines changed

.eslintignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
node_modules
2-
test/typings.js
2+
.env
3+
.DS_Store
4+
.nyc_output
5+
logs
6+
docs
7+
types
8+
reports
9+
10+
playground
11+
package-lock.json

.eslintrc

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

.eslintrc.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"parserOptions": {
3+
"ecmaVersion": 2020
4+
},
5+
"env": {
6+
"es6": true,
7+
"node": true,
8+
"mocha": true
9+
},
10+
"plugins": ["prettier", "jsdoc"],
11+
"extends": ["eslint:recommended", "prettier", "plugin:jsdoc/recommended"],
12+
"globals": {
13+
"Atomics": "readonly",
14+
"SharedArrayBuffer": "readonly"
15+
},
16+
"rules": {
17+
"no-var": "error",
18+
"no-await-in-loop": "error",
19+
"no-console": "error",
20+
"array-callback-return": ["error", { "allowImplicit": true }],
21+
"complexity": ["error", 20],
22+
"comma-dangle": "off",
23+
"max-classes-per-file": ["error", 1],
24+
"no-alert": "error",
25+
"curly": "error",
26+
"comma-spacing": ["error", { "before": false, "after": true }],
27+
"prefer-arrow-callback": ["error", { "allowUnboundThis": false }],
28+
"space-before-function-paren": [
29+
"error",
30+
{
31+
"anonymous": "never",
32+
"named": "never",
33+
"asyncArrow": "always"
34+
}
35+
],
36+
"semi": ["error", "always"],
37+
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 2 }],
38+
"eol-last": ["error", "always"],
39+
"newline-before-return": "error",
40+
"array-element-newline": ["error", "consistent"],
41+
"global-require": "error",
42+
"max-depth": ["error", 4],
43+
"jsdoc/check-tag-names": ["error", { "definedTags": ["category"] }],
44+
"jsdoc/newline-after-description": ["error", "never"],
45+
"jsdoc/require-param-description": "off",
46+
"jsdoc/require-param-type": "error",
47+
"jsdoc/require-returns-description": "off",
48+
"jsdoc/require-returns": [
49+
"error",
50+
{ "exemptedBy": ["async"], "forceReturnsWithAsync": false }
51+
],
52+
"jsdoc/no-undefined-types": "off",
53+
"jsdoc/check-syntax": "error",
54+
"jsdoc/check-indentation": "error",
55+
"jsdoc/check-alignment": "error",
56+
"prettier/prettier": "error"
57+
},
58+
"settings": {
59+
"jsdoc": {
60+
"tagNamePreference": {
61+
"returns": "return",
62+
"yields": "yield"
63+
},
64+
"preferredTypes": {
65+
"object": "Object",
66+
"array": "Array",
67+
"boolean": "Boolean",
68+
"string": "String",
69+
"number": "Number",
70+
"bigint": "BigInt",
71+
"symbol": "Symbol"
72+
}
73+
}
74+
}
75+
}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ node_modules
22
.env
33
.DS_Store
44
.nyc_output
5-
logs
6-
test/typings.js
5+
logs

.nycrc

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

.nycrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"branches": 80,
3+
"lines": 99,
4+
"functions": 99,
5+
"statements": 99,
6+
"check-coverage": true,
7+
"reporter": "html",
8+
"report-dir": "docs/reports/coverage"
9+
}

.prettierignore

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
11
node_modules
2-
test/typings.js
2+
.env
3+
.DS_Store
4+
.nyc_output
5+
logs
6+
docs
7+
types
8+
reports
9+
10+
playground
11+
package-lock.json

.prettierrc

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

.prettierrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"trailingComma": "none",
3+
"useTabs": true,
4+
"tabWidth": 4,
5+
"semi": true,
6+
"singleQuote": true,
7+
"arrowParens": "avoid",
8+
"bracketSpacing": true,
9+
"quoteProps": "as-needed"
10+
}

CONTRIBUTING.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Contributing
2+
3+
Development is open to contribution, check the project board "Development" for tickets.
4+
5+
## Scripts
6+
7+
| Script | Description |
8+
|--|--|
9+
| build | Builds the project docs, reports and types |
10+
| build:docs | Builds the project docs |
11+
| build:reports | Builds the project reports |
12+
| build:types | Builds the project types |
13+
| docs | Generates the docs and reports and then serves them locally |
14+
| docs:generate | Generates the docs and reports |
15+
| docs:show | Launches a http server to serve up the docs locally |
16+
| lint | Lints the project and returns a report |
17+
| lint:check | Returns a report on lint issues in the project |
18+
| lint:fix | Fixes lint issues in the project and returns a report on the ones which couldn't be fixed |
19+
| lint:report | Generates lint-summary.json in the reports folder |
20+
| test | Runs all tests and returns a report on which pass/fail |
21+
| test:unit-tests | Runs only unit tests and returns a report on which pass/fail |
22+
| test:code-style | Runs only code checks and returns a report on which pass/fail |
23+
| test:build-types | Attempt to build the project type declarations |
24+
| test:coverage | Generates coverage-summary.json in reports and confirms whether the coverage criteria is met |
25+
26+
### Examples
27+
28+
Run all lint tests
29+
``` sh
30+
$ npm run lint
31+
```
32+
33+
Serve docs locally
34+
``` sh
35+
$ npm run docs
36+
```
37+
38+
## Commit Rules
39+
40+
* All commits should pass the lint check commands
41+
* Commit messages should follow below format
42+
43+
```
44+
Ticket Title
45+
- What you did
46+
- What else you did
47+
```
48+
49+
## Ticket Rules
50+
51+
* All code must pass the lint check
52+
* All code should pass all tests
53+
* All bugfixes should have a new test
54+
* All code should be fully documented using JsDoc
55+
* All PRs must be code reviewed

0 commit comments

Comments
 (0)