Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and type casting #5

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
/* eslint-disable unicorn/prefer-module */
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "unicorn", "jest", "prettier"],
env: {
browser: true,
node: true,
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'jest', 'prettier'],
extends: [
"plugin:unicorn/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
"prefer-const": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-unused-vars": "off",
"no-var": "off",
"unicorn/no-null": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/filename-case": "off",
"unicorn/prevent-abbreviations": "off",
'prefer-const': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'no-unused-vars': 'off',
'no-var': 'off',
},
};
6 changes: 3 additions & 3 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
version:
description: "Type of version (major / minor / patch)"
description: 'Type of version (major / minor / patch)'
required: true

jobs:
Expand All @@ -19,8 +19,8 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"
node-version: '20'
cache: 'npm'
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Setup Git
Expand Down
30 changes: 21 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: CI

on: [push]
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches:
- main
- release
tags:
- 'beta-v*'
pull_request:
# Trigger only for PRs that target main branch
branches:
- main

jobs:
build:
Expand All @@ -10,10 +22,10 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node 16
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand All @@ -28,10 +40,10 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node 16
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand All @@ -46,10 +58,10 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node 16
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand All @@ -64,10 +76,10 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node 16
- name: Use Node 20
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
Expand Down
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"bracketSpacing": true,
"bracketSameLine": true,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "es5",
"semi": true,
"printWidth": 110,
"arrowParens": "always",
"overrides": [
{
"files": ["tsconfig.json"],
"options": {
"parser": "jsonc"
}
}
]
}
Loading
Loading