[{"data":1,"prerenderedAt":419,"buildId":420},["ShallowReactive",2],{"docs:\u002Fguide\u002Fignored-text":3},{"page":4,"section":16,"document":17,"credits":10,"prev":412,"next":416},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"ignored-text","\u002Fguide\u002Fignored-text","guide\u002Fignored-text.md","What glosslint skips","See what text glosslint blanks before matching, which code strings ESLint ignores, and which Markdown and MDX syntax the CLI skips.",null,[],"i-lucide-eye-off","article",true,6,"guide",{"nodes":18,"toc":407},[19,34,42,45,84,87,114,127,156,162,176,306,309,337,343,354,388],[20,21,22,23,27,28,33],"p",{},"glosslint checks the words people read, not code syntax, identifiers inside strings, or markup. Knowing what gets skipped helps you predict when a term will be flagged and when you need to add a phrase to ",[24,25,26],"code",{},"allow"," in your ",[29,30,32],"a",{"href":31},"\u002Fguide\u002Fcorpus","corpus",".",[35,36,41],"h2",{"id":37,"anchor":38},"text-never-read-as-words-anywhere",{"label":39,"icon":40},"Section titled \"Text never read as words anywhere\"","#","Text never read as words anywhere",[20,43,44],{},"Before matching any string in ESLint, x18n, or the CLI, glosslint blanks out spans that are code rather than words:",[46,47,48,58,61,64,67,70],"ul",{},[49,50,51,54,55],"li",{},[24,52,53],{},"{placeholders}"," and ",[24,56,57],{},"{{ mustaches }}",[49,59,60],{},"ICU syntax, while still reading the words inside ICU branches",[49,62,63],{},"URLs and email addresses",[49,65,66],{},"file paths",[49,68,69],{},"text in backticks",[49,71,72,75,76,79,80,83],{},[24,73,74],{},"camelCase",", ",[24,77,78],{},"snake_case",", and ",[24,81,82],{},"kebab-slug"," tokens",[20,85,86],{},"Two rules keep real words from disappearing:",[46,88,89,100],{},[49,90,91,92,95,96,99],{},"A token that is an ",[24,93,94],{},"exact"," term or abbreviation itself stays, so ",[24,97,98],{},"eBike"," is still checked.",[49,101,102,103,106,107,110,111,33],{},"The ",[24,104,105],{},"s"," of a possessive never forms a word, so ",[24,108,109],{},"\"the Dock's light\""," does not read ",[24,112,113],{},"\"s\"",[20,115,116,117,120,121,123,124,126],{},"For example, with ",[24,118,119],{},"rack"," as an avoid word for Dock and ",[24,122,98],{}," as an ",[24,125,94],{}," term:",[46,128,129,139],{},[49,130,131,134,135,138],{},[24,132,133],{},"\"Check {rack} availability at https:\u002F\u002Fexample.com\u002Frack.\""," produces no findings. Both ",[24,136,137],{},"{rack}"," and the URL are blanked before matching.",[49,140,141,144,145,148,149,152,153,155],{},[24,142,143],{},"\"Return your e-bike to {rack} at https:\u002F\u002Fexample.com\u002Frack.\""," reports ",[24,146,147],{},"\"e-bike\""," as ",[24,150,151],{},"\"eBike\""," and still skips ",[24,154,137],{}," and the URL.",[35,157,161],{"id":158,"anchor":159},"what-eslint-skips-in-code",{"label":160,"icon":40},"Section titled \"What ESLint skips in code\"","What ESLint skips in code",[20,163,164,165,75,169,54,172,175],{},"When linting JavaScript, TypeScript, Vue templates, and YAML files through ",[29,166,168],{"href":167},"\u002Fintegrations\u002Feslint","ESLint",[24,170,171],{},"glosslint\u002Fterm",[24,173,174],{},"glosslint\u002Favoid"," skip strings that are code:",[46,177,178,181,192,224,300,303],{},[49,179,180],{},"Import and export sources, object and class keys, member names, and TypeScript literal types. A quoted object key with a space in it is text, so ESLint reads it.",[49,182,183,184,187,188,191],{},"Operands of comparisons and ",[24,185,186],{},"switch"," cases, directives such as ",[24,189,190],{},"\"use strict\"",", enum member names, and tagged templates.",[49,193,194,195,75,198,75,201,75,204,207,208,211,212,75,215,75,218,79,221,33],{},"The first argument of ",[24,196,197],{},"t",[24,199,200],{},"$t",[24,202,203],{},"te",[24,205,206],{},"tm",", and any callee matched by ",[24,209,210],{},"ignoreCallees",", which defaults to ",[24,213,214],{},"endsWith",[24,216,217],{},"startsWith",[24,219,220],{},"includes",[24,222,223],{},"querySelector*",[49,225,226,227,75,230,75,233,75,236,75,239,75,242,75,245,75,248,75,251,75,254,75,257,75,260,75,263,75,266,75,269,75,272,75,275,278,279,282,283,75,286,75,289,75,292,295,296,299],{},"The Vue attributes ",[24,228,229],{},"class",[24,231,232],{},"style",[24,234,235],{},"id",[24,237,238],{},"key",[24,240,241],{},"ref",[24,243,244],{},"name",[24,246,247],{},"to",[24,249,250],{},"href",[24,252,253],{},"src",[24,255,256],{},"icon",[24,258,259],{},"type",[24,261,262],{},"variant",[24,264,265],{},"color",[24,267,268],{},"size",[24,270,271],{},"slot",[24,273,274],{},"is",[24,276,277],{},"for",", the ",[24,280,281],{},"aria-*"," attributes that hold ids (",[24,284,285],{},"aria-labelledby",[24,287,288],{},"aria-describedby",[24,290,291],{},"aria-controls",[24,293,294],{},"aria-owns","), and every ",[24,297,298],{},"data-*"," attribute.",[49,301,302],{},"YAML keys. Only YAML string values are checked.",[49,304,305],{},"Strings with no spaces shaped like code: all lowercase, kebab, snake, camelCase, or a path.",[20,307,308],{},"The ESLint rules also skip offering a fix when the source cannot take it as written. A string whose escapes the fix would break, or a YAML block scalar, still reports the finding without a fix.",[20,310,311,312,315,316,75,319,75,322,79,325,328,329,332,333,336],{},"In comments, ",[24,313,314],{},"glosslint\u002Fcomment"," skips tool directives such as ",[24,317,318],{},"eslint-disable",[24,320,321],{},"@ts-expect-error",[24,323,324],{},"prettier-ignore",[24,326,327],{},"#region",". In identifiers, ",[24,330,331],{},"glosslint\u002Fidentifier"," skips shorthand destructuring such as ",[24,334,335],{},"const { daypass } = response",", because that name comes from somewhere else.",[35,338,342],{"id":339,"anchor":340},"what-the-cli-skips-in-markdown-and-mdx",{"label":341,"icon":40},"Section titled \"What the CLI skips in Markdown and MDX\"","What the CLI skips in Markdown and MDX",[20,344,345,346,75,350,353],{},"When checking documentation with the ",[29,347,349],{"href":348},"\u002Fintegrations\u002Fcli","CLI",[24,351,352],{},"glosslint check"," strips non-prose syntax before reading headings, table cells, paragraphs, and list items:",[46,355,356,359,369],{},[49,357,358],{},"In Markdown, it skips frontmatter, fenced and inline code, HTML comments and tags, link targets, and reference definitions.",[49,360,361,362,54,365,368],{},"In MDX, it also skips ",[24,363,364],{},"import",[24,366,367],{},"export"," lines.",[49,370,371,372,75,375,79,378,381,382,54,385,33],{},"When given a folder, it reads ",[24,373,374],{},".md",[24,376,377],{},".mdx",[24,379,380],{},".txt"," files and skips ",[24,383,384],{},"node_modules",[24,386,387],{},".git",[389,390,393],"github-callout",{"type":391,"title":392},"tip","Tip",[20,394,395,396,399,400,402,403,33],{},"A Markdown table full of avoid words will report itself. Keep any file read by ",[24,397,398],{},"fromGlossaryTable"," out of the paths you pass to ",[24,401,352],{},". See ",[29,404,406],{"href":405},"\u002Fguide\u002Fglossary-table","Glossary table",[408,410,411],{"id":37,"depth":409,"text":41},2,{"id":158,"depth":409,"text":161},{"id":339,"depth":409,"text":342},{"path":413,"title":414,"description":415},"\u002Fguide\u002Fcasing","Casing rules","How glosslint checks capitals with exact, spelling and context terms, and how case styles set the casing of labels, headers and sentences.",{"path":405,"title":417,"description":418},"Glossary tables","Load a Markdown glossary table straight into your glosslint corpus with fromGlossaryTable, including avoid words, abbreviations, notes and links.",1795627930151,"94d466e2-147b-430f-b5f0-25c6a986e462"]