[{"data":1,"prerenderedAt":292,"buildId":293},["ShallowReactive",2],{"docs:\u002F":3},{"page":4,"section":10,"document":18,"credits":10,"prev":10,"next":10},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":10,"layout":12,"seo":13,"sidebar":15,"toc":16,"kind":10,"group":10,"navigation":15,"order":17},"index","\u002F","index.md","glosslint","Check that your product's words are spelled, cased and chosen the way your glossary says across ESLint, x18n translations and Markdown docs.",null,[],"home",{"title":14},"glosslint · Lint your product vocabulary",true,false,9007199254740991,{"nodes":19,"toc":285},[20,32,44,52,60,90,96,99,104,110,132,162,186,192,211,228,234,258,272],[21,22,23,28],"glosslint-hero",{},[24,25,27],"h1",{"id":26},"lint-your-products-words-from-one-glossary","Lint your product's words from one glossary",[29,30,31],"p",{},"glosslint checks that your product's words are spelled, cased and chosen the way your glossary says. You keep one corpus of terms, and glosslint reports problems in code, translations and Markdown docs with the reason and meaning on every finding.",[29,33,34,39,40],{},[35,36],"badge",{"src":37,"label":38},"https:\u002F\u002Fcomark-ui.onmax.me\u002Fbadge.svg?source=github-actions&label=build&icon=github&repository=onmax%2Fglosslint&workflow=pkg-pr-new.yml","build: onmax\u002Fglosslint \u002F pkg-pr-new.yml"," ",[35,41],{"src":42,"label":43},"data:image\u002Fsvg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2292%22%20height%3D%2226%22%20viewBox%3D%220%200%2092%2026%22%20role%3D%22img%22%20aria-label%3D%22license%3A%20MIT%22%3E%3Ctitle%3Elicense%3A%20MIT%3C%2Ftitle%3E%3Cstyle%3E.b%7Bfill%3A%23ffffff%3Bstroke%3A%23e5e5e5%7D.m%7Bfill%3A%23737373%7D.l%7Bstroke%3A%23e5e5e5%7D.d%7Bfill%3A%23525252%7D.f%7Bfill%3A%23171717%7D.i%7Bcolor%3A%23171717%7D%40media%20(prefers-color-scheme%3Adark)%7B.b%7Bfill%3A%23171717%3Bstroke%3A%23404040%7D.m%7Bfill%3A%23a3a3a3%7D.l%7Bstroke%3A%23404040%7D.d%7Bfill%3A%23525252%7D.f%7Bfill%3A%23fafafa%7D.i%7Bcolor%3A%23fafafa%7D%7D%3C%2Fstyle%3E%3Crect%20x%3D%22.5%22%20y%3D%22.5%22%20width%3D%2291%22%20height%3D%2225%22%20rx%3D%226%22%20class%3D%22b%22%2F%3E%3Ctext%20x%3D%229%22%20y%3D%2217%22%20class%3D%22m%22%20font-family%3D%22Arial%2CHelvetica%2Csans-serif%22%20font-size%3D%2212%22%20textLength%3D%2237.3%22%20lengthAdjust%3D%22spacingAndGlyphs%22%3Elicense%3C%2Ftext%3E%3Cpath%20d%3D%22M54.5%201v24%22%20class%3D%22l%22%2F%3E%3Ctext%20x%3D%2262%22%20y%3D%2217%22%20class%3D%22f%22%20font-family%3D%22Arial%2CHelvetica%2Csans-serif%22%20font-size%3D%2212%22%20textLength%3D%2220.7%22%20lengthAdjust%3D%22spacingAndGlyphs%22%3EMIT%3C%2Ftext%3E%3C%2Fsvg%3E","license: MIT",[45,46,51],"h2",{"id":47,"anchor":48},"one-glossary-across-code-translations-and-docs",{"label":49,"icon":50},"Section titled \"One glossary across code, translations and docs\"","#","One glossary across code, translations and docs",[29,53,54,55,59],{},"You keep one corpus in ",[56,57,58],"code",{},"glosslint.config.ts",", extended with a Markdown glossary table or the built-in tech and inclusive presets when you want them. Three runners read that corpus:",[61,62,63,72,83],"ul",{},[64,65,66,71],"li",{},[67,68,70],"a",{"href":69},"\u002Fintegrations\u002Feslint","ESLint"," checks string literals, template literals, Vue templates and static attributes, YAML locale values, comments, and declared identifier names in JavaScript and TypeScript.",[64,73,74,78,79,82],{},[67,75,77],{"href":76},"\u002Fintegrations\u002Fx18n","x18n"," checks your source locale's messages and hard-coded strings, and ",[56,80,81],{},"toX18nGlossary"," turns your corpus into x18n's glossary so translators and machine translation see the same terms.",[64,84,85,89],{},[67,86,88],{"href":87},"\u002Fintegrations\u002Fcli","CLI"," checks Markdown, MDX and text files, runs tests against each term's good and bad examples, prints the corpus as Markdown or JSON, and explains any word from the terminal.",[45,91,95],{"id":92,"anchor":93},"how-it-works",{"label":94,"icon":50},"Section titled \"How it works\"","How it works",[29,97,98],{},"One corpus feeds one matcher. ESLint, x18n and the CLI each send text to that matcher and report its findings in the format that fits the tool.",[100,101],"pele",{"language":102,"content":103},"mermaid","flowchart LR\n  corpus[\"glosslint.config.ts\u003Cbr\u002F>glossary table + presets\"] --> matcher[\"Matcher\"]\n  matcher --> eslint[\"ESLint\u003Cbr\u002F>code, YAML locales,\u003Cbr\u002F>comments, identifiers\"]\n  matcher --> x18n[\"x18n\u003Cbr\u002F>translations\"]\n  matcher --> cli[\"CLI\u003Cbr\u002F>Markdown docs\"]\n  eslint --> findings[\"Findings\u003Cbr\u002F>why, fix, meaning\u003Cbr\u002F>for people and agents\"]\n  x18n --> findings\n  cli --> findings\n",[45,105,109],{"id":106,"anchor":107},"what-a-check-catches",{"label":108,"icon":50},"Section titled \"What a check catches\"","What a check catches",[29,111,112,113,119,120,123,124,127,128,131],{},"Every example in these docs uses an invented bike-share app whose full setup lives in ",[67,114,116],{"href":115},"https:\u002F\u002Fgithub.com\u002Fonmax\u002Fglosslint\u002Fblob\u002Fmain\u002Fexamples\u002Fbasic",[56,117,118],{},"examples\u002Fbasic",". In that app, ",[56,121,122],{},"eBike"," is an exact term and ",[56,125,126],{},"rack"," is an avoid word for ",[56,129,130],{},"Dock"," because racks are unpowered.",[133,134,137],"pre",{"language":135,"class":136},"diff","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[56,138,140,149,150,149,156],{"class":139},"language-diff",[141,142,145],"span",{"class":143,"style":144},"line","display: inline",[141,146,148],{"style":147},"color:#1F2328;--shiki-dark:#E6EDF3","  # locales\u002Fen.yml","\n",[141,151,152],{"class":143,"style":144},[141,153,155],{"style":154},"color:#82071E;--shiki-dark:#FFA198","- hint: Return your e-bike to any rack.",[141,157,158],{"class":143,"style":144},[141,159,161],{"style":160},"color:#116329;--shiki-dark:#7EE787","+ hint: Return your eBike to any dock.",[29,163,164,165,168,169,171,172,174,175,178,179,181,182,185],{},"glosslint reports ",[56,166,167],{},"e-bike"," as a spelling error with an autofix to ",[56,170,122],{},". It reports ",[56,173,126],{}," as an avoid word with a suggestion to use ",[56,176,177],{},"dock",", the reason why, the definition of ",[56,180,130],{},", its nuance against ",[56,183,184],{},"Station",", and a link to the docks page.",[45,187,191],{"id":188,"anchor":189},"findings-built-for-people-and-coding-agents",{"label":190,"icon":50},"Section titled \"Findings built for people and coding agents\"","Findings built for people and coding agents",[29,193,194,195,198,199,202,203,206,207,210],{},"Every finding carries the code, the location, the reason why, the term's description and nuance, a link for more reading, and a ",[56,196,197],{},"fix"," tagged by kind. Spelling and casing fixes are marked ",[56,200,201],{},"autofix"," when the text's kind is known. Avoid words are marked ",[56,204,205],{},"suggestion"," so a person or agent reads the meaning before changing the wording. Identifier splits are marked ",[56,208,209],{},"rename"," and never applied on their own because a rename touches every caller.",[29,212,213,214,218,219,223,224,227],{},"Read ",[67,215,217],{"href":216},"\u002Freference\u002Ffindings","Findings"," for the full JSON shape and fix rules, or ",[67,220,222],{"href":221},"\u002Fguide\u002Fagents","Coding agents"," to wire your glossary into ",[56,225,226],{},"AGENTS.md"," and an agent editing loop.",[45,229,233],{"id":230,"anchor":231},"install",{"label":232,"icon":50},"Section titled \"Install\"","Install",[133,235,238],{"language":236,"frame":237,"class":136},"sh","terminal",[56,239,241],{"class":240},"language-sh",[141,242,243,247,251,255],{"class":143,"style":144},[141,244,246],{"style":245},"color:#953800;--shiki-dark:#FFA657","pnpm",[141,248,250],{"style":249},"color:#0A3069;--shiki-dark:#A5D6FF"," add",[141,252,254],{"style":253},"color:#0550AE;--shiki-dark:#79C0FF"," -D",[141,256,257],{"style":249}," glosslint",[29,259,260,261,263,264,267,268,271],{},"glosslint needs Node 22.18 or later, because it loads ",[56,262,58],{}," with Node's own ",[56,265,266],{},"import()"," and type stripping. ESLint 9.15 or later and ",[56,269,270],{},"@x18n\u002Fcore"," are optional peer dependencies, so install only the ones you use.",[29,273,274,275,279,280,284],{},"Follow ",[67,276,278],{"href":277},"\u002Fguide\u002Finstallation","Installation"," for npm, yarn and bun commands and a first setup, or start with the ",[67,281,283],{"href":282},"\u002Fguide","Guide"," to see how the corpus works.",[286,288,289,290,291],{"id":47,"depth":287,"text":51},2,{"id":92,"depth":287,"text":95},{"id":106,"depth":287,"text":109},{"id":188,"depth":287,"text":191},{"id":230,"depth":287,"text":233},1795627925712,"94d466e2-147b-430f-b5f0-25c6a986e462"]