{
  "plugins": [
    "react",
    "import"
  ],
  "rules": {
    "react/forbid-elements": [
      "warn",
      {
        "forbid": []
      }
    ],
    "no-restricted-imports": [
      "warn",
      {
        "patterns": [
          {
            "group": [
              "components/design-system/AppShell/**",
              "components/design-system/Avatar/**",
              "components/design-system/Button/**",
              "components/design-system/CostSummaryStrip/**",
              "components/design-system/DataTable/**",
              "components/design-system/FusionLock/**",
              "components/design-system/Gantt/**",
              "components/design-system/KpiTile/**",
              "components/design-system/ProgressBar/**",
              "components/design-system/ProjectSelector/**",
              "components/design-system/Segmented/**",
              "components/design-system/StatusPill/**",
              "components/design-system/Toolbar/**",
              "components/design-system/ToolbarDivider/**"
            ],
            "message": "Import design-system components from 'index.js', not component internals."
          }
        ]
      }
    ],
    "no-restricted-syntax": [
      "warn",
      {
        "selector": "Literal[value=/#[0-9a-fA-F]{3,8}\\b/]",
        "message": "Raw hex color — use a design-system color token via var()."
      },
      {
        "selector": "Literal[value=/\\b\\d+px\\b/]",
        "message": "Raw px value — use a design-system spacing token via var()."
      },
      {
        "selector": "Literal[value=/font-family\\s*:\\s*(?!['\\\"]?(?:Roboto|Roboto Slab))/i]",
        "message": "Font not provided by the design system. Available: Roboto, Roboto Slab."
      }
    ]
  },
  "overrides": [
    {
      "files": [
        "**/index.js"
      ],
      "rules": {
        "no-restricted-imports": "off"
      }
    }
  ],
  "x-omelette": {
    "components": {
      "AppShell": {
        "replaces": []
      },
      "Avatar": {
        "replaces": []
      },
      "Button": {
        "replaces": []
      },
      "CostSummaryStrip": {
        "replaces": []
      },
      "DataTable": {
        "replaces": []
      },
      "FusionLock": {
        "replaces": []
      },
      "Gantt": {
        "replaces": []
      },
      "KpiTile": {
        "replaces": []
      },
      "ProgressBar": {
        "replaces": []
      },
      "ProjectSelector": {
        "replaces": []
      },
      "Segmented": {
        "replaces": []
      },
      "StatusPill": {
        "replaces": []
      },
      "Toolbar": {
        "replaces": []
      },
      "ToolbarDivider": {
        "replaces": []
      }
    },
    "tokens": [
      "--animate-pulse",
      "--color-accent",
      "--color-actual",
      "--color-actual-bg",
      "--color-brand",
      "--color-brand-soft",
      "--color-brand-strong",
      "--color-canvas",
      "--color-contingency",
      "--color-contingency-soft",
      "--color-fusion",
      "--color-fusion-soft",
      "--color-ink",
      "--color-ink-2",
      "--color-ink-3",
      "--color-line",
      "--color-line-strong",
      "--color-neg",
      "--color-neg-soft",
      "--color-plan",
      "--color-plan-soft",
      "--color-pos",
      "--color-pos-soft",
      "--color-sand",
      "--color-steel",
      "--color-surface",
      "--color-surface-2",
      "--color-surface-3",
      "--color-warn",
      "--color-warn-soft",
      "--color-white",
      "--container-sm",
      "--default-font-family",
      "--default-mono-font-family",
      "--default-transition-duration",
      "--default-transition-timing-function",
      "--font-heading",
      "--font-mono",
      "--font-sans",
      "--font-weight-bold",
      "--font-weight-medium",
      "--font-weight-normal",
      "--font-weight-semibold",
      "--grid-font",
      "--grid-head-h",
      "--grid-row-h",
      "--leading-tight",
      "--radius-md",
      "--radius-sm",
      "--radius-xs",
      "--spacing",
      "--tracking-wide",
      "--tree-indent",
      "--tw-blur",
      "--tw-border-spacing-x",
      "--tw-border-spacing-y",
      "--tw-border-style",
      "--tw-brightness",
      "--tw-contrast",
      "--tw-drop-shadow",
      "--tw-drop-shadow-alpha",
      "--tw-drop-shadow-color",
      "--tw-drop-shadow-size",
      "--tw-font-weight",
      "--tw-grayscale",
      "--tw-hue-rotate",
      "--tw-inset-ring-color",
      "--tw-inset-ring-shadow",
      "--tw-inset-shadow",
      "--tw-inset-shadow-alpha",
      "--tw-inset-shadow-color",
      "--tw-invert",
      "--tw-leading",
      "--tw-opacity",
      "--tw-outline-style",
      "--tw-ring-color",
      "--tw-ring-inset",
      "--tw-ring-offset-color",
      "--tw-ring-offset-shadow",
      "--tw-ring-offset-width",
      "--tw-ring-shadow",
      "--tw-rotate-x",
      "--tw-rotate-y",
      "--tw-rotate-z",
      "--tw-saturate",
      "--tw-sepia",
      "--tw-shadow",
      "--tw-shadow-alpha",
      "--tw-shadow-color",
      "--tw-skew-x",
      "--tw-skew-y",
      "--tw-space-y-reverse",
      "--tw-tracking"
    ],
    "tokenKinds": {
      "--tw-border-spacing-x": "spacing",
      "--tw-border-spacing-y": "spacing",
      "--tw-rotate-x": "color",
      "--tw-rotate-y": "color",
      "--tw-rotate-z": "color",
      "--tw-skew-x": "color",
      "--tw-skew-y": "color",
      "--tw-space-y-reverse": "spacing",
      "--tw-border-style": "other",
      "--tw-leading": "font",
      "--tw-font-weight": "font",
      "--tw-tracking": "font",
      "--tw-shadow": "shadow",
      "--tw-shadow-color": "shadow",
      "--tw-shadow-alpha": "shadow",
      "--tw-inset-shadow": "shadow",
      "--tw-inset-shadow-color": "shadow",
      "--tw-inset-shadow-alpha": "shadow",
      "--tw-ring-color": "color",
      "--tw-ring-shadow": "shadow",
      "--tw-inset-ring-color": "color",
      "--tw-inset-ring-shadow": "shadow",
      "--tw-ring-inset": "spacing",
      "--tw-ring-offset-width": "spacing",
      "--tw-ring-offset-color": "color",
      "--tw-ring-offset-shadow": "shadow",
      "--tw-outline-style": "other",
      "--tw-blur": "color",
      "--tw-brightness": "color",
      "--tw-contrast": "color",
      "--tw-grayscale": "color",
      "--tw-hue-rotate": "color",
      "--tw-invert": "color",
      "--tw-opacity": "color",
      "--tw-saturate": "color",
      "--tw-sepia": "color",
      "--tw-drop-shadow": "shadow",
      "--tw-drop-shadow-color": "shadow",
      "--tw-drop-shadow-alpha": "shadow",
      "--tw-drop-shadow-size": "shadow",
      "--font-sans": "font",
      "--font-mono": "font",
      "--color-white": "color",
      "--spacing": "spacing",
      "--container-sm": "spacing",
      "--font-weight-normal": "font",
      "--font-weight-medium": "font",
      "--font-weight-semibold": "font",
      "--font-weight-bold": "font",
      "--tracking-wide": "font",
      "--leading-tight": "font",
      "--radius-xs": "radius",
      "--radius-sm": "radius",
      "--radius-md": "radius",
      "--animate-pulse": "other",
      "--default-transition-duration": "other",
      "--default-transition-timing-function": "other",
      "--default-font-family": "font",
      "--default-mono-font-family": "font",
      "--font-heading": "font",
      "--color-canvas": "color",
      "--color-surface": "color",
      "--color-surface-2": "color",
      "--color-surface-3": "color",
      "--color-line": "color",
      "--color-line-strong": "color",
      "--color-ink": "color",
      "--color-ink-2": "color",
      "--color-ink-3": "color",
      "--color-brand": "color",
      "--color-brand-strong": "color",
      "--color-brand-soft": "color",
      "--color-sand": "color",
      "--color-steel": "color",
      "--color-accent": "color",
      "--color-plan": "color",
      "--color-plan-soft": "color",
      "--color-actual": "color",
      "--color-actual-bg": "color",
      "--color-pos": "color",
      "--color-pos-soft": "color",
      "--color-neg": "color",
      "--color-neg-soft": "color",
      "--color-warn": "color",
      "--color-warn-soft": "color",
      "--color-contingency": "color",
      "--color-contingency-soft": "color",
      "--color-fusion": "color",
      "--color-fusion-soft": "color",
      "--grid-row-h": "spacing",
      "--grid-head-h": "spacing",
      "--grid-font": "font",
      "--tree-indent": "spacing"
    },
    "fontFamilies": [
      "Roboto",
      "Roboto Slab"
    ]
  }
}