8000 feat(toolchain): upgrade to TypeScript 7, enforce erasable syntax, and emit lint declarations by jangtrinh · Pull Request #454 · jangtrinh/design-os · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["eslint", "typescript"],
"categories": {
"correctness": "error"
},
"rules": {
"no-unused-vars": "error",
"typescript/no-explicit-any": "error",
"typescript/no-non-null-asserted-optional-chain": "error",
"typescript/no-extra-non-null-assertion": "error",
"typescript/no-misused-new": "error",
"typescript/no-namespace": "error",
"typescript/no-this-alias": "error",
"typescript/prefer-as-const": "error"
},
"ignorePatterns": [
"dist/**",
"node_modules/**",
"coverage/**",
"tests/fixtures/**",
"tests/field-corpus/**"
]
}
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 2026-11-15 - TypeScript 7 toolchain, erasable syntax, and `ease-design/lint` declarations

### Added
- **TypeScript declarations for `ease-design/lint`**: `npm run build` now emits `dist/types/lint.d.ts` (and its
transitive `.d.ts` modules) with TypeScript 7 `tsc -p tsconfig.dts.json`, and `package.json` `exports["./lint"]`
exposes `"types": "./dist/types/lint.d.ts"` alongside `"default": "./dist/lint.js"`.
- **`npm run typecheck:workspaces`**: checks both `a11y` and `recall` workspaces in one command.

### Changed
- **TypeScript `^7.0.2` across root, `a11y`, and `recall`**: upgraded the root compiler from `^6.0.3` and both
workspaces from `^5.6.0` to native TypeScript `^7.0.2`, targeting `ES2023` with `erasableSyntaxOnly: true` and
`noUncheckedSideEffectImports: true` (all 29 constructor parameter properties converted to standard class fields).
- **Linter migrated to `oxlint` (`^1.93.0`)**: replaces the TS6-locked `typescript-eslint` dev toolchain while keeping
the Node 20 CI floor (`@typescript/typescript6` is retained in `devDependencies` solely as the in-memory AST oracle
for two test suites, with `src/` guarded against importing `typescript`, `typescript/*`, or `@typescript/*`).

## 2026-11-12 - ease-design 0.7.1

Project agents run the ontology query. In 0.7.0 a generated agent named `ui ontology query` only in a block at the
Expand Down
6 changes: 4 additions & 2 deletions a11y/cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"compilerOptions": {
"target": "ES2022",
"target": "ES2023",
"module": "ESNext",
"moduleResolution": "bundler",
"strict": true,
"noEmit": true,
"skipLibCheck": true,
"lib": ["ES2022"],
"lib": ["ES2023"],
"types": ["node"],
"erasableSyntaxOnly": true,
"noUncheckedSideEffectImports": true,
"allowImportingTsExtensions": true
},
"include": ["src/**/*.ts"]
Expand Down
2 changes: 1 addition & 1 deletion a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"@types/node": "^22.0.0",
"esbuild": "^0.24.0",
"typescript": "^5.6.0",
"typescript": "^7.0.2",
"vitest": "^4.1.7"
},
"dependencies": {
Expand Down
14 changes: 0 additions & 14 deletions eslint.config.js

This file was deleted.

Loading
Loading
0