style: clean up code formatting and remove trailing whitespace

refactor: reorganize imports and fix type imports
This commit is contained in:
Evandro Fonseca Junior committed 2025-11-11 03:08:36 -03:00
1 parent d3704602fd
commit 47c04de6fe
232 files changed
+7140 -4798

No files matched your search

+2 -2
View File
@@ -36,7 +36,7 @@ test("Schema Prisma do Item não possui campos de preço/valor", () => {
const content = fs.readFileSync(schemaPath, "utf8");
const itemBlockMatch = content.match(/model\s+Item\s+\{[\s\S]*?\}/);
assert.ok(itemBlockMatch, "Bloco model Item não encontrado no schema.prisma");
const itemBlock = itemBlockMatch![0];
const itemBlock = itemBlockMatch?.[0];
const forbidden = [/price/i, /value/i, /sell_value/i, /buy_price/i];
for (const re of forbidden) {
assert.ok(!re.test(itemBlock), `Campo proibido detectado no Item: ${re}`);
@@ -59,4 +59,4 @@ async function run() {
console.log(`\n${passed}/${tests.length} testes passaram.`);
}
run();
run();