chore(lint): prettier, eslint, markdownlint, cleanup

This commit is contained in:
2025-06-24 04:41:20 +03:00
parent b37a25fb8a
commit dee24ff481
8 changed files with 72 additions and 183 deletions

View File

@@ -1,56 +1,46 @@
name: "CodeQL" ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: 'CodeQL'
on: on:
push: push:
branches: [main] branches: ['main']
pull_request: pull_request:
branches: [main] branches: ['main']
schedule: schedule:
- cron: "0 0 * * 4" - cron: '30 1 * * 0' # Run at 1:30 AM UTC every Sunday
merge_group:
permissions:
actions: read
contents: read
jobs: jobs:
analyze: analyze:
name: Analyze name: Analyze
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
actions: read
contents: read
security-events: write security-events: write
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: ["javascript"] language: ['javascript'] # Add languages used in your actions
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3 uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with: with:
languages: ${{ matrix.language }} languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file. queries: security-and-quality
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild - name: Autobuild
uses: github/codeql-action/autobuild@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3 uses: github/codeql-action/autobuild@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
#- run: |
# make bootstrap
# make release
- name: Perform CodeQL Analysis - name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3 uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
with:
category: '/language:${{matrix.language}}'

View File

@@ -40,13 +40,6 @@ jobs:
run: yarn install run: yarn install
- name: Yarn Lock Changes - name: Yarn Lock Changes
# Please use `main` as version before the stable release will be published as `v1`. uses: Simek/yarn-lock-changes@34017425198654c20162a4dfd4f238fbece9636f # v0.12.1
uses: Simek/yarn-lock-changes@main
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
# Optional inputs, can be deleted safely if you are happy with default values.
collapsibleThreshold: 25
failOnDowngrade: false
path: yarn.lock
updateComment: true
groupByType: false

View File

@@ -5,15 +5,28 @@ on:
branches: branches:
- main - main
permissions: permissions: read-all
contents: write
issues: write
pull-requests: write
jobs: jobs:
Linter:
name: Lint
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
statuses: write
contents: read
packages: read
steps:
- name: Run PR Lint
# https://github.com/ivuorinen/actions
uses: ivuorinen/actions/pr-lint@99f3911475dbb5b8d43d314b24c0882997433868 # 25.6.23
publish: publish:
name: Publish name: Publish
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs:
- Linter
steps: steps:
- name: Checkout - name: Checkout
@@ -25,9 +38,9 @@ jobs:
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with: with:
always-auth: true always-auth: true
node-version-file: '.nvmrc' node-version-file: ".nvmrc"
registry-url: 'https://registry.npmjs.org' registry-url: "https://registry.npmjs.org"
scope: '@ivuorinen' scope: "@ivuorinen"
- name: Cache Node Modules - name: Cache Node Modules
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3 uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
@@ -37,10 +50,13 @@ jobs:
key: node-modules-${{ hashFiles('**/yarn.lock') }} key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies - name: Install Dependencies
shell: bash
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
run: yarn install run: yarn install
- name: Config Git User - name: Release
run: | shell: bash
git config --global user.name "fiximus" env:
git config --global user.email "189535814+fiximus@users.noreply.github.com" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release

View File

@@ -1,19 +1,26 @@
--- ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Stale name: Stale
# yamllint disable-line rule:truthy
on: on:
schedule: schedule:
- cron: "0 8 * * *" - cron: '0 8 * * *' # Every day at 08:00
workflow_call: workflow_call:
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
packages: read
statuses: read
jobs: jobs:
stale: stale:
name: 🧹 Clean up stale issues and PRs
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write # only for delete-branch option contents: write # only for delete-branch option
issues: write issues: write
pull-requests: write pull-requests: write
steps: steps:
- uses: ivuorinen/actions/stale@main - uses: ivuorinen/actions/stale@99f3911475dbb5b8d43d314b24c0882997433868 # 25.6.23

View File

@@ -1,47 +0,0 @@
---
name: Update Browserslist database
on:
schedule:
# At 02:00 on day-of-month 1 and 15.
- cron: '0 2 1,15 * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-browserslist-database:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- name: Setup Node.js Environment
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
always-auth: true
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
scope: '@ivuorinen'
- name: Configure git
run: |
git config user.name "fiximus"
git config user.email "189535814+fiximus@users.noreply.github.com"
- name: Update Browserslist database and create PR if applies
uses: c2corg/browserslist-update-action@a76abb476199caea5399f9e28ff3f16e491ec566 # v2.5.0
with:
directory: ./packages/browserslist-config/
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ vars.BROWSERSLIST_UPDATE_BRANCH || 'browserslist-update' }}
base_branch: ${{ vars.DEFAULT_BRANCH || 'main' }}
commit_message: 'chore(deps): update browserslist database'
title: 'chore(deps): update browserslist database'
body: Auto-generated by [browserslist-update-action](https://github.com/c2corg/browserslist-update-action/)
labels: 'maintenance'
reviewers: 'ivuorinen'

View File

@@ -1,3 +1,13 @@
{ {
"extends": "@ivuorinen/markdownlint-config" "default": true,
"MD013": {
"line_length": 200,
"code_blocks": false,
"tables": false
},
"MD024": {
"siblings_only": true
},
"MD033": false,
"MD041": false
} }

View File

@@ -1,2 +1 @@
CHANGELOG.md
node_modules/ node_modules/

View File

@@ -1,166 +1,87 @@
# Change Log # Change Log
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [2.0.31](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.30...@ivuorinen/base-configs@2.0.31) (2025-06-21) ## [2.0.31](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.30...@ivuorinen/base-configs@2.0.31) (2025-06-21)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.30](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.29...@ivuorinen/base-configs@2.0.30) (2025-06-12) ## [2.0.30](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.29...@ivuorinen/base-configs@2.0.30) (2025-06-12)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.29](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.28...@ivuorinen/base-configs@2.0.29) (2025-05-21) ## [2.0.29](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.28...@ivuorinen/base-configs@2.0.29) (2025-05-21)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## 2.0.28 (2025-02-23) ## 2.0.28 (2025-02-23)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## 2.0.27 (2025-02-23) ## 2.0.27 (2025-02-23)
### Bug Fixes ### Bug Fixes
* **deps:** update globals to 16.0.0 ([#342](https://github.com/ivuorinen/base-configs/issues/342)) ([04b333b](https://github.com/ivuorinen/base-configs/commit/04b333b445b6beb4344d2f9102bb5d3dc72ae26a)) - **deps:** update globals to 16.0.0 ([#342](https://github.com/ivuorinen/base-configs/issues/342)) ([04b333b](https://github.com/ivuorinen/base-configs/commit/04b333b445b6beb4344d2f9102bb5d3dc72ae26a))
## [2.0.26](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.25...@ivuorinen/base-configs@2.0.26) (2025-02-20) ## [2.0.26](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.25...@ivuorinen/base-configs@2.0.26) (2025-02-20)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.25](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.24...@ivuorinen/base-configs@2.0.25) (2025-02-20) ## [2.0.25](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.24...@ivuorinen/base-configs@2.0.25) (2025-02-20)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.24](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.23...@ivuorinen/base-configs@2.0.24) (2025-02-17) ## [2.0.24](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.23...@ivuorinen/base-configs@2.0.24) (2025-02-17)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.23](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.22...@ivuorinen/base-configs@2.0.23) (2025-02-16) ## [2.0.23](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.22...@ivuorinen/base-configs@2.0.23) (2025-02-16)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.22](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.21...@ivuorinen/base-configs@2.0.22) (2025-01-28) ## [2.0.22](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.21...@ivuorinen/base-configs@2.0.22) (2025-01-28)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## 2.0.21 (2025-01-17) ## 2.0.21 (2025-01-17)
### Bug Fixes ### Bug Fixes
* **deps:** update eslint-config-prettier to 10.0.1 ([#324](https://github.com/ivuorinen/base-configs/issues/324)) ([8a0d38e](https://github.com/ivuorinen/base-configs/commit/8a0d38e173df40b771d42b694a24145559200506)) - **deps:** update eslint-config-prettier to 10.0.1 ([#324](https://github.com/ivuorinen/base-configs/issues/324)) ([8a0d38e](https://github.com/ivuorinen/base-configs/commit/8a0d38e173df40b771d42b694a24145559200506))
## [2.0.20](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.19...@ivuorinen/base-configs@2.0.20) (2025-01-01) ## [2.0.20](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.19...@ivuorinen/base-configs@2.0.20) (2025-01-01)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.19](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.18...@ivuorinen/base-configs@2.0.19) (2024-12-16) ## [2.0.19](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.18...@ivuorinen/base-configs@2.0.19) (2024-12-16)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.18](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.17...@ivuorinen/base-configs@2.0.18) (2024-12-16) ## [2.0.18](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.17...@ivuorinen/base-configs@2.0.18) (2024-12-16)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.17](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.16...@ivuorinen/base-configs@2.0.17) (2024-12-16) ## [2.0.17](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.16...@ivuorinen/base-configs@2.0.17) (2024-12-16)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.16](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.15...@ivuorinen/base-configs@2.0.16) (2024-12-09) ## [2.0.16](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.15...@ivuorinen/base-configs@2.0.16) (2024-12-09)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.15](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.14...@ivuorinen/base-configs@2.0.15) (2024-12-07) ## [2.0.15](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.14...@ivuorinen/base-configs@2.0.15) (2024-12-07)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.14](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.13...@ivuorinen/base-configs@2.0.14) (2024-11-25) ## [2.0.14](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.13...@ivuorinen/base-configs@2.0.14) (2024-11-25)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## [2.0.13](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.12...@ivuorinen/base-configs@2.0.13) (2024-11-25) ## [2.0.13](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@2.0.12...@ivuorinen/base-configs@2.0.13) (2024-11-25)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
## 2.0.12 (2024-11-25) ## 2.0.12 (2024-11-25)
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
@@ -215,7 +136,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
# [2.0.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.106...@ivuorinen/base-configs@2.0.0) (2024-08-21) ## [2.0.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.1.106...@ivuorinen/base-configs@2.0.0) (2024-08-21)
- feat!: module & commonjs in base-configs ([02e4f47](https://github.com/ivuorinen/base-configs/commit/02e4f4779c79e5e179b3fb31b9a642d9ec96f862)) - feat!: module & commonjs in base-configs ([02e4f47](https://github.com/ivuorinen/base-configs/commit/02e4f4779c79e5e179b3fb31b9a642d9ec96f862))
@@ -649,7 +570,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @ivuorinen/base-configs **Note:** Version bump only for package @ivuorinen/base-configs
# 1.1.0 (2023-10-30) ## [1.1.0](https://github.com/ivuorinen/base-configs/compare/@ivuorinen/base-configs@1.0.0...@ivuorinen/base-configs@1.1.0) (2023-10-30)
### Bug Fixes ### Bug Fixes