Skip to content

Commit

Permalink
Add small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
G43riko committed Oct 11, 2024
1 parent c00e772 commit fb78c7b
Show file tree
Hide file tree
Showing 230 changed files with 3,498 additions and 2,566 deletions.
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
repo_token: GmttopAjwwFjxRmtVj18jmNwUjJzCEwYn
repo_token: GmttopAjwwFjxRmtVj18jmNwUjJzCEwYn
18 changes: 9 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ module.exports = {
"eslint:recommended",
],
"rules": {

"indent": [
"error",
4,
{"SwitchCase": 1},
{ "SwitchCase": 1 },
],
"quotes": [
"error",
Expand Down Expand Up @@ -58,7 +57,7 @@ module.exports = {
"eol-last": ["error", "always"],
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"object-property-newline": ["error", {"allowAllPropertiesOnSameLine": true}],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"semi-spacing": "error",
"space-in-parens": ["error", "never"],
"arrow-body-style": ["error", "as-needed"],
Expand All @@ -69,7 +68,7 @@ module.exports = {
"prefer-const": "error",
"no-var": "error",
"newline-before-return": "error",
"no-use-before-define": ["error", {"classes": false, "functions": false}],
"no-use-before-define": ["error", { "classes": false, "functions": false }],
"no-cond-assign": "error",
"no-duplicate-case": "error",
"template-curly-spacing": "error",
Expand Down Expand Up @@ -236,7 +235,8 @@ module.exports = {
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?",
},
"Function": {
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`.",
"message":
"Avoid using the `Function` type. Prefer a specific function type, like `() => void`.",
},
"Number": {
"message": "Avoid using the `Number` type. Did you mean `number`?",
Expand All @@ -255,8 +255,8 @@ module.exports = {
],
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/array-type": ["error", {"default": "array"}],
"@typescript-eslint/explicit-function-return-type": ["warn", {"allowExpressions": true}],
"@typescript-eslint/array-type": ["error", { "default": "array" }],
"@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
"@typescript-eslint/explicit-member-accessibility": ["error", {
"accessibility": "explicit",
"overrides": {
Expand Down Expand Up @@ -297,7 +297,7 @@ module.exports = {
],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-empty-function": ["error", {"allow": ["constructors"]}],
"@typescript-eslint/no-empty-function": ["error", { "allow": ["constructors"] }],
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": "error",
Expand All @@ -313,7 +313,7 @@ module.exports = {
],
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
Expand Down
12 changes: 6 additions & 6 deletions .eslintrc_backup.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"indent": [
"error",
4,
{"SwitchCase": 1, "MemberExpression": "off"}
{ "SwitchCase": 1, "MemberExpression": "off" }
],
"quotes": [
"error",
Expand Down Expand Up @@ -50,7 +50,7 @@
"eol-last": ["error", "always"],
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"object-property-newline": ["error", {"allowAllPropertiesOnSameLine": true}],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"semi-spacing": "error",
"space-in-parens": ["error", "never"],
"arrow-body-style": ["error", "as-needed"],
Expand All @@ -61,17 +61,17 @@
"prefer-const": "error",
"no-var": "error",
"newline-before-return": "error",
"no-use-before-define": ["error", {"classes": false, "functions": false}],
"no-use-before-define": ["error", { "classes": false, "functions": false }],
"no-cond-assign": "error",
"no-duplicate-case": "error",
"template-curly-spacing": "error",
"no-prototype-builtins": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/array-type": ["error", {"default": "array"}],
"@typescript-eslint/explicit-function-return-type": ["warn", {"allowExpressions": true}],
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "explicit"}],
"@typescript-eslint/array-type": ["error", { "default": "array" }],
"@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
"@typescript-eslint/explicit-member-accessibility": ["error", { "accessibility": "explicit" }],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
Expand Down
52 changes: 26 additions & 26 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Buld and test

on:
push:
branches: [ master, development ]
push:
branches: [master, development]

jobs:
build:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 14
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Dependencies
run: npm i -f
- name: Build
run: npm run build
- name: Test
run: npm run test
build:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 14
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Dependencies
run: npm i -f
- name: Build
run: npm run build
- name: Test
run: npm run test
82 changes: 41 additions & 41 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: NPM Release

on:
release:
types:
- created
release:
types:
- created
jobs:
build:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Dependencies
run: npm i -f
- name: Build
run: npm run build
- name: Test
run: npm run test
# Build and deploy documentation
- name: Build documentation
run: npm run doc
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
# Release new NPM Version
- name: Publish repository
run: npm publish dist --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS }}
build:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install Dependencies
run: npm i -f
- name: Build
run: npm run build
- name: Test
run: npm run test
# Build and deploy documentation
- name: Build documentation
run: npm run doc
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
# Release new NPM Version
- name: Publish repository
run: npm publish dist --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS }}
5 changes: 2 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: yarn install && yarn run build


- init: yarn install && yarn run build
- command: curl -fsSL https://deno.land/install.sh | sh
24 changes: 12 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
env:
global:
- CC_TEST_REPORTER_ID=21d19cee80b3c79aad53bcada0c70819c95baa23c42b0441130b394f1cf41a94
global:
- CC_TEST_REPORTER_ID=21d19cee80b3c79aad53bcada0c70819c95baa23c42b0441130b394f1cf41a94
language: node_js
node_js:
- "8"
- "8"
before_script:
- npm install -g typings typescript mocha
- typings install
- tsc
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
- npm install -g typings typescript mocha
- typings install
- tsc
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- npm run coverage
- npm run coverage2
- npm run coverage
- npm run coverage2
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"deno.enable": true
}
}
Loading

0 comments on commit fb78c7b

Please sign in to comment.