@kamaal111/kamaal-quality-config 0.3.0 → 0.5.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.
Files changed (2) hide show
  1. package/README.md +12 -0
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -25,6 +25,8 @@ More rule sources will be folded in over time.
25
25
 
26
26
  ## Install
27
27
 
28
+ Consumers require Node.js 22.12.0 or newer.
29
+
28
30
  ```sh
29
31
  pnpm add -D @kamaal111/kamaal-quality-config
30
32
  ```
@@ -106,7 +108,17 @@ const result = await format(filepath, sourceText, options);
106
108
 
107
109
  ## Development
108
110
 
111
+ Use the devcontainer with Node.js 26 (as specified in `.nvmrc`) and pnpm 12.14.0.
112
+ The development and release runtime is newer than the minimum supported consumer runtime.
113
+
109
114
  ```sh
110
115
  pnpm install
111
116
  pnpm quality
117
+ pnpm test
112
118
  ```
119
+
120
+ Vitest also checks the packed package. To select a consumer runtime, run
121
+ `CONSUMER_NODE=/absolute/path/to/node pnpm test src/packed-consumer.test.ts` inside the devcontainer.
122
+ CI selects the latest Node.js 22 release while building and running Vitest on Node.js 26.
123
+ The test fixture installs the JS plugins at the consumer project root, where oxlint resolves
124
+ the plugin specifiers in the shared configuration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kamaal111/kamaal-quality-config",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "Kamaal Farah's shared oxlint quality config.",
5
5
  "keywords": [
6
6
  "lint",
@@ -40,19 +40,19 @@
40
40
  "access": "public"
41
41
  },
42
42
  "dependencies": {
43
- "@kamaal111/oxlint-plugin-anti-slop": "^0.0.4",
43
+ "@kamaal111/oxlint-plugin-anti-slop": "^0.0.5",
44
44
  "eslint-plugin-import": "^2.32.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@oxlint/plugins": "^1.82.0",
48
- "@types/node": "^26.5.1",
47
+ "@oxlint/plugins": "^1.88.0",
48
+ "@types/node": "^22.20.5",
49
49
  "husky": "^9.1.7",
50
- "lint-staged": "^17.5.1",
51
- "oxfmt": "^0.67.0",
52
- "oxlint": "^1.82.0",
53
- "oxlint-tsgolint": "^7.0.2001",
50
+ "lint-staged": "^17.6.0",
51
+ "oxfmt": "^0.73.0",
52
+ "oxlint": "^1.88.0",
53
+ "oxlint-tsgolint": "^7.0.2004",
54
54
  "typescript": "^7.0.2",
55
- "vitest": "^5.0.1"
55
+ "vitest": "^5.0.5"
56
56
  },
57
57
  "lint-staged": {
58
58
  "*.{js,mjs,cjs,ts}": "pnpm run lint",
@@ -61,12 +61,12 @@
61
61
  "devEngines": {
62
62
  "packageManager": {
63
63
  "name": "pnpm",
64
- "version": "12.4.1",
64
+ "version": "12.14.0",
65
65
  "onFail": "error"
66
66
  }
67
67
  },
68
68
  "engines": {
69
- "node": ">=26.0.0"
69
+ "node": ">=22.12.0"
70
70
  },
71
71
  "scripts": {
72
72
  "build": "rm -rf dist && tsc -p tsconfig.build.json && node scripts/generate-json-config.ts",