Skip to content

Commit

Permalink
Chore: Upgrade all dependencies and fix breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
politician committed Sep 20, 2024
1 parent 784cc18 commit 6bd8fc8
Show file tree
Hide file tree
Showing 26 changed files with 145,269 additions and 26,430 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ jobs:
name: Test build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14
node-version: lts/*

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install

- name: Build
run: yarn build

- name: Ensure build was committed (necessary for Github Actions)
run: "[[ -z $(git status -s dist) ]]"
run: "[[ -z $(git status -s dist ':^dist/src') ]]"

- name: "[Test] Unit tests"
run: yarn test
16 changes: 8 additions & 8 deletions .github/workflows/test.workflow.pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get Commit Message
id: commit
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "[Test] Basic usage"
uses: ./
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: "🧹 Close Pull Request"
uses: actions/github-script@v3
Expand All @@ -97,20 +97,20 @@ jobs:
release:
name: Release new version
needs: [cleanup-test]
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v4
with:
ref: main

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14
node-version: lts/*

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install

- name: Release
env:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.workflow.push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ jobs:
name: Test build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 14
node-version: lts/*

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install

- name: Build
run: yarn build

- name: Ensure build was committed (necessary for Github Actions)
run: "[[ -z $(git status -s dist) ]]"
run: "[[ -z $(git status -s dist ':^dist/src') ]]"

- name: "[Test] Unit tests"
run: yarn test
Expand All @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn commitlint --config .config/commitlint.config.js --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarn lint-staged && ./.config/commit-docs.sh && ./.config/commit-build.sh
1 change: 1 addition & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exec < /dev/tty && yarn git-cz --hook || true
Binary file added .yarn/install-state.gz
Binary file not shown.
925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.5.0.cjs

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.0.cjs
79 changes: 79 additions & 0 deletions _eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import jest from "eslint-plugin-jest";
import node from "eslint-plugin-node";
import globals from "globals";
import path from "node:path";
import { fileURLToPath } from "node:url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
{
ignores: ["dist/", "lib/", "node_modules/"],
},
...fixupConfigRules(
compat.extends(
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:node/recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier",
"prettier/@typescript-eslint",
),
),
{
plugins: {
node: fixupPluginRules(node),
jest: fixupPluginRules(jest),
"@typescript-eslint": fixupPluginRules(typescriptEslint),
},

languageOptions: {
globals: {
...globals.node,
...globals.jest,
},

parser: tsParser,
ecmaVersion: 9,
sourceType: "module",

parserOptions: {
project: "./tsconfig.json",
},
},

settings: {
node: {
tryExtensions: [".js", ".json", ".node", ".ts"],
},
},

rules: {
"node/no-unsupported-features/es-syntax": 0,
"node/no-unsupported-features/es-builtins": 0,

"node/no-extraneous-import": [
"error",
{
allowModules: ["@jest/globals"],
},
],
},
},
];
Loading

0 comments on commit 6bd8fc8

Please sign in to comment.