{
  "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",

  "vcs": {
    "enabled": true,
    "clientKind": "git",
    "useIgnoreFile": true
  },

  "files": {
    "includes": [
      "assets/**/*.js",
      "assets/**/*.css",
      "assets/controllers.json",
      "biome.jsonc",
      "package.json",
      "postcss.config.js",
      "stylelint.config.mjs",
      "web/manifest.json",
      "webpack.config.js",
      // The application loads its routes from FOSJsRouting at runtime.
      "!web/js/fos_js_routes.js"
    ]
  },

  "formatter": {
    "enabled": true,
    "indentStyle": "space",
    "indentWidth": 2,
    "lineWidth": 100
  },

  "linter": {
    "enabled": true,
    "rules": {
      "preset": "recommended",
      "a11y": {
        "useGenericFontNames": "off"
      },
      "suspicious": {
        "noDocumentCookie": "off",
        "noDuplicateProperties": "off",
        "noExplicitAny": "off"
      },
      "complexity": {
        "noImportantStyles": "off"
      },
      "style": {
        "noDescendingSpecificity": "off",
        "noNonNullAssertion": "off"
      }
    }
  },

  "javascript": {
    "globals": ["Routing"],
    "formatter": {
      "quoteStyle": "single",
      "semicolons": "always",
      "trailingCommas": "es5"
    }
  },

  "css": {
    "formatter": {
      "quoteStyle": "single"
    }
  }
}
