chore: workflows, linting, config

This commit is contained in:
2025-06-23 04:12:16 +03:00
parent 39fa9e0a0a
commit 3495e3d5ef
11 changed files with 5918 additions and 27 deletions

View File

@@ -1,6 +1,4 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": ["github>ivuorinen/renovate-config"]
"github>ivuorinen/renovate-config"
]
} }

View File

@@ -1,10 +1,8 @@
--- ---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json # yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Lint Code Base name: Lint PR Code Base
on: on:
push:
branches: [master, main]
pull_request: pull_request:
branches: [master, main] branches: [master, main]
@@ -25,6 +23,14 @@ jobs:
packages: read packages: read
steps: steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Yarn Lock Changes
uses: Simek/yarn-lock-changes@34017425198654c20162a4dfd4f238fbece9636f # v0.12.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Run PR Lint - name: Run PR Lint
# https://github.com/ivuorinen/actions # https://github.com/ivuorinen/actions
uses: ivuorinen/actions/pr-lint@05cd983353b4e6d3213389801daf0f9ec2af7a77 # 25.6.17 uses: ivuorinen/actions/pr-lint@05cd983353b4e6d3213389801daf0f9ec2af7a77 # 25.6.17

62
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,62 @@
name: Publish
on:
push:
branches:
- main
permissions: read-all
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@05cd983353b4e6d3213389801daf0f9ec2af7a77 # 25.6.17
publish:
name: Publish
runs-on: ubuntu-latest
needs:
- Linter
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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: Cache Node Modules
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
id: cache
with:
path: node_modules
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
shell: bash
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: Release
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release

1
.markdownlintignore Normal file
View File

@@ -0,0 +1 @@
node_modules/

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
22.16.0

1
.prettierrc.json Normal file
View File

@@ -0,0 +1 @@
"@ivuorinen/prettier-config"

3
.releaserc.json Normal file
View File

@@ -0,0 +1,3 @@
{
"extends": ["@ivuorinen/semantic-release-config"]
}

View File

@@ -1,37 +1,22 @@
# 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.
## 1.1.12 (2025-02-23) ## 1.1.12 (2025-02-23)
**Note:** Version bump only for package @ivuorinen/config-checker **Note:** Version bump only for package @ivuorinen/config-checker
## 1.1.11 (2025-02-23) ## 1.1.11 (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))
## 1.1.10 (2025-01-17) ## 1.1.10 (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))
## 1.1.9 (2024-11-25) ## 1.1.9 (2024-11-25)
@@ -79,7 +64,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
**Note:** Version bump only for package @ivuorinen/config-checker **Note:** Version bump only for package @ivuorinen/config-checker
# 1.1.0 (2023-10-25) ## 1.1.0 (2023-10-25)
### Features ### Features

12
eslint.config.mjs Normal file
View File

@@ -0,0 +1,12 @@
import ivuorinenConfig from '@ivuorinen/eslint-config'
export default [
...ivuorinenConfig,
// your modifications
{
rules: {
// "no-unused-vars": "warn"
}
}
]

View File

@@ -34,9 +34,21 @@
}, },
"scripts": { "scripts": {
"test": "node ./__tests__/config-checker.test.js", "test": "node ./__tests__/config-checker.test.js",
"generate-table": "node ./helpers/generate-md-table.js" "generate-table": "node ./helpers/generate-md-table.js",
"eslint:fix": "eslint '**/*.{js,tsx,ts,mjs,cjs}' --fix",
"eslint:report": "eslint '**/*.{js,tsx,ts,mjs,cjs}'",
"markdownlint:fix": "markdownlint '**/*.md' --fix",
"markdownlint:report": "markdownlint '**/*.md'",
"prettier:fix": "prettier '**/*.{js,tsx,ts,json,mjs,cjs}' --write",
"prettier:report": "prettier '**/*.{js,tsx,ts,json,mjs,cjs}' --check"
}, },
"bugs": { "bugs": {
"url": "https://github.com/ivuorinen/config-checker/issues" "url": "https://github.com/ivuorinen/config-checker/issues"
},
"devDependencies": {
"@ivuorinen/eslint-config": "^0.5.13",
"@ivuorinen/markdownlint-config": "^0.3.16",
"@ivuorinen/prettier-config": "^0.3.12",
"@ivuorinen/semantic-release-config": "^0.3.18"
} }
} }

5810
yarn.lock

File diff suppressed because it is too large Load Diff