@ale0aranda/rules 0.1.0 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ale0aranda/rules",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Shared Biome and Commitlint rules for Alejandro Aranda's projects.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,14 +25,30 @@
25
25
  "files": [
26
26
  "biome.json",
27
27
  "commitlint.mjs",
28
+ "typescript",
28
29
  "README.md",
29
30
  "LICENSE"
30
31
  ],
31
32
  "exports": {
32
33
  "./biome": "./biome.json",
33
34
  "./commitlint": "./commitlint.mjs",
35
+ "./typescript/base": "./typescript/base.json",
36
+ "./typescript/web": "./typescript/web.json",
37
+ "./typescript/node": "./typescript/node.json",
38
+ "./typescript/library": "./typescript/library.json",
34
39
  "./package.json": "./package.json"
35
40
  },
41
+ "scripts": {
42
+ "check": "pnpm check:biome && pnpm check:commitlint && pnpm check:typescript && pnpm check:package",
43
+ "check:typescript": "node --test test/typescript.test.mjs",
44
+ "check:biome": "biome ci .",
45
+ "check:commitlint": "node --test test/commitlint.test.mjs",
46
+ "check:package": "node --test test/package.test.mjs",
47
+ "format": "biome check --write .",
48
+ "prepack": "pnpm check",
49
+ "changeset": "changeset",
50
+ "changeset:version": "changeset version"
51
+ },
36
52
  "engines": {
37
53
  "node": ">=22.12.0"
38
54
  },
@@ -42,22 +58,23 @@
42
58
  },
43
59
  "devDependencies": {
44
60
  "@biomejs/biome": "^2.5.11",
61
+ "@changesets/changelog-github": "^1.0.0",
62
+ "@changesets/cli": "^3.0.1",
45
63
  "@commitlint/cli": "^21.2.2",
46
64
  "@commitlint/lint": "^21.2.2",
47
65
  "@commitlint/load": "^21.2.2",
48
66
  "@commitlint/types": "^21.2.0"
49
67
  },
68
+ "packageManager": "pnpm@11.19.0",
50
69
  "dependencies": {
51
70
  "@commitlint/config-conventional": "^21.2.2",
52
71
  "conventional-changelog-conventionalcommits": "^10.4.0",
53
72
  "conventional-commit-types-emoji": "^0.1.0",
54
73
  "lodash-es": "^4.18.1"
55
74
  },
56
- "scripts": {
57
- "check": "pnpm check:biome && pnpm check:commitlint && pnpm check:package",
58
- "check:biome": "biome ci .",
59
- "check:commitlint": "node --test test/commitlint.test.mjs",
60
- "check:package": "node --test test/package.test.mjs",
61
- "format": "biome check --write ."
75
+ "peerDependencies": {
76
+ "@biomejs/biome": ">=2.5.7 <3",
77
+ "@commitlint/cli": ">=21 <22",
78
+ "typescript": ">=5.7 <8"
62
79
  }
63
- }
80
+ }
@@ -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
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./base.json",
3
+ "compilerOptions": {
4
+ "lib": ["ES2024"],
5
+ "module": "NodeNext",
6
+ "moduleResolution": "NodeNext",
7
+ "types": ["node"],
8
+ "esModuleInterop": true,
9
+ "noEmit": true
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./base.json",
3
+ "compilerOptions": {
4
+ "lib": ["ES2024", "DOM", "DOM.Iterable"],
5
+ "module": "ESNext",
6
+ "moduleResolution": "Bundler",
7
+ "jsx": "preserve",
8
+ "allowImportingTsExtensions": true,
9
+ "noEmit": true
10
+ }
11
+ }