- 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
39 lines
947 B
JSON
39 lines
947 B
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["typescript", "import", "unicorn"],
|
|
"env": {
|
|
"browser": true,
|
|
"es2024": true
|
|
},
|
|
"rules": {
|
|
"no-unused-vars": "warn",
|
|
"no-console": "off",
|
|
|
|
"typescript/no-explicit-any": "warn",
|
|
"typescript/no-non-null-assertion": "warn",
|
|
|
|
"import/no-cycle": "error",
|
|
"import/no-self-import": "error",
|
|
|
|
"unicorn/no-instanceof-array": "error",
|
|
"unicorn/no-typeof-undefined": "error"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": ["**/*.test.ts", "**/*.test.tsx"],
|
|
"rules": {
|
|
"typescript/no-explicit-any": "off",
|
|
"typescript/no-non-null-assertion": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": ["**/kiwi/kiwi-schema/**"],
|
|
"rules": {
|
|
"typescript/no-explicit-any": "off",
|
|
"typescript/no-non-null-assertion": "off"
|
|
}
|
|
}
|
|
],
|
|
"ignorePatterns": ["node_modules", "dist", "desktop", "*.config.*"]
|
|
}
|