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",
|
||||
"root": false,
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"suspicious": {
|
||||
"noDoubleEquals": "off",
|
||||
"noExplicitAny": "off",
|
||||
"noDebugger": "off",
|
||||
"noApproximativeNumericConstant": "off",
|
||||
"noAsyncPromiseExecutor": "off"
|
||||
"correctness": {
|
||||
"noUnusedVariables": "error",
|
||||
"noUnusedImports": "error",
|
||||
"noEmptyPattern": "error",
|
||||
"useExhaustiveDependencies": "off"
|
||||
},
|
||||
"style": {
|
||||
"noUselessElse": "off",
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useDefaultParameterLast": "error",
|
||||
|
|
@ -24,25 +22,21 @@
|
|||
"useNumberNamespace": "error",
|
||||
"noInferrableTypes": "error"
|
||||
},
|
||||
"complexity": {
|
||||
"noBannedTypes": "off",
|
||||
"noForEach": "off",
|
||||
"useLiteralKeys": "off",
|
||||
"noUselessConstructor": "off",
|
||||
"useArrowFunction": "off",
|
||||
"useDateNow":"off",
|
||||
"noUselessFragments":"off"
|
||||
"suspicious": {
|
||||
"noDebugger": "error",
|
||||
"noDoubleEquals": "off",
|
||||
"noExplicitAny": "off",
|
||||
"noApproximativeNumericConstant": "warn",
|
||||
"noAsyncPromiseExecutor": "warn"
|
||||
},
|
||||
"correctness": {
|
||||
"noEmptyPattern": "off",
|
||||
"noUnusedVariables": "error",
|
||||
"noUnusedImports": "off",
|
||||
"useExhaustiveDependencies":"off"
|
||||
|
||||
|
||||
"complexity": {
|
||||
"noUselessConstructor": "error",
|
||||
"noBannedTypes": "warn",
|
||||
"useArrowFunction": "warn",
|
||||
"useDateNow": "off"
|
||||
},
|
||||
"performance": {
|
||||
"noAccumulatingSpread": "off"
|
||||
"noAccumulatingSpread": "warn"
|
||||
},
|
||||
"a11y": {
|
||||
"useSemanticElements": "off"
|
||||
|
|
@ -50,15 +44,15 @@
|
|||
}
|
||||
},
|
||||
"formatter": {
|
||||
"indentWidth": 2,
|
||||
"enabled": true,
|
||||
"indentStyle": "space",
|
||||
"enabled": true
|
||||
"indentWidth": 2
|
||||
},
|
||||
"javascript": {
|
||||
"formatter": {
|
||||
"enabled": true,
|
||||
"semicolons": "asNeeded",
|
||||
"arrowParentheses": "always",
|
||||
"enabled": true,
|
||||
"bracketSameLine": false,
|
||||
"trailingCommas": "all",
|
||||
"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",
|
||||
"extends": ["Documentos/biome.json"],
|
||||
"files": {},
|
||||
"linter": {
|
||||
"rules": {
|
||||
"style": {
|
||||
"noParameterAssign": "error",
|
||||
"useAsConstAssertion": "error",
|
||||
"useDefaultParameterLast": "error",
|
||||
"useEnumInitializers": "error",
|
||||
"useSelfClosingElements": "error",
|
||||
"useSingleVarDeclarator": "error",
|
||||
"noUnusedTemplateLiteral": "error",
|
||||
"useNumberNamespace": "error",
|
||||
"noInferrableTypes": "error",
|
||||
"noUselessElse": "error"
|
||||
}
|
||||
}
|
||||
"files": {
|
||||
"includes": ["src/**/*.{js,ts,jsx,tsx}"]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-comuns",
|
||||
"version": "0.209.0",
|
||||
"version": "0.210.0",
|
||||
"description": "",
|
||||
"main": "./dist-back/index.js",
|
||||
"module": "./dist-front/index.mjs",
|
||||
|
|
@ -13,7 +13,7 @@
|
|||
}
|
||||
},
|
||||
"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",
|
||||
"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 "./constantes"
|
||||
export * from "./consulta"
|
||||
export * from "./tipagemRotas"
|
||||
export * from "./unidades_medida"
|
||||
export * from "./uuid"
|
||||
export * from "./variaveisComuns"
|
||||
export * from "./dayjs"
|
||||
export * from "./ecosistema"
|
||||
export * from "./extensoes"
|
||||
export * from "./logger"
|
||||
export * from "./testes-de-variaveis"
|
||||
export * from "./texto_busca"
|
||||
export * from "./tipagemRotas"
|
||||
export * from "./unidades_medida"
|
||||
export * from "./uuid"
|
||||
export * from "./variaveisComuns"
|
||||
|
|
|
|||
|
|
@ -1,25 +1,29 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
/* Linguagem e Ambiente */
|
||||
"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. */
|
||||
"experimentalDecorators": true, /* Habilita o suporte experimental a decoradores. */
|
||||
"emitDecoratorMetadata": true, /* Emite metadados de tipos de design para declarações decoradas. */
|
||||
"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. */,
|
||||
"experimentalDecorators": true /* Habilita o suporte experimental a decoradores. */,
|
||||
"emitDecoratorMetadata": true /* Emite metadados de tipos de design para declarações decoradas. */,
|
||||
|
||||
/* Módulos */
|
||||
"moduleResolution": "node", /* Define como o TypeScript resolve módulos. */
|
||||
"rootDir": "./src", /* Define a pasta raiz para os arquivos de origem. */
|
||||
"moduleResolution": "node" /* Define como o TypeScript resolve módulos. */,
|
||||
"rootDir": "./src" /* Define a pasta raiz para os arquivos de origem. */,
|
||||
|
||||
/* 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 */
|
||||
"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. */
|
||||
"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. */,
|
||||
|
||||
/* Verificação 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. */
|
||||
"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. */
|
||||
},
|
||||
"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)
|
||||
import { defineConfig, type Options } from "tsup"
|
||||
import { defineConfig } from "tsup"
|
||||
import { tsup_config_back } from "./tsup.config.back"
|
||||
import { tsup_config_front } from "./tsup.config.front"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue