@whiteeclipse/toolchain 0.1.0-alpha.1 → 0.1.0-alpha.2

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/README.md CHANGED
@@ -5,7 +5,8 @@ standard_revision: 1
5
5
 
6
6
  # @whiteeclipse/toolchain
7
7
 
8
- Shared ESLint and Prettier configurations for White Eclipse's JavaScript and TypeScript workspaces. This README covers `0.1.0-alpha.1`, an exploratory alpha package.
8
+ Shared ESLint and Prettier configurations for White Eclipse's JavaScript and TypeScript workspaces. This README covers
9
+ `0.1.0-alpha.1`, an exploratory alpha package.
9
10
 
10
11
  ## Setup
11
12
 
@@ -25,12 +26,15 @@ Add the package to a consuming workspace's development dependencies, then run `b
25
26
  Install compatible peers according to [package.json](./package.json):
26
27
 
27
28
  | Peer | Supported versions |
28
- | ---------- | ------------------ |
29
+ |------------|--------------------|
29
30
  | ESLint | `10.13.0` |
30
31
  | Prettier | `3.9.10` |
31
32
  | TypeScript | `6.0.3` |
32
33
 
33
- Run `bun run --cwd packages/libraries/toolchain build` from the repository root before consuming the package. Entrypoints select built `dist/*.js` files by default, adjacent `.d.ts` files for types, and built JavaScript when the consumer enables the `development` condition. The examples run tools with Bun; the built configuration entrypoints also load through Node ESM.
34
+ Run `bun run --cwd packages/libraries/toolchain build` from the repository root before consuming the package.
35
+ Entrypoints select built `dist/*.js` files by default, adjacent `.d.ts` files for types, and built JavaScript when the
36
+ consumer enables the `development` condition. The examples run tools with Bun; the built configuration entrypoints also
37
+ load through Node ESM.
34
38
 
35
39
  Create `eslint.config.ts` at the workspace root:
36
40
 
@@ -99,7 +103,10 @@ JavaScript files, configuration files, and scripts receive Node globals. Source
99
103
 
100
104
  ESLint ignores dependency directories, `dist`, `storybook-static`, `coverage`, `.idea`, and `.obsidian`. Prettier's file selection is controlled separately by the consumer's command targets and ignore file.
101
105
 
102
- See the [ESLint entrypoint](https://github.com/whiteeclipse-studio/hypatia/blob/feature/website/packages/libraries/toolchain/src/eslint/index.ts), [rule groups](https://github.com/whiteeclipse-studio/hypatia/tree/feature/website/packages/libraries/toolchain/src/eslint/plugins), and [Prettier configuration](https://github.com/whiteeclipse-studio/hypatia/blob/feature/website/packages/libraries/toolchain/src/prettier.ts) for complete settings.
106
+ See
107
+ the [ESLint entrypoint](https://github.com/whiteeclipse-studio/hypatia/blob/feature/website/packages/libraries/toolchain/src/eslint/index.ts), [rule groups](https://github.com/whiteeclipse-studio/hypatia/tree/feature/website/packages/libraries/toolchain/src/eslint/plugins),
108
+ and [Prettier configuration](https://github.com/whiteeclipse-studio/hypatia/blob/feature/website/packages/libraries/toolchain/src/prettier.ts)
109
+ for complete settings.
103
110
 
104
111
  ## Extending configurations
105
112
 
@@ -167,7 +174,7 @@ Released under the [MIT License](https://whiteeclipse.dev/LICENCE).
167
174
  ## Revisions
168
175
 
169
176
  | Revision | Date | Author | Description |
170
- | -------- | ---------- | ------------- | ------------------------------------------------------------------ |
177
+ |----------|------------|---------------|--------------------------------------------------------------------|
171
178
  | 1 | 2026-10-25 | Akane SHIMOKA | Adds the package README. |
172
179
  | 2 | 2026-10-26 | Akane SHIMOKA | Consolidate documentation |
173
180
  | 3 | 2026-10-27 | Codex | Add built JavaScript, declaration, and development exports |
@@ -69,6 +69,17 @@ export default defineConfig({
69
69
  "no-useless-constructor": "error",
70
70
  "no-useless-escape": "error",
71
71
  "no-useless-return": "error",
72
+ "no-unused-vars": [
73
+ "error",
74
+ {
75
+ args: "all",
76
+ argsIgnorePattern: "^_",
77
+ varsIgnorePattern: "^_",
78
+ caughtErrors: "all",
79
+ caughtErrorsIgnorePattern: "^_",
80
+ destructuredArrayIgnorePattern: "^_",
81
+ },
82
+ ],
72
83
  "no-var": "error",
73
84
  "no-void": ["error", { allowAsStatement: true }],
74
85
  "no-warning-comments": ["error", { terms: ["FIXME"], location: "anywhere" }],
@@ -49,6 +49,15 @@ export default defineConfig({
49
49
  "@typescript-eslint/strict-boolean-expressions": ["error", { allowString: false, allowNumber: false }],
50
50
  "@typescript-eslint/restrict-template-expressions": ["error", { allowNumber: true }],
51
51
  "@typescript-eslint/no-unused-expressions": ["error", { allowTaggedTemplates: true }],
52
+ "no-unused-vars": ["off"],
53
+ "@typescript-eslint/no-unused-vars": ["error", {
54
+ args: "all",
55
+ argsIgnorePattern: "^_",
56
+ varsIgnorePattern: "^_",
57
+ caughtErrors: "all",
58
+ caughtErrorsIgnorePattern: "^_",
59
+ destructuredArrayIgnorePattern: "^_",
60
+ }],
52
61
  "@typescript-eslint/no-dynamic-delete": "off",
53
62
  },
54
63
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whiteeclipse/toolchain",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "Shared ESLint and Prettier configuration of White Eclipse.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,16 +21,11 @@
21
21
  "default": "./dist/prettier.js"
22
22
  }
23
23
  },
24
- "files": [
25
- "dist",
26
- "README.md",
27
- "LICENCE"
28
- ],
29
24
  "scripts": {
30
- "build": "bun ../../../scripts/build-package.ts",
25
+ "build": "rm -rf dist && tsc -p tsconfig.json",
31
26
  "lint": "bun --conditions=development run --bun eslint .",
32
27
  "prepack": "bun run build",
33
- "typecheck": "tsc -p tsconfig.json"
28
+ "typecheck": "tsc -p tsconfig.json --noEmit"
34
29
  },
35
30
  "dependencies": {
36
31
  "@eslint/js": "10.0.1",