[{"data":1,"prerenderedAt":887,"buildId":888},["ShallowReactive",2],{"docs:\u002Fintegrations\u002Foxlint":3},{"page":4,"section":17,"document":18,"credits":11,"prev":879,"next":883},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":9,"description":10,"tagline":10,"eyebrow":11,"credits":11,"keywords":12,"icon":13,"layout":14,"sidebar":15,"toc":15,"kind":11,"group":11,"navigation":15,"order":16},"oxlint","\u002Fintegrations\u002Foxlint","integrations\u002Foxlint.md","Oxlint","Oxlint integration","Run glosslint's four rules as an Oxlint JS plugin on JavaScript, TypeScript, and Vue script blocks, using your glossary file.",null,[],"i-simple-icons-oxc","article",true,3,"integrations",{"nodes":19,"toc":872},[20,45,60,68,82,179,186,212,226,232,241,385,470,476,490,580,586,591,658,664,673,723,832],[21,22,23,24,28,29,33,34,37,38,44],"p",{},"Use ",[25,26,27],"code",{},"glosslint\u002Foxlint"," to run glosslint's four rules inside ",[30,31,8],"a",{"href":32},"https:\u002F\u002Foxc.rs\u002Fdocs\u002Fguide\u002Fusage\u002Flinter.html"," on JavaScript, TypeScript, and ",[25,35,36],{},"\u003Cscript>"," blocks inside Vue files. It reads ",[30,39,41],{"href":40},"\u002Fguide\u002Fglossary",[25,42,43],{},".agents\u002Fglossary.md"," from Oxlint's working directory on the first file and requires Oxlint 1.94 or later as an optional peer dependency.",[46,47,50],"github-callout",{"type":48,"title":49},"warning","Warning",[21,51,52,53,55,56,59],{},"JavaScript plugins in Oxlint 1.94 are alpha. The ",[25,54,27],{}," entry point or ",[25,57,58],{},".oxlintrc.json"," shape may change as Oxlint's JS plugin API evolves.",[61,62,67],"h2",{"id":63,"anchor":64},"setup",{"label":65,"icon":66},"Section titled \"Setup\"","#","Setup",[21,69,70,71,74,75,78,79,81],{},"Add ",[25,72,73],{},"\"glosslint\u002Foxlint\""," to ",[25,76,77],{},"jsPlugins"," and enable the four rules in ",[25,80,58],{},":",[83,84,87],"pre",{"language":85,"filename":58,"class":86,"wrap":15},"json","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[25,88,90,99,100,99,115,99,123,99,137,99,148,99,159,99,169,99,174],{"class":89},"language-json",[91,92,95],"span",{"class":93,"style":94},"line","display: inline",[91,96,98],{"style":97},"color:#1F2328;--shiki-dark:#E6EDF3","{","\n",[91,101,102,106,109,112],{"class":93,"style":94},[91,103,105],{"style":104},"color:#116329;--shiki-dark:#7EE787","  \"jsPlugins\"",[91,107,108],{"style":97},": [",[91,110,73],{"style":111},"color:#0A3069;--shiki-dark:#A5D6FF",[91,113,114],{"style":97},"],",[91,116,117,120],{"class":93,"style":94},[91,118,119],{"style":104},"  \"rules\"",[91,121,122],{"style":97},": {",[91,124,125,128,131,134],{"class":93,"style":94},[91,126,127],{"style":104},"    \"glosslint\u002Fterm\"",[91,129,130],{"style":97},": ",[91,132,133],{"style":111},"\"error\"",[91,135,136],{"style":97},",",[91,138,139,142,144,146],{"class":93,"style":94},[91,140,141],{"style":104},"    \"glosslint\u002Favoid\"",[91,143,130],{"style":97},[91,145,133],{"style":111},[91,147,136],{"style":97},[91,149,150,153,155,157],{"class":93,"style":94},[91,151,152],{"style":104},"    \"glosslint\u002Fcomment\"",[91,154,130],{"style":97},[91,156,133],{"style":111},[91,158,136],{"style":97},[91,160,161,164,166],{"class":93,"style":94},[91,162,163],{"style":104},"    \"glosslint\u002Fidentifier\"",[91,165,130],{"style":97},[91,167,168],{"style":111},"\"warn\"",[91,170,171],{"class":93,"style":94},[91,172,173],{"style":97},"  }",[91,175,176],{"class":93,"style":94},[91,177,178],{"style":97},"}",[21,180,181,182,185],{},"Run Oxlint as usual, and pass ",[25,183,184],{},"--fix"," to apply autofixes:",[83,187,190],{"language":188,"frame":189,"class":86,"wrap":15},"sh","terminal",[25,191,193,99,202],{"class":192},"language-sh",[91,194,195,199],{"class":93,"style":94},[91,196,198],{"style":197},"color:#953800;--shiki-dark:#FFA657","npx",[91,200,201],{"style":111}," oxlint",[91,203,204,206,208],{"class":93,"style":94},[91,205,198],{"style":197},[91,207,201],{"style":111},[91,209,211],{"style":210},"color:#0550AE;--shiki-dark:#79C0FF"," --fix",[21,213,214,215,217,218,221,222,225],{},"Because Oxlint has no config hook that runs before the first file, the plugin reads ",[25,216,43],{}," (or ",[25,219,220],{},"settings.glosslint.glossary",") from ",[25,223,224],{},"context.cwd"," when the first file is linted and caches the corpus for the rest of the process.",[61,227,231],{"id":228,"anchor":229},"settings",{"label":230,"icon":66},"Section titled \"Settings\"","Settings",[21,233,234,235,238,239,81],{},"Configure the plugin under ",[25,236,237],{},"settings.glosslint"," in ",[25,240,58],{},[83,242,243],{"language":85,"filename":58,"class":86,"wrap":15},[25,244,245,99,249,99,259,99,266,99,273,99,285,99,313,99,323,99,328,99,333,99,339,99,349,99,359,99,369,99,377,99,381],{"class":89},[91,246,247],{"class":93,"style":94},[91,248,98],{"style":97},[91,250,251,253,255,257],{"class":93,"style":94},[91,252,105],{"style":104},[91,254,108],{"style":97},[91,256,73],{"style":111},[91,258,114],{"style":97},[91,260,261,264],{"class":93,"style":94},[91,262,263],{"style":104},"  \"settings\"",[91,265,122],{"style":97},[91,267,268,271],{"class":93,"style":94},[91,269,270],{"style":104},"    \"glosslint\"",[91,272,122],{"style":97},[91,274,275,278,280,283],{"class":93,"style":94},[91,276,277],{"style":104},"      \"glossary\"",[91,279,130],{"style":97},[91,281,282],{"style":111},"\"docs\u002Fglossary.md\"",[91,284,136],{"style":97},[91,286,287,290,292,295,298,301,303,306,308,311],{"class":93,"style":94},[91,288,289],{"style":104},"      \"ignoreCallees\"",[91,291,108],{"style":97},[91,293,294],{"style":111},"\"endsWith\"",[91,296,297],{"style":97},", ",[91,299,300],{"style":111},"\"startsWith\"",[91,302,297],{"style":97},[91,304,305],{"style":111},"\"includes\"",[91,307,297],{"style":97},[91,309,310],{"style":111},"\"querySelector*\"",[91,312,114],{"style":97},[91,314,315,318,320],{"class":93,"style":94},[91,316,317],{"style":104},"      \"identifierAvoid\"",[91,319,130],{"style":97},[91,321,322],{"style":210},"false",[91,324,325],{"class":93,"style":94},[91,326,327],{"style":97},"    }",[91,329,330],{"class":93,"style":94},[91,331,332],{"style":97},"  },",[91,334,335,337],{"class":93,"style":94},[91,336,119],{"style":104},[91,338,122],{"style":97},[91,340,341,343,345,347],{"class":93,"style":94},[91,342,127],{"style":104},[91,344,130],{"style":97},[91,346,133],{"style":111},[91,348,136],{"style":97},[91,350,351,353,355,357],{"class":93,"style":94},[91,352,141],{"style":104},[91,354,130],{"style":97},[91,356,133],{"style":111},[91,358,136],{"style":97},[91,360,361,363,365,367],{"class":93,"style":94},[91,362,152],{"style":104},[91,364,130],{"style":97},[91,366,133],{"style":111},[91,368,136],{"style":97},[91,370,371,373,375],{"class":93,"style":94},[91,372,163],{"style":104},[91,374,130],{"style":97},[91,376,168],{"style":111},[91,378,379],{"class":93,"style":94},[91,380,173],{"style":97},[91,382,383],{"class":93,"style":94},[91,384,178],{"style":97},[386,387,388,404],"table",{},[389,390,391],"thead",{},[392,393,394,398,401],"tr",{},[395,396,397],"th",{},"Setting",[395,399,400],{},"Default",[395,402,403],{},"What it does",[405,406,407,423,456],"tbody",{},[392,408,409,415,420],{},[410,411,412],"td",{},[25,413,414],{},"glossary",[410,416,417],{},[25,418,419],{},"\".agents\u002Fglossary.md\"",[410,421,422],{},"Path to the glossary file, resolved from Oxlint's working directory.",[392,424,425,430,435],{},[410,426,427],{},[25,428,429],{},"ignoreCallees",[410,431,432],{},[25,433,434],{},"[\"endsWith\", \"startsWith\", \"includes\", \"querySelector*\"]",[410,436,437,438,441,442,297,445,297,448,451,452,455],{},"Functions whose first argument is never checked. A trailing ",[25,439,440],{},"*"," matches a prefix. Your list replaces the default. ",[25,443,444],{},"t",[25,446,447],{},"$t",[25,449,450],{},"te"," and ",[25,453,454],{},"tm"," are always skipped.",[392,457,458,463,467],{},[410,459,460],{},[25,461,462],{},"identifierAvoid",[410,464,465],{},[25,466,322],{},[410,468,469],{},"Report avoid words in declared identifier names too. Off by default, because a rename touches every caller.",[61,471,475],{"id":472,"anchor":473},"rules-and-fixes",{"label":474,"icon":66},"Section titled \"Rules and fixes\"","Rules and fixes",[21,477,478,480,481,485,486,81],{},[25,479,27],{}," exports the same four rules as ",[30,482,484],{"href":483},"\u002Fintegrations\u002Feslint","ESLint"," and uses the same string, comment, and identifier skipping logic described in ",[30,487,489],{"href":488},"\u002Fguide\u002Fignored-text","What glosslint skips",[386,491,492,507],{},[389,493,494],{},[392,495,496,499,502],{},[395,497,498],{},"Rule",[395,500,501],{},"Reports",[395,503,504],{},[25,505,506],{},"oxlint --fix",[405,508,509,532,547,560],{},[392,510,511,516,525],{},[410,512,513],{},[25,514,515],{},"glosslint\u002Fterm",[410,517,518,451,521,524],{},[25,519,520],{},"GLOSSLINT_TERM",[25,522,523],{},"GLOSSLINT_CASE"," in strings",[410,526,527,528,531],{},"Applies autofixes; leaves shape-guessed ",[25,529,530],{},"context"," suggestions alone",[392,533,534,539,544],{},[410,535,536],{},[25,537,538],{},"glosslint\u002Favoid",[410,540,541,524],{},[25,542,543],{},"GLOSSLINT_AVOID",[410,545,546],{},"Never autofixes (suggestions only)",[392,548,549,554,557],{},[410,550,551],{},[25,552,553],{},"glosslint\u002Fcomment",[410,555,556],{},"All three codes in JS\u002FTS line and block comments",[410,558,559],{},"Applies spelling and casing autofixes; leaves avoid-word suggestions alone",[392,561,562,567,577],{},[410,563,564],{},[25,565,566],{},"glosslint\u002Fidentifier",[410,568,569,570,572,573,576],{},"How a declared name splits into words (and avoid words if ",[25,571,462],{}," is ",[25,574,575],{},"true",")",[410,578,579],{},"Never autofixes (the message names the rename)",[61,581,585],{"id":582,"anchor":583},"limits-compared-to-eslint",{"label":584,"icon":66},"Section titled \"Limits compared to ESLint\"","Limits compared to ESLint",[21,587,23,588,590],{},[30,589,484],{"href":483}," instead of or alongside Oxlint when your project needs any of the following:",[592,593,594,616,630],"ul",{},[595,596,597,605,606,608,609,612,613,615],"li",{},[598,599,600,601,604],"strong",{},"Vue ",[25,602,603],{},"\u003Ctemplate>"," blocks."," Oxlint lints ",[25,607,36],{}," inside ",[25,610,611],{},".vue"," files, not ",[25,614,603],{},", because Oxlint JS plugins do not expose Vue template parser services.",[595,617,618,621,622,625,626,629],{},[598,619,620],{},"YAML locale files."," Oxlint does not lint ",[25,623,624],{},".yml"," or ",[25,627,628],{},".yaml"," files.",[595,631,632,641,642,644,645,647,648,650,651,654,655,657],{},[598,633,634,625,637,640],{},[25,635,636],{},"defineCorpus",[25,638,639],{},"kindOf","."," Oxlint ",[25,643,77],{}," entries are module specifiers and ",[25,646,228],{}," are JSON, so ",[25,649,27],{}," takes a glossary file path only and cannot accept a ",[25,652,653],{},"Corpus"," object or a ",[25,656,639],{}," callback.",[61,659,663],{"id":660,"anchor":661},"worked-example",{"label":662,"icon":66},"Section titled \"Worked example\"","Worked example",[21,665,666,667,669,670,672],{},"With the ",[25,668,58],{}," above and the bike-share ",[25,671,43],{},", Oxlint checks these two files:",[83,674,677],{"language":675,"filename":676,"class":86,"wrap":15},"ts","src\u002Frides.ts",[25,678,680,99,686,99,707],{"class":679},"language-ts",[91,681,682],{"class":93,"style":94},[91,683,685],{"style":684},"color:#6E7781;--shiki-dark:#8B949E","\u002F\u002F Return the bike to any rack.",[91,687,688,692,695,698,701,704],{"class":93,"style":94},[91,689,691],{"style":690},"color:#CF222E;--shiki-dark:#FF7B72","export",[91,693,694],{"style":690}," const",[91,696,697],{"style":210}," label",[91,699,700],{"style":690}," =",[91,702,703],{"style":111}," \"Return your e-bike to any rack\"",[91,705,706],{"style":97},";",[91,708,709,711,713,716,718,721],{"class":93,"style":94},[91,710,691],{"style":690},[91,712,694],{"style":690},[91,714,715],{"style":210}," daypassTotal",[91,717,700],{"style":690},[91,719,720],{"style":210}," 2",[91,722,706],{"style":97},[83,724,727],{"language":725,"filename":726,"class":86,"wrap":15},"vue","src\u002FReturnCard.vue",[25,728,730,99,741,99,746,99,760,99,769,99,771,99,792,99,797,99,812,99,824],{"class":729},"language-vue",[91,731,732,735,738],{"class":93,"style":94},[91,733,734],{"style":97},"\u003C",[91,736,737],{"style":104},"template",[91,739,740],{"style":97},">",[91,742,743],{"class":93,"style":94},[91,744,745],{"style":684},"  \u003C!-- Not checked by Oxlint -->",[91,747,748,751,753,756,758],{"class":93,"style":94},[91,749,750],{"style":97},"  \u003C",[91,752,21],{"style":104},[91,754,755],{"style":97},">Start the check-out at the bay.\u003C\u002F",[91,757,21],{"style":104},[91,759,740],{"style":97},[91,761,762,765,767],{"class":93,"style":94},[91,763,764],{"style":97},"\u003C\u002F",[91,766,737],{"style":104},[91,768,740],{"style":97},[91,770],{"class":93,"style":94},[91,772,773,775,778,781,784,787,790],{"class":93,"style":94},[91,774,734],{"style":97},[91,776,777],{"style":104},"script",[91,779,780],{"style":210}," setup",[91,782,783],{"style":210}," lang",[91,785,786],{"style":97},"=",[91,788,789],{"style":111},"\"ts\"",[91,791,740],{"style":97},[91,793,794],{"class":93,"style":94},[91,795,796],{"style":684},"\u002F\u002F Free the rack when the ride ends.",[91,798,799,802,805,807,810],{"class":93,"style":94},[91,800,801],{"style":690},"const",[91,803,804],{"style":210}," title",[91,806,700],{"style":690},[91,808,809],{"style":111}," \"Return your e-bike to a dock\"",[91,811,706],{"style":97},[91,813,814,816,819,821],{"class":93,"style":94},[91,815,801],{"style":690},[91,817,818],{"style":210}," daypassCount",[91,820,700],{"style":690},[91,822,823],{"style":97}," [title];",[91,825,826,828,830],{"class":93,"style":94},[91,827,764],{"style":97},[91,829,777],{"style":104},[91,831,740],{"style":97},[21,833,834,835,837,838,840,841,843,844,846,847,849,850,852,853,74,856,859,860,863,864,867,868,871],{},"Running ",[25,836,5],{}," reports the comment, string, avoid-word, and identifier findings in ",[25,839,676],{}," and in the ",[25,842,36],{}," block of ",[25,845,726],{},", while skipping ",[25,848,603],{},". Running ",[25,851,506],{}," rewrites ",[25,854,855],{},"\"e-bike\"",[25,857,858],{},"\"eBike\""," in both files and leaves ",[25,861,862],{},"\"rack\""," and the ",[25,865,866],{},"daypassTotal"," \u002F ",[25,869,870],{},"daypassCount"," warnings for a person to review.",[873,875,876,877,878],{"id":63,"depth":874,"text":67},2,{"id":228,"depth":874,"text":231},{"id":472,"depth":874,"text":475},{"id":582,"depth":874,"text":585},{"id":660,"depth":874,"text":663},{"path":880,"title":881,"description":882},"\u002Fintegrations\u002Fnuxt","Nuxt","Lint product terms in Nuxt apps and vue-i18n locale files through the Nuxt ESLint module.",{"path":884,"title":885,"description":886},"\u002Fintegrations\u002Fx18n","x18n","Check source locale messages and hard-coded strings with the glosslint x18n plugin and export your glossary to x18n's glossary.",1795769376404,"ebb2a05d-f63d-473e-9d47-1831648e3a0a"]