Ctrl K
ComunidadGuías…

biome.json

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
{
  "$schema": "https://biomejs.dev/schemas/2.5.14/schema.json",
  "vcs": {
    "enabled": true,
    "clientKind": "git",
    "useIgnoreFile": true
  },
  "files": {
    "ignoreUnknown": true,
    "includes": [
      "**",
      "!**/__generated__/**",
      "!**/dist/**",
      "!**/.astro/**",
      "!**/.next/**",
      "!**/node_modules/**",
      "!**/public/admin/**",
      "!**/static/admin/**"
    ],
    "maxSize": 3145728
  },
  "plugins": [
    {
      "path": "./scripts/biome/error-narrowing.grit",
      "includes": [
        "**/packages/v4/**",
        "!**/packages/v4/@tinacms/rich-text/src/plate/components/plate-ui/**",
        "!**/packages/v4/@tinacms/ui/src/components/**",
        "**/packages/v4/@tinacms/ui/src/components/field-wrapper.tsx"
      ]
    },
    {
      "path": "./scripts/biome/conditional-jsx.grit",
      "includes": [
        "**/packages/v4/**/*.tsx",
        "!**/packages/v4/@tinacms/rich-text/src/plate/components/plate-ui/**",
        "!**/packages/v4/@tinacms/ui/src/components/**",
        "**/packages/v4/@tinacms/ui/src/components/field-wrapper.tsx"
      ]
    }
  ],
  "css": { "parser": { "tailwindDirectives": true } },
  "formatter": {
    "enabled": true,
    "useEditorconfig": true,
    "formatWithErrors": false,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineEnding": "lf",
    "lineWidth": 80,
    "attributePosition": "auto",
    "bracketSpacing": true,
    "includes": [
      "**",
      "!**/*.gql",
      "!**/*.json",
      "!**/__generated__",
      "!**/*/admin/**/*.js",
      "!**/.yarn",
      "!**/.pnp.js",
      "!**/.yarnrc.yml",
      "!**/node_modules",
      "!**/.build*",
      "!**/yarn.lock",
      "!**/package-lock.json",
      "!**/.changeset",
      "!**/js/dashboard/build",
      "!**/js/dashboard/src/styles.css",
      "!**/coverage",
      "!**/identity/CHANGELOG.md",
      "!**/js/dashboard/CHANGELOG.md",
      "!**/js/content-api/CHANGELOG.md",
      "!**/terraform/**/.terraform",
      "!**/*.tfstate",
      "!**/.next/**",
      "!**/dist/**",
      "!**/out.md",
      "!**/_response.md"
    ]
  },
  "assist": { "actions": { "source": { "organizeImports": "on" } } },
  "linter": {
    "enabled": true,
    "rules": {
      "preset": "none",
      "complexity": {
        "noBannedTypes": "off",
        "noUselessTypeConstraint": "error"
      },
      "correctness": {
        "noInvalidUseBeforeDeclaration": "off",
        "noPrecisionLoss": "error",
        "noUnusedVariables": "off",
        "useExhaustiveDependencies": "off",
        "useHookAtTopLevel": "warn"
      },
      "style": {
        "noInferrableTypes": "off",
        "noNamespace": "error",
        "noNonNullAssertion": "off",
        "useAsConstAssertion": "warn",
        "useBlockStatements": "off",
        "useConst": "warn",
        "useArrayLiterals": "off"
      },
      "suspicious": {
        "noEmptyBlockStatements": "off",
        "noExplicitAny": "off",
        "noExtraNonNullAssertion": "error",
        "noMisleadingInstantiator": "error",
        "useNamespaceKeyword": "error"
      }
    },
    "includes": [
      "**",
      "!**/packages/demo-*",
      "!**/node_modules",
      "!**/build",
      "!**/*.d.ts",
      "!**/dist/**"
    ]
  },
  "javascript": {
    "formatter": {
      "jsxQuoteStyle": "single",
      "quoteProperties": "asNeeded",
      "trailingCommas": "es5",
      "semicolons": "always",
      "arrowParentheses": "always",
      "bracketSameLine": false,
      "quoteStyle": "single",
      "attributePosition": "auto",
      "bracketSpacing": true
    }
  },
  "overrides": [
    {
      "includes": ["**/tsconfig.*.json"],
      "json": { "parser": { "allowComments": true } }
    },
    {
      "includes": ["**/examples/astro/visual-editing/**/*.css"],
      "linter": { "enabled": false },
      "formatter": { "enabled": false }
    },
    {
      "includes": [
        "**/packages/v4/@tinacms/tinacms/src/**",
        "!**/*.test.ts",
        "!**/*.test.tsx"
      ],
      "linter": {
        "rules": {
          "suspicious": {
            "noExplicitAny": "error"
          }
        }
      }
    },
    {
      "includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
      "linter": {
        "rules": {
          "correctness": {
            "noConstAssign": "off",
            "noGlobalObjectCalls": "off",
            "noInvalidConstructorSuper": "off",
            "noSetterReturn": "off",
            "noUndeclaredVariables": "off",
            "noUnreachable": "off",
            "noUnreachableSuper": "off",
            "noInvalidBuiltinInstantiation": "off",
            "useValidTypeof": "off"
          },
          "style": {
            "useConst": "error"
          },
          "suspicious": {
            "noDuplicateClassMembers": "off",
            "noDuplicateObjectKeys": "off",
            "noDuplicateParameters": "off",
            "noFunctionAssign": "off",
            "noImportAssign": "off",
            "noRedeclare": "off",
            "noUnsafeNegation": "off",
            "useGetterReturn": "off",
            "noVar": "error"
          },
          "complexity": {
            "noArguments": "error"
          }
        }
      }
    }
  ]
}