bkp
This commit is contained in:
parent
2d15095bd6
commit
4ef243bcad
7 changed files with 55 additions and 63 deletions
|
|
@ -1,19 +1,17 @@
|
||||||
{
|
{
|
||||||
"root": false,
|
|
||||||
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
|
"$schema": "../node_modules/@biomejs/biome/configuration_schema.json",
|
||||||
|
"root": false,
|
||||||
"linter": {
|
"linter": {
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"rules": {
|
"rules": {
|
||||||
"recommended": true,
|
"recommended": true,
|
||||||
"suspicious": {
|
"correctness": {
|
||||||
"noDoubleEquals": "off",
|
"noUnusedVariables": "error",
|
||||||
"noExplicitAny": "off",
|
"noUnusedImports": "error",
|
||||||
"noDebugger": "off",
|
"noEmptyPattern": "error",
|
||||||
"noApproximativeNumericConstant": "off",
|
"useExhaustiveDependencies": "off"
|
||||||
"noAsyncPromiseExecutor": "off"
|
|
||||||
},
|
},
|
||||||
"style": {
|
"style": {
|
||||||
"noUselessElse": "off",
|
|
||||||
"noParameterAssign": "error",
|
"noParameterAssign": "error",
|
||||||
"useAsConstAssertion": "error",
|
"useAsConstAssertion": "error",
|
||||||
"useDefaultParameterLast": "error",
|
"useDefaultParameterLast": "error",
|
||||||
|
|
@ -24,25 +22,21 @@
|
||||||
"useNumberNamespace": "error",
|
"useNumberNamespace": "error",
|
||||||
"noInferrableTypes": "error"
|
"noInferrableTypes": "error"
|
||||||
},
|
},
|
||||||
"complexity": {
|
"suspicious": {
|
||||||
"noBannedTypes": "off",
|
"noDebugger": "error",
|
||||||
"noForEach": "off",
|
"noDoubleEquals": "off",
|
||||||
"useLiteralKeys": "off",
|
"noExplicitAny": "off",
|
||||||
"noUselessConstructor": "off",
|
"noApproximativeNumericConstant": "warn",
|
||||||
"useArrowFunction": "off",
|
"noAsyncPromiseExecutor": "warn"
|
||||||
"useDateNow":"off",
|
|
||||||
"noUselessFragments":"off"
|
|
||||||
},
|
},
|
||||||
"correctness": {
|
"complexity": {
|
||||||
"noEmptyPattern": "off",
|
"noUselessConstructor": "error",
|
||||||
"noUnusedVariables": "error",
|
"noBannedTypes": "warn",
|
||||||
"noUnusedImports": "off",
|
"useArrowFunction": "warn",
|
||||||
"useExhaustiveDependencies":"off"
|
"useDateNow": "off"
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
"performance": {
|
"performance": {
|
||||||
"noAccumulatingSpread": "off"
|
"noAccumulatingSpread": "warn"
|
||||||
},
|
},
|
||||||
"a11y": {
|
"a11y": {
|
||||||
"useSemanticElements": "off"
|
"useSemanticElements": "off"
|
||||||
|
|
@ -50,15 +44,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"formatter": {
|
"formatter": {
|
||||||
"indentWidth": 2,
|
"enabled": true,
|
||||||
"indentStyle": "space",
|
"indentStyle": "space",
|
||||||
"enabled": true
|
"indentWidth": 2
|
||||||
},
|
},
|
||||||
"javascript": {
|
"javascript": {
|
||||||
"formatter": {
|
"formatter": {
|
||||||
|
"enabled": true,
|
||||||
"semicolons": "asNeeded",
|
"semicolons": "asNeeded",
|
||||||
"arrowParentheses": "always",
|
"arrowParentheses": "always",
|
||||||
"enabled": true,
|
|
||||||
"bracketSameLine": false,
|
"bracketSameLine": false,
|
||||||
"trailingCommas": "all",
|
"trailingCommas": "all",
|
||||||
"attributePosition": "multiline"
|
"attributePosition": "multiline"
|
||||||
|
|
|
||||||
10
README.md
10
README.md
|
|
@ -1 +1,9 @@
|
||||||
# comuns
|
Biomejs
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
|
||||||
|
"extends": [
|
||||||
|
"Documentos/biome.json"
|
||||||
|
]
|
||||||
|
}
|
||||||
18
biome.json
18
biome.json
|
|
@ -1,21 +1,7 @@
|
||||||
{
|
{
|
||||||
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
|
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
|
||||||
"extends": ["Documentos/biome.json"],
|
"extends": ["Documentos/biome.json"],
|
||||||
"files": {},
|
"files": {
|
||||||
"linter": {
|
"includes": ["src/**/*.{js,ts,jsx,tsx}"]
|
||||||
"rules": {
|
|
||||||
"style": {
|
|
||||||
"noParameterAssign": "error",
|
|
||||||
"useAsConstAssertion": "error",
|
|
||||||
"useDefaultParameterLast": "error",
|
|
||||||
"useEnumInitializers": "error",
|
|
||||||
"useSelfClosingElements": "error",
|
|
||||||
"useSingleVarDeclarator": "error",
|
|
||||||
"noUnusedTemplateLiteral": "error",
|
|
||||||
"useNumberNamespace": "error",
|
|
||||||
"noInferrableTypes": "error",
|
|
||||||
"noUselessElse": "error"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-comuns",
|
"name": "p-comuns",
|
||||||
"version": "0.209.0",
|
"version": "0.210.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "./dist-back/index.js",
|
"main": "./dist-back/index.js",
|
||||||
"module": "./dist-front/index.mjs",
|
"module": "./dist-front/index.mjs",
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"biome": "npx @biomejs/biome check --write ./src",
|
"biome": "npx @biomejs/biome format . --write && npx @biomejs/biome check .",
|
||||||
"check": "pnpm run biome && npx tsc --noEmit",
|
"check": "pnpm run biome && npx tsc --noEmit",
|
||||||
"build": "npm --no-git-tag-version version minor && pnpm run check && tsup --config ./tsup/tsup.config.ts"
|
"build": "npm --no-git-tag-version version minor && pnpm run check && tsup --config ./tsup/tsup.config.ts"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,13 @@ export * from "./aleatorio"
|
||||||
export * from "./cacheMemoria"
|
export * from "./cacheMemoria"
|
||||||
export * from "./constantes"
|
export * from "./constantes"
|
||||||
export * from "./consulta"
|
export * from "./consulta"
|
||||||
|
export * from "./tipagemRotas"
|
||||||
|
export * from "./unidades_medida"
|
||||||
|
export * from "./uuid"
|
||||||
|
export * from "./variaveisComuns"
|
||||||
export * from "./dayjs"
|
export * from "./dayjs"
|
||||||
export * from "./ecosistema"
|
export * from "./ecosistema"
|
||||||
export * from "./extensoes"
|
export * from "./extensoes"
|
||||||
export * from "./logger"
|
export * from "./logger"
|
||||||
export * from "./testes-de-variaveis"
|
export * from "./testes-de-variaveis"
|
||||||
export * from "./texto_busca"
|
export * from "./texto_busca"
|
||||||
export * from "./tipagemRotas"
|
|
||||||
export * from "./unidades_medida"
|
|
||||||
export * from "./uuid"
|
|
||||||
export * from "./variaveisComuns"
|
|
||||||
|
|
|
||||||
|
|
@ -1,25 +1,29 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
/* Linguagem e Ambiente */
|
/* Linguagem e Ambiente */
|
||||||
"target": "ES2020", /* Define a versão do JavaScript para o código emitido. */
|
"target": "ES2020" /* Define a versão do JavaScript para o código emitido. */,
|
||||||
"lib": ["dom.iterable"], /* Especifica as bibliotecas padrão a serem incluídas, como DOM para iteradores. */
|
"lib": [
|
||||||
"experimentalDecorators": true, /* Habilita o suporte experimental a decoradores. */
|
"dom.iterable"
|
||||||
"emitDecoratorMetadata": true, /* Emite metadados de tipos de design para declarações decoradas. */
|
] /* Especifica as bibliotecas padrão a serem incluídas, como DOM para iteradores. */,
|
||||||
|
"experimentalDecorators": true /* Habilita o suporte experimental a decoradores. */,
|
||||||
|
"emitDecoratorMetadata": true /* Emite metadados de tipos de design para declarações decoradas. */,
|
||||||
|
|
||||||
/* Módulos */
|
/* Módulos */
|
||||||
"moduleResolution": "node", /* Define como o TypeScript resolve módulos. */
|
"moduleResolution": "node" /* Define como o TypeScript resolve módulos. */,
|
||||||
"rootDir": "./src", /* Define a pasta raiz para os arquivos de origem. */
|
"rootDir": "./src" /* Define a pasta raiz para os arquivos de origem. */,
|
||||||
|
|
||||||
/* Emissão */
|
/* Emissão */
|
||||||
"declaration": true, /* Gera arquivos .d.ts para os arquivos TypeScript. */
|
"declaration": true /* Gera arquivos .d.ts para os arquivos TypeScript. */,
|
||||||
|
|
||||||
/* Interoperabilidade de Módulos */
|
/* Interoperabilidade de Módulos */
|
||||||
"esModuleInterop": true, /* Habilita a compatibilidade com módulos CommonJS ao importar. */
|
"esModuleInterop": true /* Habilita a compatibilidade com módulos CommonJS ao importar. */,
|
||||||
"forceConsistentCasingInFileNames": true,/* Garante consistência na diferenciação entre maiúsculas e minúsculas em nomes de arquivos. */
|
"forceConsistentCasingInFileNames": true /* Garante consistência na diferenciação entre maiúsculas e minúsculas em nomes de arquivos. */,
|
||||||
|
|
||||||
/* Verificação de Tipos */
|
/* Verificação de Tipos */
|
||||||
"strict": true, /* Habilita todas as opções de verificação estrita de tipos. */
|
"strict": true /* Habilita todas as opções de verificação estrita de tipos. */,
|
||||||
"skipLibCheck": true /* Ignora a verificação de tipos em arquivos de declaração de bibliotecas. */
|
"skipLibCheck": true /* Ignora a verificação de tipos em arquivos de declaração de bibliotecas. */
|
||||||
},
|
},
|
||||||
"include": ["src/**/*"] /* Inclui todos os arquivos TypeScript dentro da pasta src. */
|
"include": [
|
||||||
|
"src/**/*"
|
||||||
|
] /* Inclui todos os arquivos TypeScript dentro da pasta src. */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// tsup.config.ts (Configuração Ajustada para Back-end)
|
// tsup.config.ts (Configuração Ajustada para Back-end)
|
||||||
import { defineConfig, type Options } from "tsup"
|
import { defineConfig } from "tsup"
|
||||||
import { tsup_config_back } from "./tsup.config.back"
|
import { tsup_config_back } from "./tsup.config.back"
|
||||||
import { tsup_config_front } from "./tsup.config.front"
|
import { tsup_config_front } from "./tsup.config.front"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue