Skip to content

Commit 134b42f

Browse files
committed
Merging Dev and Formatting
2 parents 6aee78b + 5d3df26 commit 134b42f

File tree

202 files changed

+1427
-1013
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+1427
-1013
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
[![Fission - Unit Test](https://github.com/Autodesk/synthesis/actions/workflows/FissionUnitTest.yml/badge.svg?branch=prod)](https://github.com/Autodesk/synthesis/actions/workflows/FissionUnitTest.yml)
77
[![Fission - Packaging](https://github.com/Autodesk/synthesis/actions/workflows/FissionPackage.yml/badge.svg?branch=prod)](https://github.com/Autodesk/synthesis/actions/workflows/FissionPackage.yml)
8-
[![Fission - Lint/Format](https://github.com/Autodesk/synthesis/actions/workflows/FissionESLintFormat.yml/badge.svg?branch=prod)](https://github.com/Autodesk/synthesis/actions/workflows/FissionESLintFormat.yml)
8+
[![Fission - Lint/Format](https://github.com/Autodesk/synthesis/actions/workflows/FissionBiome.yml/badge.svg?branch=prod)](https://github.com/Autodesk/synthesis/actions/workflows/FissionBiome.yml)
99
[![Fusion - Format](https://github.com/Autodesk/synthesis/actions/workflows/BlackFormat.yml/badge.svg?branch=prod)](https://github.com/Autodesk/synthesis/actions/workflows/BlackFormat.yml)
1010

1111
Synthesis is a robotics simulator designed by and for [FIRST®](https://www.firstinspires.org/) robotics students to help teams design, strategize, test and practice. Teams have the ability to import their own robots and fields using our [Fusion Exporter](/exporter/) or use the pre-made ones available within Synthesis.

exporter/SynthesisFusionAddin/src/UI/DesignCheckTab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
logger = Logging.getLogger()
1010

11+
1112
class DesignRule(TypedDict):
1213
name: str
1314
calculation: Callable[[], float]
@@ -86,7 +87,7 @@ def fusion_design_height(self) -> float:
8687
design = adsk.fusion.Design.cast(gm.app.activeProduct)
8788
if design:
8889
overall_bounding_box = design.rootComponent.orientedMinimumBoundingBox
89-
return float(overall_bounding_box.width)
90+
return float(overall_bounding_box.width)
9091
return 0.0
9192

9293
@Logging.logFailure

fission/.eslintrc.cjs

Lines changed: 0 additions & 119 deletions
This file was deleted.

fission/biome.json

Lines changed: 74 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@
1313
"bracketSameLine": false,
1414
"bracketSpacing": true,
1515
"expand": "auto",
16-
"useEditorconfig": true
16+
"useEditorconfig": true,
17+
"includes": ["src/**", "!dist"]
1718
},
1819
"linter": {
1920
"enabled": true,
21+
"domains": {
22+
"react": "all"
23+
},
2024
"rules": {
2125
"recommended": false,
2226
"complexity": {
@@ -25,6 +29,7 @@
2529
"noExtraBooleanCast": "error",
2630
"noUselessCatch": "error",
2731
"noUselessEscapeInRegex": "error",
32+
"noUselessThisAlias": "error",
2833
"noUselessTypeConstraint": "error"
2934
},
3035
"correctness": {
@@ -46,6 +51,7 @@
4651
"noUnsafeFinally": "error",
4752
"noUnsafeOptionalChaining": "error",
4853
"noUnusedLabels": "error",
54+
"noUnusedImports": "error",
4955
"noUnusedVariables": "error",
5056
"useExhaustiveDependencies": "warn",
5157
"useHookAtTopLevel": "error",
@@ -54,12 +60,69 @@
5460
"useValidTypeof": "error",
5561
"useYield": "error"
5662
},
63+
"nursery": { "noTsIgnore": "error", "noUselessBackrefInRegex": "error" },
5764
"style": {
5865
"noNamespace": "error",
5966
"useArrayLiterals": "error",
60-
"useAsConstAssertion": "error"
67+
"useAsConstAssertion": "error",
68+
"useComponentExportOnlyModules": "warn",
69+
"useNamingConvention": {
70+
"level": "warn",
71+
"options": {
72+
"strictCase": false,
73+
"requireAscii": true,
74+
"conventions": [
75+
{ "selector": { "kind": "class" }, "match": "([^_]*)", "formats": ["PascalCase"] },
76+
{
77+
"selector": { "kind": "classProperty", "modifiers": ["readonly", "static"] },
78+
"match": "[^_]((.*)[^_])?",
79+
"formats": ["CONSTANT_CASE"]
80+
},
81+
{ "selector": { "kind": "classMethod" }, "match": "([^_]*)", "formats": ["camelCase"] },
82+
{
83+
"selector": { "kind": "classMember", "modifiers": ["private"] },
84+
"match": "_([^_]*)",
85+
"formats": ["camelCase"]
86+
},
87+
88+
{ "selector": { "kind": "enumMember" }, "match": "[^_]((.*)[^_])?", "formats": ["CONSTANT_CASE"] },
89+
{ "selector": { "kind": "function" }, "match": "([^_]*)", "formats": ["camelCase"] },
90+
91+
{ "selector": { "kind": "objectLiteralMethod" }, "match": "([^_]*)", "formats": ["camelCase"] },
92+
{
93+
"selector": { "kind": "objectLiteralProperty" },
94+
"match": "[^_]((.*)[^_])?",
95+
"formats": ["camelCase", "snake_case", "PascalCase", "CONSTANT_CASE"]
96+
},
97+
{ "selector": { "kind": "typeMethod" }, "match": "(.*)[^_]", "formats": ["camelCase"] },
98+
{ "selector": { "kind": "typeProperty" }, "match": "(.*)[^_]", "formats": ["camelCase", "PascalCase"] },
99+
{ "selector": { "kind": "classMethod" }, "match": "(.*)[^_]", "formats": ["camelCase"] },
100+
{
101+
"selector": { "kind": "importNamespace" },
102+
"match": "([^_]*)",
103+
"formats": ["camelCase", "PascalCase", "CONSTANT_CASE"]
104+
},
105+
{
106+
"selector": { "kind": "importAlias" },
107+
"match": "([^_]*)",
108+
"formats": ["camelCase", "PascalCase", "CONSTANT_CASE"]
109+
},
110+
111+
{ "selector": { "kind": "functionParameter" }, "match": "([^_]*)", "formats": ["camelCase"] },
112+
{
113+
"selector": { "kind": "const" },
114+
"match": "[^_]((.*)[^_])?",
115+
"formats": ["PascalCase", "camelCase", "CONSTANT_CASE"]
116+
},
117+
{ "selector": { "kind": "variable" }, "match": "[^_]((.*)[^_])?", "formats": ["camelCase"] },
118+
{ "selector": { "kind": "typeLike" }, "match": "([^_]*)", "formats": ["PascalCase", "camelCase"] },
119+
{ "match": "_?([^_]*)", "formats": ["camelCase"] }
120+
]
121+
}
122+
}
61123
},
62124
"suspicious": {
125+
"noAssignInExpressions": "error",
63126
"noAsyncPromiseExecutor": "error",
64127
"noCatchAssign": "error",
65128
"noClassAssign": "error",
@@ -91,7 +154,7 @@
91154
"useGetterReturn": "error"
92155
}
93156
},
94-
"includes": ["**/*.{ts,tsx}", "src/proto/mirabuf.*", "src/samples/*"]
157+
"includes": ["src/**/*.{ts,tsx,js,json}", "./*.{ts,js,json,html}"]
95158
},
96159
"javascript": {
97160
"formatter": {
@@ -101,47 +164,19 @@
101164
"semicolons": "asNeeded",
102165
"arrowParentheses": "asNeeded",
103166
"bracketSameLine": false,
167+
"indentStyle": "space",
168+
"indentWidth": 4,
104169
"quoteStyle": "double",
105170
"attributePosition": "auto",
106171
"bracketSpacing": true
107-
}
172+
},
173+
"globals": ["COMMIT_HASH"]
108174
},
109175
"html": { "formatter": { "selfCloseVoidElements": "always" } },
110176
"overrides": [
111-
{
112-
"includes": ["*.ts", "*.tsx", "*.mts", "*.cts"],
113-
"linter": {
114-
"rules": {
115-
"complexity": { "noArguments": "error" },
116-
"correctness": {
117-
"noConstAssign": "off",
118-
"noGlobalObjectCalls": "off",
119-
"noInvalidBuiltinInstantiation": "off",
120-
"noInvalidConstructorSuper": "off",
121-
"noSetterReturn": "off",
122-
"noUndeclaredVariables": "off",
123-
"noUnreachable": "off",
124-
"noUnreachableSuper": "off"
125-
},
126-
"style": { "useConst": "error" },
127-
"suspicious": {
128-
"noDuplicateClassMembers": "off",
129-
"noDuplicateObjectKeys": "off",
130-
"noDuplicateParameters": "off",
131-
"noFunctionAssign": "off",
132-
"noImportAssign": "off",
133-
"noRedeclare": "off",
134-
"noUnsafeNegation": "off",
135-
"noVar": "error",
136-
"useGetterReturn": "off"
137-
}
138-
}
139-
}
140-
},
141-
{ "includes": ["*.json"], "formatter": { "indentWidth": 2 } }
177+
{ "includes": ["*.json"], "formatter": { "indentWidth": 2 } },
178+
{ "includes": ["src/proto/**/*"], "linter": { "enabled": false } }
142179
],
143-
"assist": {
144-
"enabled": true,
145-
"actions": { "source": { "organizeImports": "on" } }
146-
}
180+
181+
"assist": { "enabled": true, "actions": { "source": { "organizeImports": "on" } } }
147182
}

fission/prettier.config.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)