pickier 0.1.71 → 0.1.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +2 -2
- package/dist/{chunk-c82emw32.js → chunk-0rxvmb2a.js} +2 -2
- package/dist/chunk-1vnz0vyr.js +2 -0
- package/dist/chunk-50z6kpcq.js +2 -0
- package/dist/{chunk-wx92kdf9.js → chunk-513cs23x.js} +5 -5
- package/dist/chunk-96vhwdwy.js +3 -0
- package/dist/{chunk-99jrtc0c.js → chunk-bf41tx1b.js} +2 -2
- package/dist/chunk-cscys77z.js +2 -0
- package/dist/chunk-hx0z7dzw.js +29 -0
- package/dist/{chunk-5c026tb4.js → chunk-kn5s3eh8.js} +1 -1
- package/dist/chunk-m9saxre0.js +2 -0
- package/dist/chunk-mfns8s7h.js +124 -0
- package/dist/chunk-mgry8xhx.js +3 -0
- package/dist/{chunk-8m82hwdv.js → chunk-qq03kpe0.js} +2 -2
- package/dist/{chunk-qjzzx1m2.js → chunk-t0w79bj5.js} +25 -25
- package/dist/chunk-wz6hqyhd.js +2 -0
- package/dist/native/darwin-arm64/pickier-native +0 -0
- package/dist/native/darwin-x64/pickier-native +0 -0
- package/dist/native/linux-arm64/pickier-native +0 -0
- package/dist/native/linux-x64/pickier-native +0 -0
- package/dist/native/win32-arm64/pickier-native.exe +0 -0
- package/dist/native/win32-x64/pickier-native.exe +0 -0
- package/dist/src/index.js +1 -1
- package/dist/src/lint-worker.js +1 -1
- package/dist/src/parallel.d.ts +4 -0
- package/dist/src/rules/general/prefer-template.d.ts +12 -0
- package/package.json +1 -1
- package/dist/chunk-0b2yx624.js +0 -3
- package/dist/chunk-1jtr81zg.js +0 -25
- package/dist/chunk-3h389bm4.js +0 -2
- package/dist/chunk-6vptsmta.js +0 -128
- package/dist/chunk-gpfjzx90.js +0 -2
- package/dist/chunk-jerw13hn.js +0 -2
- package/dist/chunk-m9ym248d.js +0 -2
- package/dist/chunk-vrbz87a8.js +0 -3
- package/dist/chunk-xgm5reee.js +0 -2
package/dist/chunk-gpfjzx90.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{J}from"./chunk-0b2yx624.js";var i=null,r=null,l=!1,a=!0;function b(){if(l)return a;try{return i=(()=>{throw new Error("Cannot require module "+"@stacksjs/ts-spell-check");})(),i.SpellChecker.create({minWordLength:3,maxSuggestions:3}).then((n)=>{r=n}).catch(()=>{a=!1}),l=!0,!0}catch{return l=!0,a=!1,!1}}function u(n,t){return{meta:{docs:n==="spell/check"?"Check spelling in text content":n==="spell/check-comments"?"Check spelling in code comments only":"Check spelling in markdown files"},check(d,h){if(!b()||!i)return[];let{extractWords:C,parseDirectives:y,isSuppressed:L,getProgrammingWords:W}=i,f=h.options,c=new Set((f?.words||[]).map((s)=>s.toLowerCase())),P=f?.minWordLength||3,x=W(),g=y(d);for(let s of g)if(s.type==="word")s.words.forEach((o)=>c.add(o.toLowerCase()));let m=d.split(/\r?\n/),p=[];for(let s=0;s<m.length;s++){let o=m[s],k=s+1;if(t&&!t(o))continue;let R=C(o);for(let{word:e,offset:S}of R){if(e.length<P)continue;if(e===e.toUpperCase()&&e.length<=5)continue;if(c.has(e.toLowerCase()))continue;if(x.has(e.toLowerCase()))continue;if(L(e,k,g,c))continue;if(r){if(r.isCorrect(e))continue;let w=r.suggest(e);p.push({filePath:h.filePath,line:k,column:S+1,ruleId:n,message:`Unknown word: "${e}"`,severity:"warning",help:w.length?`Did you mean: ${w.slice(0,3).join(", ")}? Or add to config words.`:`Add "${e}" to your config words array, or use: // spell-check:ignore ${e}`})}}}return p}}}function v(n){let t=n.trimStart();return t.startsWith("//")||t.startsWith("/*")||t.startsWith("*")||t.startsWith("#")}var _={name:"spell",rules:{check:u("spell/check"),"check-comments":u("spell/check-comments",v),"check-markdown":{meta:{docs:"Check spelling in markdown files"},check(n,t){if(!t.filePath.endsWith(".md"))return[];return u("spell/check-markdown").check(n,t)}}}};export{_ as spellPlugin};
|
package/dist/chunk-jerw13hn.js
DELETED
package/dist/chunk-m9ym248d.js
DELETED
package/dist/chunk-vrbz87a8.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{d,c}from"./chunk-1jtr81zg.js";import{readFileSync as o,statSync as y,writeFileSync as O}from"fs";import{isAbsolute as p,resolve as x}from"path";async function N(r,t){let a=t.mode||"auto";if(a==="format"&&r.length===1&&!/[*?[\]{}()!]/.test(r[0]))try{let n=r[0],i=p(n)?n:x(process.cwd(),n);if(y(i).isFile()){let s=await c(t.config),f=o(i,"utf8"),m=d(f,s,i);if(t.check&&m!==f)return 1;if(t.write&&m!==f)O(i,m,"utf8");return 0}}catch{}let{runLint:e}=await import("./chunk-xgm5reee.js");if(a==="lint")return e(r,t);if(a==="format"){let n={...t,fix:!0,dryRun:!!t.check,ext:t.ext,_formatOnly:!0};return e(r,n)}if(!(t.fix===!0||t.write===!0||t.check===!0))return e(r,t);let u={...t,fix:!0,dryRun:!!t.check,ext:t.ext};return e(r,u)}
|
|
3
|
-
export{N};
|
package/dist/chunk-xgm5reee.js
DELETED