@ale0aranda/rules 0.1.0 → 0.3.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/default.json +70 -0
- package/package.json +36 -11
- package/typescript/base.json +25 -0
- package/typescript/library.json +18 -0
- package/typescript/node.json +11 -0
- package/typescript/web.json +11 -0
package/default.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
+
"description": "Shared Renovate configuration for Alejandro Aranda's projects.",
|
|
4
|
+
"extends": ["config:best-practices"],
|
|
5
|
+
"timezone": "America/Santiago",
|
|
6
|
+
"schedule": ["* 8-9 * * 1"],
|
|
7
|
+
"dependencyDashboard": true,
|
|
8
|
+
"dependencyDashboardTitle": "Dependency Dashboard",
|
|
9
|
+
"labels": ["dependencies"],
|
|
10
|
+
"prConcurrentLimit": 5,
|
|
11
|
+
"prHourlyLimit": 2,
|
|
12
|
+
"minimumReleaseAge": "3 days",
|
|
13
|
+
"rangeStrategy": "bump",
|
|
14
|
+
"rebaseWhen": "behind-base-branch",
|
|
15
|
+
"semanticCommits": "enabled",
|
|
16
|
+
"semanticCommitType": "chore",
|
|
17
|
+
"semanticCommitScope": "deps",
|
|
18
|
+
"commitMessagePrefix": "⬆️ ",
|
|
19
|
+
"postUpdateOptions": ["pnpmDedupe"],
|
|
20
|
+
"packageRules": [
|
|
21
|
+
{
|
|
22
|
+
"description": "Group non-major production dependency updates",
|
|
23
|
+
"matchDepTypes": ["dependencies"],
|
|
24
|
+
"matchUpdateTypes": ["minor", "patch"],
|
|
25
|
+
"groupName": "production dependencies"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"description": "Group non-major development dependency updates",
|
|
29
|
+
"matchDepTypes": ["devDependencies"],
|
|
30
|
+
"matchUpdateTypes": ["minor", "patch"],
|
|
31
|
+
"groupName": "development dependencies"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"description": "Group Biome packages",
|
|
35
|
+
"matchPackageNames": ["/^@biomejs//"],
|
|
36
|
+
"groupName": "Biome"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"description": "Group Commitlint packages",
|
|
40
|
+
"matchPackageNames": [
|
|
41
|
+
"/^@commitlint//",
|
|
42
|
+
"conventional-changelog-conventionalcommits",
|
|
43
|
+
"conventional-commit-types-emoji"
|
|
44
|
+
],
|
|
45
|
+
"groupName": "Commitlint"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"description": "Group Changesets packages",
|
|
49
|
+
"matchPackageNames": ["/^@changesets//"],
|
|
50
|
+
"groupName": "Changesets"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"description": "Group TypeScript packages",
|
|
54
|
+
"matchPackageNames": ["typescript", "@types/node"],
|
|
55
|
+
"groupName": "TypeScript"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"description": "Group GitHub Actions updates",
|
|
59
|
+
"matchManagers": ["github-actions"],
|
|
60
|
+
"groupName": "GitHub Actions",
|
|
61
|
+
"semanticCommitType": "ci",
|
|
62
|
+
"semanticCommitScope": "deps"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"description": "Require approval for major updates",
|
|
66
|
+
"matchUpdateTypes": ["major"],
|
|
67
|
+
"dependencyDashboardApproval": true
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ale0aranda/rules",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Shared Biome and Commitlint rules for Alejandro Aranda's projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,18 +20,41 @@
|
|
|
20
20
|
"emoji",
|
|
21
21
|
"lint",
|
|
22
22
|
"formatter",
|
|
23
|
-
"shared-config"
|
|
23
|
+
"shared-config",
|
|
24
|
+
"typescript",
|
|
25
|
+
"renovate",
|
|
26
|
+
"configuration"
|
|
24
27
|
],
|
|
25
28
|
"files": [
|
|
26
29
|
"biome.json",
|
|
27
30
|
"commitlint.mjs",
|
|
31
|
+
"default.json",
|
|
32
|
+
"typescript",
|
|
28
33
|
"README.md",
|
|
29
34
|
"LICENSE"
|
|
30
35
|
],
|
|
31
36
|
"exports": {
|
|
32
37
|
"./biome": "./biome.json",
|
|
33
38
|
"./commitlint": "./commitlint.mjs",
|
|
34
|
-
"./
|
|
39
|
+
"./typescript/base": "./typescript/base.json",
|
|
40
|
+
"./typescript/web": "./typescript/web.json",
|
|
41
|
+
"./typescript/node": "./typescript/node.json",
|
|
42
|
+
"./typescript/library": "./typescript/library.json",
|
|
43
|
+
"./package.json": "./package.json",
|
|
44
|
+
"./renovate": "./default.json"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"check": "pnpm check:biome && pnpm check:commitlint && pnpm check:typescript && pnpm check:renovate && pnpm check:publint && pnpm check:package",
|
|
48
|
+
"check:biome": "biome ci .",
|
|
49
|
+
"check:commitlint": "node --test test/commitlint.test.mjs",
|
|
50
|
+
"check:typescript": "node --test test/typescript.test.mjs",
|
|
51
|
+
"check:renovate": "node --test test/renovate.test.mjs",
|
|
52
|
+
"check:publint": "publint",
|
|
53
|
+
"check:package": "node --test test/package.test.mjs",
|
|
54
|
+
"format": "biome check --write .",
|
|
55
|
+
"prepack": "pnpm check",
|
|
56
|
+
"changeset": "changeset",
|
|
57
|
+
"changeset:version": "changeset version"
|
|
35
58
|
},
|
|
36
59
|
"engines": {
|
|
37
60
|
"node": ">=22.12.0"
|
|
@@ -42,22 +65,24 @@
|
|
|
42
65
|
},
|
|
43
66
|
"devDependencies": {
|
|
44
67
|
"@biomejs/biome": "^2.5.11",
|
|
68
|
+
"@changesets/changelog-github": "^1.0.0",
|
|
69
|
+
"@changesets/cli": "^3.0.1",
|
|
45
70
|
"@commitlint/cli": "^21.2.2",
|
|
46
71
|
"@commitlint/lint": "^21.2.2",
|
|
47
72
|
"@commitlint/load": "^21.2.2",
|
|
48
|
-
"@commitlint/types": "^21.2.0"
|
|
73
|
+
"@commitlint/types": "^21.2.0",
|
|
74
|
+
"publint": "^0.3.24"
|
|
49
75
|
},
|
|
76
|
+
"packageManager": "pnpm@11.19.0",
|
|
50
77
|
"dependencies": {
|
|
51
78
|
"@commitlint/config-conventional": "^21.2.2",
|
|
52
79
|
"conventional-changelog-conventionalcommits": "^10.4.0",
|
|
53
80
|
"conventional-commit-types-emoji": "^0.1.0",
|
|
54
81
|
"lodash-es": "^4.18.1"
|
|
55
82
|
},
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"check:package": "node --test test/package.test.mjs",
|
|
61
|
-
"format": "biome check --write ."
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@biomejs/biome": ">=2.5.7 <3",
|
|
85
|
+
"@commitlint/cli": ">=21 <22",
|
|
86
|
+
"typescript": ">=5.7 <8"
|
|
62
87
|
}
|
|
63
|
-
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2024",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"allowJs": true,
|
|
7
|
+
"checkJs": true,
|
|
8
|
+
"exactOptionalPropertyTypes": true,
|
|
9
|
+
"noUncheckedIndexedAccess": false,
|
|
10
|
+
"noPropertyAccessFromIndexSignature": true,
|
|
11
|
+
"noImplicitOverride": true,
|
|
12
|
+
"noImplicitReturns": true,
|
|
13
|
+
"noFallthroughCasesInSwitch": true,
|
|
14
|
+
"noUnusedLocals": false,
|
|
15
|
+
"noUnusedParameters": false,
|
|
16
|
+
"useUnknownInCatchVariables": true,
|
|
17
|
+
"forceConsistentCasingInFileNames": true,
|
|
18
|
+
"isolatedModules": true,
|
|
19
|
+
"verbatimModuleSyntax": true,
|
|
20
|
+
"moduleDetection": "force",
|
|
21
|
+
"resolveJsonModule": true,
|
|
22
|
+
"skipLibCheck": true,
|
|
23
|
+
"types": []
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"lib": ["ES2022"],
|
|
6
|
+
"module": "NodeNext",
|
|
7
|
+
"moduleResolution": "NodeNext",
|
|
8
|
+
"rootDir": "src",
|
|
9
|
+
"outDir": "dist",
|
|
10
|
+
"declaration": true,
|
|
11
|
+
"declarationMap": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"composite": true,
|
|
14
|
+
"incremental": true,
|
|
15
|
+
"esModuleInterop": true,
|
|
16
|
+
"noEmit": false
|
|
17
|
+
}
|
|
18
|
+
}
|