[{"data":1,"prerenderedAt":265},["ShallowReactive",2],{"navigation_docs":3,"-pinia":48,"-pinia-surround":261},[4,8,12,16,20,24,28,32,36,40,44],{"title":5,"path":6,"stem":7},"CLI","\u002Fcli","1.cli",{"title":9,"path":10,"stem":11},"Nuxt","\u002Fnuxt","2.nuxt",{"title":13,"path":14,"stem":15},"Vue","\u002Fvue","3.vue",{"title":17,"path":18,"stem":19},"Vite","\u002Fvite","4.vite",{"title":21,"path":22,"stem":23},"Nitro","\u002Fnitro","5.nitro",{"title":25,"path":26,"stem":27},"TypeScript","\u002Ftypescript","6.typescript",{"title":29,"path":30,"stem":31},"shadcn","\u002Fshadcn","7.shadcn",{"title":33,"path":34,"stem":35},"Package","\u002Fpackage","8.package",{"title":37,"path":38,"stem":39},"Extending Doctor","\u002Fextending","9.extending",{"title":41,"path":42,"stem":43},"MCP","\u002Fmcp","9.mcp",{"title":45,"path":46,"stem":47},"Pinia","\u002Fpinia","9.pinia",{"id":49,"title":45,"body":50,"description":245,"extension":246,"links":247,"meta":256,"navigation":258,"path":46,"seo":259,"stem":47,"__hash__":260},"docs\u002F9.pinia.md",{"type":51,"value":52,"toc":241},"minimark",[53,70,75,78,106,112,127,134,154,161,199,203,223,234,237],[54,55,56,57,61,62,65,66,69],"p",{},"The Pinia Rule Pack checks ",[58,59,60],"code",{},"defineStore()"," calls in Vue, Vite, and Nuxt projects. Pinia is a Vue ecosystem library rather than part of Vue or Nuxt, so the pack activates on its own when Project Inventory contains ",[58,63,64],{},"pinia"," or ",[58,67,68],{},"@pinia\u002Fnuxt",".",[71,72,74],"h2",{"id":73},"install-and-run","Install and run",[54,76,77],{},"Install Vite Doctor in the project:",[79,80,85],"pre",{"className":81,"code":82,"language":83,"meta":84,"style":84},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add -D vite-doctor\n","bash","",[58,86,87],{"__ignoreMap":84},[88,89,92,96,100,103],"span",{"class":90,"line":91},"line",1,[88,93,95],{"class":94},"sBMFI","pnpm",[88,97,99],{"class":98},"sfazB"," add",[88,101,102],{"class":98}," -D",[88,104,105],{"class":98}," vite-doctor\n",[54,107,108,109,111],{},"The Recommended Preset runs automatically and reports store ids that more than one ",[58,110,60],{}," call registers:",[79,113,115],{"className":81,"code":114,"language":83,"meta":84,"style":84},"pnpm vite-doctor .\n",[58,116,117],{"__ignoreMap":84},[88,118,119,121,124],{"class":90,"line":91},[88,120,95],{"class":94},[88,122,123],{"class":98}," vite-doctor",[88,125,126],{"class":98}," .\n",[54,128,129,130,133],{},"The Strict Preset adds the ",[58,131,132],{},"use\u003CId>Store"," naming convention:",[79,135,137],{"className":81,"code":136,"language":83,"meta":84,"style":84},"pnpm vite-doctor . --extends auto,pinia\u002Fstrict\n",[58,138,139],{"__ignoreMap":84},[88,140,141,143,145,148,151],{"class":90,"line":91},[88,142,95],{"class":94},[88,144,123],{"class":98},[88,146,147],{"class":98}," .",[88,149,150],{"class":98}," --extends",[88,152,153],{"class":98}," auto,pinia\u002Fstrict\n",[54,155,156,157,160],{},"To diagnose one Rule, select it with ",[58,158,159],{},"--rules",". Strict-only Rules also need the Strict Preset:",[79,162,164],{"className":81,"code":163,"language":83,"meta":84,"style":84},"pnpm vite-doctor . --rules pinia\u002Fstores\u002Funique-store-id\npnpm vite-doctor . --extends auto,pinia\u002Fstrict --rules pinia\u002Fstores\u002Fstore-name-matches-id\n",[58,165,166,180],{"__ignoreMap":84},[88,167,168,170,172,174,177],{"class":90,"line":91},[88,169,95],{"class":94},[88,171,123],{"class":98},[88,173,147],{"class":98},[88,175,176],{"class":98}," --rules",[88,178,179],{"class":98}," pinia\u002Fstores\u002Funique-store-id\n",[88,181,183,185,187,189,191,194,196],{"class":90,"line":182},2,[88,184,95],{"class":94},[88,186,123],{"class":98},[88,188,147],{"class":98},[88,190,150],{"class":98},[88,192,193],{"class":98}," auto,pinia\u002Fstrict",[88,195,176],{"class":98},[88,197,198],{"class":98}," pinia\u002Fstores\u002Fstore-name-matches-id\n",[71,200,202],{"id":201},"what-doctor-reads","What Doctor reads",[54,204,205,206,209,210,212,213,215,216,218,219,222],{},"Doctor recognizes ",[58,207,208],{},"defineStore"," imported from ",[58,211,64],{},", including aliased and namespace imports. It also recognizes ",[58,214,208],{}," with no import, which is how ",[58,217,68],{}," and ",[58,220,221],{},"unplugin-auto-import"," expose it. Calls whose callee resolves to a local declaration or parameter are skipped, including shadowed named, aliased, and namespace imports.",[54,224,225,226,229,230,233],{},"Doctor only compares ids that are string literals, or template literals without expressions. Both ",[58,227,228],{},"defineStore('cart', ...)"," and the object form ",[58,231,232],{},"defineStore({ id: 'cart', ... })"," are read. Ids built from variables or expressions are skipped.",[54,235,236],{},"Duplicate ids are compared across the files Doctor scans by default, so tests, fixtures, and generated files are excluded. The comparison spans workspace packages because stores imported from another package can share the app’s Pinia instance. Diagnostics have heuristic confidence: duplicate ids collide only when their definitions use the same Pinia instance. Doctor does not prove that runtime relationship; independent instances can intentionally reuse ids.",[238,239,240],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":84,"searchDepth":182,"depth":182,"links":242},[243,244],{"id":73,"depth":182,"text":74},{"id":201,"depth":182,"text":202},"Diagnose Pinia store definitions with the Pinia Rule Pack.","md",[248,252],{"label":249,"icon":250,"to":251},"Pinia rules","i-lucide-list-checks","\u002Fpinia\u002Frules",{"label":253,"icon":254,"to":255},"Defining a store","i-lucide-book-open","https:\u002F\u002Fpinia.vuejs.org\u002Fcore-concepts\u002F#Defining-a-Store",{"icon":257},"i-logos-pinia",true,{"title":45,"description":245},"XFSCvN1rcskvdfzh1XbgNrItn8JHCM0n2cJiH0dxZxs",[262,264],{"title":41,"path":42,"stem":43,"description":263,"children":-1},"Diagnose MCP server tools before a client or a directory rejects them.",null,1795268780310]