@adbayb/stack 2.32.0 → 2.33.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/configs/eslint/constants.js +2 -0
- package/configs/eslint/index.js +14 -14
- package/configs/eslint/presets/dependencies.js +14 -0
- package/configs/eslint/presets/eslint.js +3 -4
- package/configs/eslint/presets/import.js +9 -21
- package/configs/eslint/presets/jsdoc.js +1 -1
- package/configs/eslint/presets/node.js +4 -3
- package/configs/eslint/presets/react.js +27 -37
- package/configs/eslint/presets/sonar.js +1 -3
- package/configs/eslint/presets/stylistic.js +74 -71
- package/configs/eslint/presets/test.js +30 -5
- package/configs/eslint/presets/typescript.js +1 -2
- package/configs/eslint/presets/unicorn.js +8 -1
- package/dist/index.js +401 -401
- package/package.json +28 -30
- package/templates/multi-projects/.github/workflows/continuous_delivery.yml +6 -13
- package/templates/multi-projects/.github/workflows/conventional_commit.yml +1 -2
- package/templates/multi-projects/.github/workflows/dependency_changelog.yml +1 -1
- package/templates/multi-projects/.github/workflows/workflow.yml +3 -13
- package/templates/single-project/.github/workflows/continuous_delivery.yml +6 -13
- package/templates/single-project/.github/workflows/conventional_commit.yml +1 -2
- package/templates/single-project/.github/workflows/dependency_changelog.yml +1 -1
- package/templates/single-project/.github/workflows/workflow.yml +3 -13
- package/configs/eslint/presets/uncategorized.js +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adbayb/stack",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.33.0",
|
|
4
4
|
"description": "My opinionated JavaScript-based toolchain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stack",
|
|
@@ -39,40 +39,38 @@
|
|
|
39
39
|
"templates"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@changesets/changelog-github": "^0.
|
|
43
|
-
"@changesets/cli": "^2.
|
|
44
|
-
"@commitlint/cli": "^20.
|
|
45
|
-
"@commitlint/config-conventional": "^20.
|
|
46
|
-
"@eslint-react/eslint-plugin": "^
|
|
47
|
-
"@eslint/compat": "^2.0.
|
|
48
|
-
"@stylistic/eslint-plugin": "^5.
|
|
49
|
-
"@vitest/eslint-plugin": "^1.
|
|
50
|
-
"eslint": "^
|
|
42
|
+
"@changesets/changelog-github": "^0.6.0",
|
|
43
|
+
"@changesets/cli": "^2.30.0",
|
|
44
|
+
"@commitlint/cli": "^20.5.0",
|
|
45
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
46
|
+
"@eslint-react/eslint-plugin": "^3.0.0",
|
|
47
|
+
"@eslint/compat": "^2.0.3",
|
|
48
|
+
"@stylistic/eslint-plugin": "^5.10.0",
|
|
49
|
+
"@vitest/eslint-plugin": "^1.6.13",
|
|
50
|
+
"eslint": "^10.1.0",
|
|
51
51
|
"eslint-config-prettier": "^10.1.8",
|
|
52
52
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
53
|
-
"eslint-plugin-depend": "^1.
|
|
54
|
-
"eslint-plugin-import-x": "^4.16.
|
|
55
|
-
"eslint-plugin-
|
|
56
|
-
"eslint-plugin-
|
|
57
|
-
"eslint-plugin-
|
|
58
|
-
"eslint-plugin-
|
|
59
|
-
"eslint-plugin-prettier": "^5.5.
|
|
60
|
-
"eslint-plugin-
|
|
61
|
-
"eslint-plugin-
|
|
62
|
-
"eslint-plugin-sort-keys-custom-order": "^2.2.1",
|
|
63
|
-
"eslint-plugin-unicorn": "^62.0.0",
|
|
53
|
+
"eslint-plugin-depend": "^1.5.0",
|
|
54
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
55
|
+
"eslint-plugin-jsdoc": "^62.8.0",
|
|
56
|
+
"eslint-plugin-mdx": "^3.7.0",
|
|
57
|
+
"eslint-plugin-n": "^17.24.0",
|
|
58
|
+
"eslint-plugin-perfectionist": "^5.7.0",
|
|
59
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
60
|
+
"eslint-plugin-sonarjs": "^4.0.2",
|
|
61
|
+
"eslint-plugin-unicorn": "^63.0.0",
|
|
64
62
|
"fdir": "^6.5.0",
|
|
65
|
-
"globals": "^
|
|
66
|
-
"prettier": "^3.
|
|
67
|
-
"prettier-plugin-packagejson": "^
|
|
68
|
-
"termost": "^1.
|
|
69
|
-
"turbo": "^2.
|
|
70
|
-
"typescript": "^
|
|
71
|
-
"typescript-eslint": "^8.
|
|
63
|
+
"globals": "^17.4.0",
|
|
64
|
+
"prettier": "^3.8.1",
|
|
65
|
+
"prettier-plugin-packagejson": "^3.0.2",
|
|
66
|
+
"termost": "^1.9.0",
|
|
67
|
+
"turbo": "^2.8.20",
|
|
68
|
+
"typescript": "^6.0.2",
|
|
69
|
+
"typescript-eslint": "^8.57.2"
|
|
72
70
|
},
|
|
73
71
|
"devDependencies": {
|
|
74
|
-
"@types/node": "24.
|
|
75
|
-
"quickbundle": "2.
|
|
72
|
+
"@types/node": "24.12.0",
|
|
73
|
+
"quickbundle": "2.16.0"
|
|
76
74
|
},
|
|
77
75
|
"publishConfig": {
|
|
78
76
|
"access": "public",
|
|
@@ -16,28 +16,22 @@ jobs:
|
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
17
|
permissions:
|
|
18
18
|
contents: write
|
|
19
|
+
id-token: write
|
|
19
20
|
pull-requests: write
|
|
20
21
|
steps:
|
|
21
|
-
- uses: actions/checkout@
|
|
22
|
-
- uses: pnpm/action-setup@
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
|
+
- uses: pnpm/action-setup@v5
|
|
23
24
|
- uses: actions/setup-node@v6
|
|
24
25
|
with:
|
|
25
|
-
node-version-file: ".nvmrc"
|
|
26
26
|
cache: pnpm
|
|
27
|
-
|
|
28
|
-
run: |
|
|
29
|
-
cat << EOF > "$HOME/.npmrc"
|
|
30
|
-
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
|
31
|
-
EOF
|
|
32
|
-
env:
|
|
33
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
27
|
+
node-version-file: ".nvmrc"
|
|
34
28
|
- name: Install dependencies
|
|
35
29
|
run: pnpm install --frozen-lockfile
|
|
36
30
|
- name: Publish pre-release version(s)
|
|
37
31
|
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
|
|
38
32
|
run: |
|
|
39
|
-
pnpm --filter="!./(applications|examples|tools)/*" --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}"
|
|
40
|
-
pnpm --filter="!./(applications|examples|tools)/*" --recursive exec pnpm publish --tag next --no-git-checks
|
|
33
|
+
pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}" --no-git-tag-version
|
|
34
|
+
pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm publish --tag next --no-git-checks
|
|
41
35
|
- name: Create release pull request
|
|
42
36
|
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
|
|
43
37
|
uses: changesets/action@v1
|
|
@@ -54,4 +48,3 @@ jobs:
|
|
|
54
48
|
publish: pnpm release:publish
|
|
55
49
|
env:
|
|
56
50
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
57
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -29,8 +29,7 @@ jobs:
|
|
|
29
29
|
requireScope: false
|
|
30
30
|
subjectPattern: ^(?![A-Z]).+$
|
|
31
31
|
subjectPatternError: The subject must start with a lowercase character
|
|
32
|
-
|
|
33
|
-
- uses: marocchino/sticky-pull-request-comment@v2
|
|
32
|
+
- uses: marocchino/sticky-pull-request-comment@v3
|
|
34
33
|
if: always() && (steps.check_pr_rule.outputs.error_message != null)
|
|
35
34
|
with:
|
|
36
35
|
header: check_pr_comment
|
|
@@ -9,22 +9,12 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout the code
|
|
12
|
-
uses: actions/checkout@
|
|
13
|
-
- uses: pnpm/action-setup@
|
|
12
|
+
uses: actions/checkout@v6
|
|
13
|
+
- uses: pnpm/action-setup@v5
|
|
14
14
|
- uses: actions/setup-node@v6
|
|
15
15
|
with:
|
|
16
|
-
node-version-file: ".nvmrc"
|
|
17
16
|
cache: pnpm
|
|
18
|
-
|
|
19
|
-
id: cache
|
|
20
|
-
uses: actions/cache@v4
|
|
21
|
-
with:
|
|
22
|
-
path: |
|
|
23
|
-
./node_modules
|
|
24
|
-
./turbo
|
|
25
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
26
|
-
restore-keys: |
|
|
27
|
-
${{ runner.os }}-cache-
|
|
17
|
+
node-version-file: ".nvmrc"
|
|
28
18
|
- name: Install dependencies
|
|
29
19
|
run: pnpm install --frozen-lockfile
|
|
30
20
|
- name: Build
|
|
@@ -16,28 +16,22 @@ jobs:
|
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
17
|
permissions:
|
|
18
18
|
contents: write
|
|
19
|
+
id-token: write
|
|
19
20
|
pull-requests: write
|
|
20
21
|
steps:
|
|
21
|
-
- uses: actions/checkout@
|
|
22
|
-
- uses: pnpm/action-setup@
|
|
22
|
+
- uses: actions/checkout@v6
|
|
23
|
+
- uses: pnpm/action-setup@v5
|
|
23
24
|
- uses: actions/setup-node@v6
|
|
24
25
|
with:
|
|
25
|
-
node-version-file: ".nvmrc"
|
|
26
26
|
cache: pnpm
|
|
27
|
-
|
|
28
|
-
run: |
|
|
29
|
-
cat << EOF > "$HOME/.npmrc"
|
|
30
|
-
//registry.npmjs.org/:_authToken=$NPM_TOKEN
|
|
31
|
-
EOF
|
|
32
|
-
env:
|
|
33
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
27
|
+
node-version-file: ".nvmrc"
|
|
34
28
|
- name: Install dependencies
|
|
35
29
|
run: pnpm install --frozen-lockfile
|
|
36
30
|
- name: Publish pre-release version(s)
|
|
37
31
|
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
|
|
38
32
|
run: |
|
|
39
|
-
pnpm --filter="!./(applications|examples|tools)/*" --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}"
|
|
40
|
-
pnpm --filter="!./(applications|examples|tools)/*" --recursive exec pnpm publish --tag next --no-git-checks
|
|
33
|
+
pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm version "$(pnpm show ./ version)-next-${GITHUB_SHA::7}" --no-git-tag-version
|
|
34
|
+
pnpm --filter="!." --filter="!./(applications|examples|tools)/*" --recursive exec pnpm publish --tag next --no-git-checks
|
|
41
35
|
- name: Create release pull request
|
|
42
36
|
if: "!contains(github.event.head_commit.message, 'chore: release package(s)')"
|
|
43
37
|
uses: changesets/action@v1
|
|
@@ -54,4 +48,3 @@ jobs:
|
|
|
54
48
|
publish: pnpm release:publish
|
|
55
49
|
env:
|
|
56
50
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
57
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -29,8 +29,7 @@ jobs:
|
|
|
29
29
|
requireScope: false
|
|
30
30
|
subjectPattern: ^(?![A-Z]).+$
|
|
31
31
|
subjectPatternError: The subject must start with a lowercase character
|
|
32
|
-
|
|
33
|
-
- uses: marocchino/sticky-pull-request-comment@v2
|
|
32
|
+
- uses: marocchino/sticky-pull-request-comment@v3
|
|
34
33
|
if: always() && (steps.check_pr_rule.outputs.error_message != null)
|
|
35
34
|
with:
|
|
36
35
|
header: check_pr_comment
|
|
@@ -9,22 +9,12 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- name: Checkout the code
|
|
12
|
-
uses: actions/checkout@
|
|
13
|
-
- uses: pnpm/action-setup@
|
|
12
|
+
uses: actions/checkout@v6
|
|
13
|
+
- uses: pnpm/action-setup@v5
|
|
14
14
|
- uses: actions/setup-node@v6
|
|
15
15
|
with:
|
|
16
|
-
node-version-file: ".nvmrc"
|
|
17
16
|
cache: pnpm
|
|
18
|
-
|
|
19
|
-
id: cache
|
|
20
|
-
uses: actions/cache@v4
|
|
21
|
-
with:
|
|
22
|
-
path: |
|
|
23
|
-
./node_modules
|
|
24
|
-
./turbo
|
|
25
|
-
key: ${{ runner.os }}-cache-${{ github.sha }}
|
|
26
|
-
restore-keys: |
|
|
27
|
-
${{ runner.os }}-cache-
|
|
17
|
+
node-version-file: ".nvmrc"
|
|
28
18
|
- name: Install dependencies
|
|
29
19
|
run: pnpm install --frozen-lockfile
|
|
30
20
|
- name: Build
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import sortKeysCustomOrderPlugin from "eslint-plugin-sort-keys-custom-order";
|
|
2
|
-
import dependPlugin from "eslint-plugin-depend";
|
|
3
|
-
|
|
4
|
-
import { createConfig } from "../helpers.js";
|
|
5
|
-
import { JAVASCRIPT_LIKE_FILES } from "../constants.js";
|
|
6
|
-
|
|
7
|
-
export const config = createConfig({
|
|
8
|
-
files: JAVASCRIPT_LIKE_FILES,
|
|
9
|
-
plugins: {
|
|
10
|
-
"depend": dependPlugin,
|
|
11
|
-
"sort-keys-custom-order": sortKeysCustomOrderPlugin,
|
|
12
|
-
},
|
|
13
|
-
rules: {
|
|
14
|
-
"depend/ban-dependencies": "error",
|
|
15
|
-
"sort-keys-custom-order/object-keys": [
|
|
16
|
-
"error",
|
|
17
|
-
{
|
|
18
|
-
orderedKeys: [
|
|
19
|
-
"id",
|
|
20
|
-
"key",
|
|
21
|
-
"name",
|
|
22
|
-
"title",
|
|
23
|
-
"label",
|
|
24
|
-
"description",
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
"sort-keys-custom-order/type-keys": [
|
|
29
|
-
"error",
|
|
30
|
-
{
|
|
31
|
-
orderedKeys: [
|
|
32
|
-
"id",
|
|
33
|
-
"key",
|
|
34
|
-
"name",
|
|
35
|
-
"title",
|
|
36
|
-
"label",
|
|
37
|
-
"description",
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
},
|
|
42
|
-
});
|