@ivuorinen/base-configs 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +1 -0
- package/.commitlintrc.json +3 -0
- package/.editorconfig +17 -0
- package/.github/CODEOWNERS +1 -0
- package/.github/SECURITY.md +11 -0
- package/.github/labels.yml +88 -0
- package/.github/renovate.json +4 -0
- package/.github/workflows/codeql-analysis.yml +46 -0
- package/.github/workflows/pr.yml +50 -0
- package/.github/workflows/publish.yml +76 -0
- package/.github/workflows/stale.yml +26 -0
- package/.markdownlint.json +13 -0
- package/.markdownlintignore +1 -0
- package/.nvmrc +1 -0
- package/.prettierignore +2 -0
- package/.prettierrc.json +1 -0
- package/.releaserc.json +3 -0
- package/.simple-git-hooks.json +3 -0
- package/.stylelintrc.json +3 -0
- package/.yamlignore +1 -0
- package/.yarnclean +45 -0
- package/.yarnrc.yml +1 -0
- package/CHANGELOG.md +912 -0
- package/LICENSE +21 -0
- package/README.md +104 -0
- package/eslint.config.mjs +12 -0
- package/package.json +64 -0
package/.browserslistrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
extends @ivuorinen/browserslist-config
|
package/.editorconfig
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# EditorConfig is awesome: https://EditorConfig.org
|
|
2
|
+
|
|
3
|
+
# top-most EditorConfig file
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
[*]
|
|
7
|
+
charset = utf-8
|
|
8
|
+
end_of_line = lf
|
|
9
|
+
indent_size = 2
|
|
10
|
+
indent_style = space
|
|
11
|
+
insert_final_newline = true
|
|
12
|
+
trim_trailing_whitespace = true
|
|
13
|
+
max_line_length = 120
|
|
14
|
+
|
|
15
|
+
[*.md]
|
|
16
|
+
max_line_length = off
|
|
17
|
+
trim_trailing_whitespace = false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @ivuorinen
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Supported Versions
|
|
4
|
+
|
|
5
|
+
Only the latest versions of the configuration packages and
|
|
6
|
+
the base package are as of now supported.
|
|
7
|
+
|
|
8
|
+
## Reporting a Vulnerability
|
|
9
|
+
|
|
10
|
+
This repository has automatic package update systems in place.
|
|
11
|
+
If you find a vulnerability, please send me email and I'll fix it as soon as possible.
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
- name: "breaking-change"
|
|
3
|
+
color: ee0701
|
|
4
|
+
description: "A breaking change for existing users."
|
|
5
|
+
- name: "bugfix"
|
|
6
|
+
color: ee0701
|
|
7
|
+
description: "Inconsistencies or issues which will cause a problem for users or implementors."
|
|
8
|
+
- name: "documentation"
|
|
9
|
+
color: 0052cc
|
|
10
|
+
description: "Solely about the documentation of the project."
|
|
11
|
+
- name: "enhancement"
|
|
12
|
+
color: 1d76db
|
|
13
|
+
description: "Enhancement of the code, not introducing new features."
|
|
14
|
+
- name: "refactor"
|
|
15
|
+
color: 1d76db
|
|
16
|
+
description: "Improvement of existing code, not introducing new features."
|
|
17
|
+
- name: "performance"
|
|
18
|
+
color: 1d76db
|
|
19
|
+
description: "Improving performance, not introducing new features."
|
|
20
|
+
- name: "new-feature"
|
|
21
|
+
color: 0e8a16
|
|
22
|
+
description: "New features or options."
|
|
23
|
+
- name: "maintenance"
|
|
24
|
+
color: 2af79e
|
|
25
|
+
description: "Generic maintenance tasks."
|
|
26
|
+
- name: "ci"
|
|
27
|
+
color: 1d76db
|
|
28
|
+
description: "Work that improves the continue integration."
|
|
29
|
+
- name: "dependencies"
|
|
30
|
+
color: 1d76db
|
|
31
|
+
description: "Upgrade or downgrade of project dependencies."
|
|
32
|
+
- name: "translations"
|
|
33
|
+
color: d4c5f9
|
|
34
|
+
description: "Impacts translations."
|
|
35
|
+
|
|
36
|
+
- name: "in-progress"
|
|
37
|
+
color: fbca04
|
|
38
|
+
description: "Issue is currently being resolved by a developer."
|
|
39
|
+
- name: "stale"
|
|
40
|
+
color: fef2c0
|
|
41
|
+
description: "There has not been activity on this issue or PR for quite some time."
|
|
42
|
+
- name: "no-stale"
|
|
43
|
+
color: fef2c0
|
|
44
|
+
description: "This issue or PR is exempted from the stable bot."
|
|
45
|
+
|
|
46
|
+
- name: "security"
|
|
47
|
+
color: ee0701
|
|
48
|
+
description: "Marks a security issue that needs to be resolved asap."
|
|
49
|
+
- name: "incomplete"
|
|
50
|
+
color: fef2c0
|
|
51
|
+
description: "Marks a PR or issue that is missing information."
|
|
52
|
+
- name: "invalid"
|
|
53
|
+
color: fef2c0
|
|
54
|
+
description: "Marks a PR or issue that is missing information."
|
|
55
|
+
|
|
56
|
+
- name: "beginner-friendly"
|
|
57
|
+
color: 0e8a16
|
|
58
|
+
description: "Good first issue for people wanting to contribute to the project."
|
|
59
|
+
- name: "help-wanted"
|
|
60
|
+
color: 0e8a16
|
|
61
|
+
description: "We need some extra helping hands or expertise in order to resolve this."
|
|
62
|
+
|
|
63
|
+
- name: "hacktoberfest"
|
|
64
|
+
description: "Issues/PRs are participating in the Hacktoberfest."
|
|
65
|
+
color: fbca04
|
|
66
|
+
- name: "hacktoberfest-accepted"
|
|
67
|
+
description: "Issues/PRs are participating in the Hacktoberfest."
|
|
68
|
+
color: fbca04
|
|
69
|
+
|
|
70
|
+
- name: "priority-critical"
|
|
71
|
+
color: ee0701
|
|
72
|
+
description: "This should be dealt with ASAP. Not fixing this issue would be a serious error."
|
|
73
|
+
- name: "priority-high"
|
|
74
|
+
color: b60205
|
|
75
|
+
description: "After critical issues are fixed, these should be dealt with before any further issues."
|
|
76
|
+
- name: "priority-medium"
|
|
77
|
+
color: 0e8a16
|
|
78
|
+
description: "This issue may be useful, and needs some attention."
|
|
79
|
+
- name: "priority-low"
|
|
80
|
+
color: e4ea8a
|
|
81
|
+
description: "Nice addition, maybe... someday..."
|
|
82
|
+
|
|
83
|
+
- name: "major"
|
|
84
|
+
color: b60205
|
|
85
|
+
description: "This PR causes a major version bump in the version number."
|
|
86
|
+
- name: "minor"
|
|
87
|
+
color: 0e8a16
|
|
88
|
+
description: "This PR causes a minor version bump in the version number."
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
3
|
+
name: "CodeQL"
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: ["main"]
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: ["main"]
|
|
10
|
+
schedule:
|
|
11
|
+
- cron: "30 1 * * 0" # Run at 1:30 AM UTC every Sunday
|
|
12
|
+
merge_group:
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
actions: read
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
analyze:
|
|
20
|
+
name: Analyze
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
permissions:
|
|
23
|
+
security-events: write
|
|
24
|
+
|
|
25
|
+
strategy:
|
|
26
|
+
fail-fast: false
|
|
27
|
+
matrix:
|
|
28
|
+
language: ["javascript", "actions"] # Add languages used in your actions
|
|
29
|
+
|
|
30
|
+
steps:
|
|
31
|
+
- name: Checkout repository
|
|
32
|
+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
33
|
+
|
|
34
|
+
- name: Initialize CodeQL
|
|
35
|
+
uses: github/codeql-action/init@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
|
|
36
|
+
with:
|
|
37
|
+
languages: ${{ matrix.language }}
|
|
38
|
+
queries: security-and-quality
|
|
39
|
+
|
|
40
|
+
- name: Autobuild
|
|
41
|
+
uses: github/codeql-action/autobuild@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
|
|
42
|
+
|
|
43
|
+
- name: Perform CodeQL Analysis
|
|
44
|
+
uses: github/codeql-action/analyze@cf1bb45a277cb3c205638b2cd5c984db1c46a412 # v4.31.7
|
|
45
|
+
with:
|
|
46
|
+
category: "/language:${{matrix.language}}"
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: PR Actions
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
pull_request:
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
issues: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
pr:
|
|
14
|
+
name: PR Actions
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout
|
|
19
|
+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
|
|
23
|
+
- name: Setup Node.js Environment
|
|
24
|
+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
|
25
|
+
with:
|
|
26
|
+
always-auth: true
|
|
27
|
+
node-version-file: ".nvmrc"
|
|
28
|
+
registry-url: "https://registry.npmjs.org"
|
|
29
|
+
scope: "@ivuorinen"
|
|
30
|
+
|
|
31
|
+
- name: Cache Node Modules
|
|
32
|
+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
|
33
|
+
id: cache
|
|
34
|
+
with:
|
|
35
|
+
path: node_modules
|
|
36
|
+
key: node-modules-${{ hashFiles('**/yarn.lock') }}
|
|
37
|
+
|
|
38
|
+
- name: Enable corepack
|
|
39
|
+
id: corepack
|
|
40
|
+
shell: bash
|
|
41
|
+
run: corepack enable
|
|
42
|
+
|
|
43
|
+
- name: Install Dependencies
|
|
44
|
+
if: steps.cache.outputs.cache-hit != 'true'
|
|
45
|
+
run: yarn install
|
|
46
|
+
|
|
47
|
+
- name: Yarn Lock Changes
|
|
48
|
+
uses: Simek/yarn-lock-changes@61d1a0595070b79c1abdc8e1e5a5f5d98b18918c # v0.12.2
|
|
49
|
+
with:
|
|
50
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Publish
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
permissions: read-all
|
|
10
|
+
|
|
11
|
+
env:
|
|
12
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
Linter:
|
|
16
|
+
name: Lint
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
timeout-minutes: 15
|
|
19
|
+
permissions:
|
|
20
|
+
statuses: write
|
|
21
|
+
contents: read
|
|
22
|
+
packages: read
|
|
23
|
+
issues: write
|
|
24
|
+
pull-requests: write
|
|
25
|
+
|
|
26
|
+
steps:
|
|
27
|
+
- name: Run PR Lint
|
|
28
|
+
# https://github.com/ivuorinen/actions
|
|
29
|
+
uses: ivuorinen/actions/pr-lint@a52399cf74eac2b0963591ab2c6c8eb0f7f50b2d # v2025.12.06
|
|
30
|
+
|
|
31
|
+
publish:
|
|
32
|
+
name: Publish
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
needs:
|
|
35
|
+
- Linter
|
|
36
|
+
permissions:
|
|
37
|
+
contents: write # to be able to publish a GitHub release
|
|
38
|
+
issues: write # to be able to comment on released issues
|
|
39
|
+
pull-requests: write # to be able to comment on released pull requests
|
|
40
|
+
id-token: write # to enable use of OIDC for npm provenance
|
|
41
|
+
|
|
42
|
+
steps:
|
|
43
|
+
- name: Checkout
|
|
44
|
+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
45
|
+
with:
|
|
46
|
+
fetch-depth: 0
|
|
47
|
+
|
|
48
|
+
- name: Setup Node.js Environment
|
|
49
|
+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
|
50
|
+
with:
|
|
51
|
+
always-auth: true
|
|
52
|
+
node-version-file: ".nvmrc"
|
|
53
|
+
registry-url: "https://registry.npmjs.org"
|
|
54
|
+
scope: "@ivuorinen"
|
|
55
|
+
|
|
56
|
+
- name: Install and enable corepack
|
|
57
|
+
shell: sh
|
|
58
|
+
run: npm install -g corepack --force && corepack enable
|
|
59
|
+
|
|
60
|
+
- name: Cache Node Modules
|
|
61
|
+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
|
|
62
|
+
id: cache
|
|
63
|
+
with:
|
|
64
|
+
path: node_modules
|
|
65
|
+
key: node-modules-${{ hashFiles('**/yarn.lock') }}
|
|
66
|
+
|
|
67
|
+
- name: Install Dependencies
|
|
68
|
+
shell: bash
|
|
69
|
+
if: steps.cache.outputs.cache-hit != 'true'
|
|
70
|
+
run: yarn install
|
|
71
|
+
|
|
72
|
+
- name: Semantic Release
|
|
73
|
+
uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0
|
|
74
|
+
env:
|
|
75
|
+
GITHUB_TOKEN: ${{ secrets.PAT }}
|
|
76
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
3
|
+
name: Stale
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
schedule:
|
|
7
|
+
- cron: '0 8 * * *' # Every day at 08:00
|
|
8
|
+
workflow_call:
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
packages: read
|
|
14
|
+
statuses: read
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
stale:
|
|
18
|
+
name: 🧹 Clean up stale issues and PRs
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
|
|
21
|
+
permissions:
|
|
22
|
+
contents: write # only for delete-branch option
|
|
23
|
+
issues: write
|
|
24
|
+
pull-requests: write
|
|
25
|
+
steps:
|
|
26
|
+
- uses: ivuorinen/actions/stale@a52399cf74eac2b0963591ab2c6c8eb0f7f50b2d # v2025.12.06
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
node_modules/
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
24.11.1
|
package/.prettierignore
ADDED
package/.prettierrc.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"@ivuorinen/prettier-config"
|
package/.releaserc.json
ADDED
package/.yamlignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/.yarnclean
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# test directories
|
|
2
|
+
__tests__
|
|
3
|
+
test
|
|
4
|
+
tests
|
|
5
|
+
powered-test
|
|
6
|
+
|
|
7
|
+
# asset directories
|
|
8
|
+
docs
|
|
9
|
+
doc
|
|
10
|
+
website
|
|
11
|
+
images
|
|
12
|
+
assets
|
|
13
|
+
|
|
14
|
+
# examples
|
|
15
|
+
example
|
|
16
|
+
examples
|
|
17
|
+
|
|
18
|
+
# code coverage directories
|
|
19
|
+
coverage
|
|
20
|
+
.nyc_output
|
|
21
|
+
|
|
22
|
+
# build scripts
|
|
23
|
+
Makefile
|
|
24
|
+
Gulpfile.js
|
|
25
|
+
Gruntfile.js
|
|
26
|
+
|
|
27
|
+
# configs
|
|
28
|
+
appveyor.yml
|
|
29
|
+
circle.yml
|
|
30
|
+
codeship-services.yml
|
|
31
|
+
codeship-steps.yml
|
|
32
|
+
wercker.yml
|
|
33
|
+
.tern-project
|
|
34
|
+
.gitattributes
|
|
35
|
+
.editorconfig
|
|
36
|
+
.*ignore
|
|
37
|
+
.eslintrc
|
|
38
|
+
.jshintrc
|
|
39
|
+
.flowconfig
|
|
40
|
+
.documentup.json
|
|
41
|
+
.yarn-metadata.json
|
|
42
|
+
.travis.yml
|
|
43
|
+
|
|
44
|
+
# misc
|
|
45
|
+
*.md
|
package/.yarnrc.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
nodeLinker: node-modules
|