Add oxlint, oxfmt, typescript-go
- oxlint with react, react-hooks, typescript, import, unicorn plugins
- oxfmt (no trailing commas, single quotes, sorted imports)
- tsgo (typescript-go native preview) for fast typechecking
- Fix all lint warnings: non-null assertions, unused expressions, stale closures
- Scripts: lint, format, typecheck, check
2026-02-27 12:52:04 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
2026-03-08 20:08:27 +00:00
|
|
|
"plugins": ["typescript", "import", "unicorn", "vue"],
|
Add oxlint, oxfmt, typescript-go
- oxlint with react, react-hooks, typescript, import, unicorn plugins
- oxfmt (no trailing commas, single quotes, sorted imports)
- tsgo (typescript-go native preview) for fast typechecking
- Fix all lint warnings: non-null assertions, unused expressions, stale closures
- Scripts: lint, format, typecheck, check
2026-02-27 12:52:04 +00:00
|
|
|
"env": {
|
|
|
|
|
"browser": true,
|
|
|
|
|
"es2024": true
|
|
|
|
|
},
|
|
|
|
|
"rules": {
|
|
|
|
|
"no-unused-vars": "warn",
|
|
|
|
|
"no-console": "off",
|
|
|
|
|
|
|
|
|
|
"typescript/no-explicit-any": "warn",
|
|
|
|
|
"typescript/no-non-null-assertion": "warn",
|
2026-03-08 20:04:44 +00:00
|
|
|
"typescript/no-floating-promises": "error",
|
Add oxlint, oxfmt, typescript-go
- oxlint with react, react-hooks, typescript, import, unicorn plugins
- oxfmt (no trailing commas, single quotes, sorted imports)
- tsgo (typescript-go native preview) for fast typechecking
- Fix all lint warnings: non-null assertions, unused expressions, stale closures
- Scripts: lint, format, typecheck, check
2026-02-27 12:52:04 +00:00
|
|
|
|
|
|
|
|
"import/no-cycle": "error",
|
|
|
|
|
"import/no-self-import": "error",
|
|
|
|
|
|
|
|
|
|
"unicorn/no-instanceof-array": "error",
|
2026-03-08 20:08:27 +00:00
|
|
|
"unicorn/no-typeof-undefined": "error",
|
|
|
|
|
|
|
|
|
|
"vue/no-arrow-functions-in-watch": "error",
|
|
|
|
|
"vue/no-deprecated-destroyed-lifecycle": "error",
|
|
|
|
|
"vue/no-export-in-script-setup": "error",
|
|
|
|
|
"vue/no-lifecycle-after-await": "error",
|
|
|
|
|
"vue/no-import-compiler-macros": "error",
|
|
|
|
|
"vue/prefer-import-from-vue": "error",
|
|
|
|
|
"vue/valid-define-emits": "error",
|
|
|
|
|
"vue/valid-define-props": "error",
|
|
|
|
|
"vue/no-required-prop-with-default": "error",
|
|
|
|
|
"vue/define-emits-declaration": "error",
|
|
|
|
|
"vue/define-props-destructuring": "error",
|
|
|
|
|
"vue/require-typed-ref": "error"
|
Add oxlint, oxfmt, typescript-go
- oxlint with react, react-hooks, typescript, import, unicorn plugins
- oxfmt (no trailing commas, single quotes, sorted imports)
- tsgo (typescript-go native preview) for fast typechecking
- Fix all lint warnings: non-null assertions, unused expressions, stale closures
- Scripts: lint, format, typecheck, check
2026-02-27 12:52:04 +00:00
|
|
|
},
|
|
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"files": ["**/*.test.ts", "**/*.test.tsx"],
|
|
|
|
|
"rules": {
|
|
|
|
|
"typescript/no-explicit-any": "off",
|
|
|
|
|
"typescript/no-non-null-assertion": "off"
|
|
|
|
|
}
|
Fix all lint, typecheck, and formatting issues
- 0 lint warnings (was 66), 0 type errors (was 30+)
- Add typed interfaces for Paint.stops/transform, Effect.blendMode,
NodeChange.strokeCap/strokeJoin/dashPattern in kiwi codec
- Add CompiledSchema.encodePaint/encodeNodeChange methods
- Remove all no-explicit-any: use Window declaration merging for
queryLocalFonts, showOpenFilePicker, showSaveFilePicker
- Remove all non-null assertions: add guards, use ?. operator,
?? fallbacks throughout
- Add SceneGraph.copyProp typed helper for instance sync
- Suppress kiwi-schema lint warnings via oxlint override
- Remove unused imports, variables, parameters
- Use proper CanvasKit StrokeCap/StrokeJoin enums in renderer
- Run oxfmt with import sorting
2026-02-28 19:57:33 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"files": ["**/kiwi/kiwi-schema/**"],
|
|
|
|
|
"rules": {
|
|
|
|
|
"typescript/no-explicit-any": "off",
|
|
|
|
|
"typescript/no-non-null-assertion": "off"
|
|
|
|
|
}
|
Add oxlint, oxfmt, typescript-go
- oxlint with react, react-hooks, typescript, import, unicorn plugins
- oxfmt (no trailing commas, single quotes, sorted imports)
- tsgo (typescript-go native preview) for fast typechecking
- Fix all lint warnings: non-null assertions, unused expressions, stale closures
- Scripts: lint, format, typecheck, check
2026-02-27 12:52:04 +00:00
|
|
|
}
|
|
|
|
|
],
|
2026-02-28 05:10:09 +00:00
|
|
|
"ignorePatterns": ["node_modules", "dist", "desktop", "*.config.*"]
|
Add oxlint, oxfmt, typescript-go
- oxlint with react, react-hooks, typescript, import, unicorn plugins
- oxfmt (no trailing commas, single quotes, sorted imports)
- tsgo (typescript-go native preview) for fast typechecking
- Fix all lint warnings: non-null assertions, unused expressions, stale closures
- Scripts: lint, format, typecheck, check
2026-02-27 12:52:04 +00:00
|
|
|
}
|