* feat(editor): shelf placement validity box + sync tool for positioned presets Give the generic move tool a green/red footprint box for shelf placement, matching the GLB item cursor, and drop the vertical-arrow CursorSphere for shelves. Box colour comes from canPlaceOnFloor; an invalid (red) drop is refused unless Shift forces it, and R/T play the rotate sfx. Re-sync the box transform on node change so a re-armed clone isn't left at the previous rotation/position. Extract the box wireframe geometry helpers into a shared placement-box-geometry module reused by the item coordinator and the new declarative PlacementBox component. Export the Tool type so host apps can set the active tool for a positioned preset. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * chore: apply biome formatting + ignore generated next-env.d.ts Format files that predate the current biome config (lineWidth 100, single quotes, semicolons as-needed) so they stop showing as dirty on every checkout. Formatting only — no behavior change. Also exclude **/next-env.d.ts from biome: Next regenerates it (double quotes + semicolon) on every build, so biome kept reformatting it into a perpetual dirty diff. Ignoring it lets Next own the file. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
153 lines
3.7 KiB
JSON
153 lines
3.7 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"assist": {
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
},
|
|
"formatter": {
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"semicolons": "asNeeded",
|
|
"trailingCommas": "all",
|
|
"quoteStyle": "single",
|
|
"jsxQuoteStyle": "double"
|
|
}
|
|
},
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"useDefaultSwitchClause": "off",
|
|
"useConsistentTypeDefinitions": "off",
|
|
"useAtIndex": "off",
|
|
"useConsistentArrayType": "off",
|
|
"noNestedTernary": "off",
|
|
"useBlockStatements": "off",
|
|
"noNonNullAssertion": "off",
|
|
"useConst": "off",
|
|
"noMagicNumbers": "off"
|
|
},
|
|
"performance": {
|
|
"noNamespaceImport": "off",
|
|
"noImgElement": "off",
|
|
"noBarrelFile": "off",
|
|
"noDelete": "off"
|
|
},
|
|
"suspicious": {
|
|
"noEmptyBlockStatements": "off",
|
|
"noImplicitAnyLet": "off",
|
|
"noGlobalIsNan": "off",
|
|
"noExplicitAny": "off",
|
|
"useAwait": "off",
|
|
"noConsole": "off",
|
|
"noArrayIndexKey": "off",
|
|
"noEvolvingTypes": "off",
|
|
"noDocumentCookie": "off"
|
|
},
|
|
"complexity": {
|
|
"noExcessiveCognitiveComplexity": "off",
|
|
"noForEach": "off",
|
|
"noBannedTypes": "off",
|
|
"noUselessFragments": "off",
|
|
"useLiteralKeys": "off"
|
|
},
|
|
"correctness": {
|
|
"noUnusedVariables": "off",
|
|
"noUnusedFunctionParameters": "off",
|
|
"noUnusedImports": {
|
|
"level": "warn",
|
|
"fix": "safe"
|
|
},
|
|
"useExhaustiveDependencies": "info",
|
|
"noPrecisionLoss": "off"
|
|
},
|
|
"a11y": {
|
|
"noSvgWithoutTitle": "off",
|
|
"useSemanticElements": "off",
|
|
"noLabelWithoutControl": "off",
|
|
"useKeyWithClickEvents": "off",
|
|
"noStaticElementInteractions": "off",
|
|
"noNoninteractiveElementInteractions": "off",
|
|
"useButtonType": "off"
|
|
},
|
|
"nursery": {
|
|
"noShadow": "off"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "info"
|
|
}
|
|
}
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"includes": [
|
|
"packages/**/*.ts",
|
|
"packages/**/*.tsx",
|
|
"packages/**/*.js",
|
|
"packages/**/*.jsx",
|
|
"packages/**/*.json",
|
|
"packages/**/*.css",
|
|
"packages/**/*.md",
|
|
"packages/**/*.mdx",
|
|
"apps/**/*.ts",
|
|
"apps/**/*.tsx",
|
|
"apps/**/*.js",
|
|
"apps/**/*.jsx",
|
|
"!**/node_modules",
|
|
"!**/.next",
|
|
"!**/dist",
|
|
"!**/build",
|
|
"!**/public",
|
|
"!**/components/ui",
|
|
"!**/next-env.d.ts"
|
|
]
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["packages/editor/components/debug/react-scan.tsx"],
|
|
"assist": {
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": [
|
|
"packages/core/**/*.ts",
|
|
"packages/core/**/*.tsx",
|
|
"packages/viewer/**/*.ts",
|
|
"packages/viewer/**/*.tsx",
|
|
"packages/editor/**/*.ts",
|
|
"packages/editor/**/*.tsx"
|
|
],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noRestrictedImports": {
|
|
"level": "error",
|
|
"options": {
|
|
"paths": {
|
|
"@pascal-app/nodes": "Framework packages must not import from @pascal-app/nodes — consult nodeRegistry.get(kind) instead. See plans/editor-node-registry.md."
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|