pickier 0.1.56 → 0.1.58

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{N as K}from"../chunk-43fsk0jg.js";async function F(){let E=process.argv.slice(2),O=E[0]==="run",x=O?1:0,N=O?"auto":"lint",W=!1,X=!1,Y=!1,Z=!1,_,Q=[],$=!0;for(let y=x;y<E.length;y++){let q=E[y];if(q==="--mode")N=E[++y]||"auto";else if(q==="--format")Y=!0,N="format";else if(q==="--check")W=!0;else if(q==="--write")X=!0;else if(q==="--config")_=E[++y];else if(q==="--verbose")Z=!0;else if(q==="--ext"||q==="--ignore-path")y++;else if(q==="--fix"||q==="--dry-run"||q==="--reporter"||q==="--max-warnings"||q==="--cache"){$=!1,Q.length=0;break}else if(q.startsWith("--"));else Q.push(q)}if($&&(N==="format"||N==="auto"||N==="lint")&&Q.length>0){let{runUnified:y}=await import("../chunk-nva4a8rn.js"),q=await y(Q,{mode:N,check:W,write:X,verbose:Z,config:_});process.exit(q)}let{CLI:C}=await import("../chunk-v1x7hdmp.js"),{version:L}=await import("../chunk-0y8qwy2h.js"),H=new C("pickier"),T=(y)=>{let[q,B]=y;return[Array.isArray(q)?q.filter((V)=>typeof V==="string"):[],B&&typeof B==="object"?B:{}]};H.command("[...globs]","Lint files (default)").option("--fix","Auto-fix lint problems").option("--format","Format files instead of linting").option("--dry-run","Simulate fixes without writing").option("--check","Check formatting without writing (CI-friendly)").option("--max-warnings <n>","Max warnings before non-zero exit",{default:-1}).option("--reporter <name>","stylish|json|compact",{default:"stylish"}).option("--config <path>","Path to pickier config").option("--ignore-path <file>","Ignore file (like .gitignore)").option("--ext <exts>","Comma-separated extensions").option("--cache","Enable cache").option("--verbose","Verbose output").example("pickier .").example("pickier . --fix").example("pickier . --format").example("pickier src --fix --verbose").action(async(...y)=>{let[q,B]=T(y);if(q.length===0){H.outputHelp();return}let{runUnified:J}=await import("../chunk-nva4a8rn.js"),D;if(B.format){if(D="format",!B.check)B.write=!0}else D="lint";let V=await J(q,{...B,mode:D});process.exit(V)}),H.command("lint [...globs]","[DEPRECATION] Use `pickier [...globs]` instead. Lint files").option("--fix","Auto-fix problems").option("--dry-run","Simulate fixes without writing").option("--max-warnings <n>","Max warnings before non-zero exit",{default:-1}).option("--reporter <name>","stylish|json|compact",{default:"stylish"}).option("--config <path>","Path to pickier config").option("--ignore-path <file>","Ignore file (like .gitignore)").option("--ext <exts>","Comma-separated extensions").option("--cache","Enable cache").option("--verbose","Verbose output").example("pickier lint .").example("pickier lint src --fix").example('pickier lint "src/**/*.{ts,tsx}" --reporter json').action(async(...y)=>{let[q,B]=T(y),{runUnified:J}=await import("../chunk-nva4a8rn.js"),D=await J(q,{...B,mode:"lint"});process.exit(D)}),H.command("format [...globs]","[DEPRECATION] Use `pickier [...globs] --format` instead. Format files").option("--write","Write changes to files").option("--check","Check without writing (CI-friendly)").option("--config <path>","Path to pickier config").option("--ignore-path <file>","Ignore file").option("--ext <exts>","Comma-separated extensions").option("--verbose","Verbose output").example("pickier format . --write").example("pickier format . --check").action(async(...y)=>{let[q,B]=T(y),{runUnified:J}=await import("../chunk-nva4a8rn.js"),D=await J(q,{...B,mode:"format"});process.exit(D)}),H.command("run [...globs]","Unified mode (auto, lint, or format)").option("--mode <mode>","auto|lint|format",{default:"auto"}).option("--fix","Auto-fix problems (lint mode)").option("--dry-run","Simulate fixes without writing (lint mode)").option("--max-warnings <n>","Max warnings before non-zero exit (lint mode)",{default:-1}).option("--reporter <name>","stylish|json|compact (lint mode)",{default:"stylish"}).option("--write","Write changes to files (format mode)").option("--check","Check without writing (format mode)").option("--config <path>","Path to pickier config").option("--ignore-path <file>","Ignore file (like .gitignore)").option("--ext <exts>","Comma-separated extensions").option("--cache","Enable cache (lint mode)").option("--verbose","Verbose output").example("pickier run . --mode lint --fix").example("pickier run . --mode format --write").action(async(...y)=>{let[q,B]=T(y),{runUnified:J}=await import("../chunk-nva4a8rn.js"),D=await J(q,B);process.exit(D)}),H.command("version","Show the version of the CLI").action(async()=>{let{version:y}=await import("../chunk-0y8qwy2h.js");process.stdout.write(`${y}
3
+ import{N as K}from"../chunk-43fsk0jg.js";async function F(){let E=process.argv.slice(2),O=E[0]==="run",x=O?1:0,N=O?"auto":"lint",W=!1,X=!1,Y=!1,Z=!1,_,Q=[],$=!0;for(let y=x;y<E.length;y++){let q=E[y];if(q==="--mode")N=E[++y]||"auto";else if(q==="--format")Y=!0,N="format";else if(q==="--check")W=!0;else if(q==="--write")X=!0;else if(q==="--config")_=E[++y];else if(q==="--verbose")Z=!0;else if(q==="--ext"||q==="--ignore-path")y++;else if(q==="--fix"||q==="--dry-run"||q==="--reporter"||q==="--max-warnings"||q==="--cache"){$=!1,Q.length=0;break}else if(q.startsWith("--"));else Q.push(q)}if($&&(N==="format"||N==="auto"||N==="lint")&&Q.length>0){let{runUnified:y}=await import("../chunk-8s8z5cnd.js"),q=await y(Q,{mode:N,check:W,write:X,verbose:Z,config:_});process.exit(q)}let{CLI:C}=await import("../chunk-v1x7hdmp.js"),{version:L}=await import("../chunk-f0bqgs43.js"),H=new C("pickier"),T=(y)=>{let[q,B]=y;return[Array.isArray(q)?q.filter((V)=>typeof V==="string"):[],B&&typeof B==="object"?B:{}]};H.command("[...globs]","Lint files (default)").option("--fix","Auto-fix lint problems").option("--format","Format files instead of linting").option("--dry-run","Simulate fixes without writing").option("--check","Check formatting without writing (CI-friendly)").option("--max-warnings <n>","Max warnings before non-zero exit",{default:-1}).option("--reporter <name>","stylish|json|compact",{default:"stylish"}).option("--config <path>","Path to pickier config").option("--ignore-path <file>","Ignore file (like .gitignore)").option("--ext <exts>","Comma-separated extensions").option("--cache","Enable cache").option("--verbose","Verbose output").example("pickier .").example("pickier . --fix").example("pickier . --format").example("pickier src --fix --verbose").action(async(...y)=>{let[q,B]=T(y);if(q.length===0){H.outputHelp();return}let{runUnified:J}=await import("../chunk-8s8z5cnd.js"),D;if(B.format){if(D="format",!B.check)B.write=!0}else D="lint";let V=await J(q,{...B,mode:D});process.exit(V)}),H.command("lint [...globs]","[DEPRECATION] Use `pickier [...globs]` instead. Lint files").option("--fix","Auto-fix problems").option("--dry-run","Simulate fixes without writing").option("--max-warnings <n>","Max warnings before non-zero exit",{default:-1}).option("--reporter <name>","stylish|json|compact",{default:"stylish"}).option("--config <path>","Path to pickier config").option("--ignore-path <file>","Ignore file (like .gitignore)").option("--ext <exts>","Comma-separated extensions").option("--cache","Enable cache").option("--verbose","Verbose output").example("pickier lint .").example("pickier lint src --fix").example('pickier lint "src/**/*.{ts,tsx}" --reporter json').action(async(...y)=>{let[q,B]=T(y),{runUnified:J}=await import("../chunk-8s8z5cnd.js"),D=await J(q,{...B,mode:"lint"});process.exit(D)}),H.command("format [...globs]","[DEPRECATION] Use `pickier [...globs] --format` instead. Format files").option("--write","Write changes to files").option("--check","Check without writing (CI-friendly)").option("--config <path>","Path to pickier config").option("--ignore-path <file>","Ignore file").option("--ext <exts>","Comma-separated extensions").option("--verbose","Verbose output").example("pickier format . --write").example("pickier format . --check").action(async(...y)=>{let[q,B]=T(y),{runUnified:J}=await import("../chunk-8s8z5cnd.js"),D=await J(q,{...B,mode:"format"});process.exit(D)}),H.command("run [...globs]","Unified mode (auto, lint, or format)").option("--mode <mode>","auto|lint|format",{default:"auto"}).option("--fix","Auto-fix problems (lint mode)").option("--dry-run","Simulate fixes without writing (lint mode)").option("--max-warnings <n>","Max warnings before non-zero exit (lint mode)",{default:-1}).option("--reporter <name>","stylish|json|compact (lint mode)",{default:"stylish"}).option("--write","Write changes to files (format mode)").option("--check","Check without writing (format mode)").option("--config <path>","Path to pickier config").option("--ignore-path <file>","Ignore file (like .gitignore)").option("--ext <exts>","Comma-separated extensions").option("--cache","Enable cache (lint mode)").option("--verbose","Verbose output").example("pickier run . --mode lint --fix").example("pickier run . --mode format --write").action(async(...y)=>{let[q,B]=T(y),{runUnified:J}=await import("../chunk-8s8z5cnd.js"),D=await J(q,B);process.exit(D)}),H.command("version","Show the version of the CLI").action(async()=>{let{version:y}=await import("../chunk-f0bqgs43.js");process.stdout.write(`${y}
4
4
  `)}),H.version(L),H.help(),H.parse()}F().catch((E)=>{let O=E instanceof Error?E.message:String(E);process.stderr.write(`pickier: ${O}
5
5
  `),process.exit(1)});
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{b as a,c as b,d as c,e as d,f as e,g as f}from"./chunk-5z3jqx5z.js";import"./chunk-er69kh4d.js";import"./chunk-ah6h41gy.js";import"./chunk-43fsk0jg.js";export{d as scanContentOptimized,e as scanContent,b as runLintProgrammatic,f as runLint,a as lintText,c as applyPlugins};
2
+ import{b as a,c as b,d as c,e as d,f as e,g as f}from"./chunk-fy0z5sp8.js";import"./chunk-er69kh4d.js";import"./chunk-ah6h41gy.js";import"./chunk-43fsk0jg.js";export{d as scanContentOptimized,e as scanContent,b as runLintProgrammatic,f as runLint,a as lintText,c as applyPlugins};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{h as a}from"./chunk-pbmfwrm8.js";import"./chunk-er69kh4d.js";import"./chunk-ah6h41gy.js";import"./chunk-43fsk0jg.js";export{a as runUnified};
2
+ import{h as a}from"./chunk-q19vbsae.js";import"./chunk-er69kh4d.js";import"./chunk-ah6h41gy.js";import"./chunk-43fsk0jg.js";export{a as runUnified};
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./chunk-43fsk0jg.js";var e="pickier",u="module",t="0.1.56",r="Format, lint and more in a fraction of seconds.",s="Chris Breuer <chris@stacksjs.org>",l="MIT",p="https://github.com/pickier/pickier#readme",b={type:"git",url:"git+https://github.com/pickier/pickier.git"},m={url:"https://github.com/pickier/pickier/issues"},c=["pickier","linter","formatter","bun","fast"],o={".":{types:"./dist/index.d.ts",import:"./dist/src/index.js"},"./*":{import:"./dist/*"}},a="./dist/src/index.js",x="./dist/index.d.ts",d={pickier:"./dist/bin/cli.js"},w=["README.md","dist"],k={build:"bun --bun build.ts","build:bin":"bun --bun build.ts && bun run compile",compile:"bun build ./bin/cli.ts --compile --minify --outfile bin/pickier","compile:all":"bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:linux-x64-musl && bun run compile:linux-arm64-musl && bun run compile:windows-x64 && bun run compile:windows-arm64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64","compile:linux-x64":"bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/pickier-linux-x64","compile:linux-arm64":"bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/pickier-linux-arm64","compile:linux-x64-musl":"bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64-musl --outfile bin/pickier-linux-x64-musl","compile:linux-arm64-musl":"bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64-musl --outfile bin/pickier-linux-arm64-musl","compile:windows-x64":"bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/pickier-windows-x64.exe","compile:windows-arm64":"bun build ./bin/cli.ts --compile --minify --target=bun-windows-arm64 --outfile bin/pickier-windows-arm64.exe","compile:darwin-x64":"bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/pickier-darwin-x64","compile:darwin-arm64":"bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/pickier-darwin-arm64",zip:"bun run zip:all","zip:all":"bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:linux-x64-musl && bun run zip:linux-arm64-musl && bun run zip:windows-x64 && bun run zip:windows-arm64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64","zip:linux-x64":"zip -j bin/pickier-linux-x64.zip bin/pickier-linux-x64","zip:linux-arm64":"zip -j bin/pickier-linux-arm64.zip bin/pickier-linux-arm64","zip:linux-x64-musl":"zip -j bin/pickier-linux-x64-musl.zip bin/pickier-linux-x64-musl","zip:linux-arm64-musl":"zip -j bin/pickier-linux-arm64-musl.zip bin/pickier-linux-arm64-musl","zip:windows-x64":"zip -j bin/pickier-windows-x64.zip bin/pickier-windows-x64.exe","zip:windows-arm64":"zip -j bin/pickier-windows-arm64.zip bin/pickier-windows-arm64.exe","zip:darwin-x64":"zip -j bin/pickier-darwin-x64.zip bin/pickier-darwin-x64","zip:darwin-arm64":"zip -j bin/pickier-darwin-arm64.zip bin/pickier-darwin-arm64",prepublishOnly:"bun --bun run build && bun run compile:all && bun run zip",test:"PICKIER_NO_AUTO_CONFIG=1 bun test --coverage","test:core":"PICKIER_NO_AUTO_CONFIG=1 bun test test/core","test:format":"PICKIER_NO_AUTO_CONFIG=1 bun test test/format","test:lint":"PICKIER_NO_AUTO_CONFIG=1 bun test test/lint","test:rules":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules","test:rules:sort":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/sort","test:rules:style":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/style","test:rules:quality":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/quality","test:rules:imports":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/imports","test:rules:typescript":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/typescript","test:rules:regexp":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/regexp","test:plugin":"PICKIER_NO_AUTO_CONFIG=1 bun test test/plugin","test:watch":"PICKIER_NO_AUTO_CONFIG=1 bun test --watch"},I={"@stacksjs/clarity":"^0.3.24","@stacksjs/clapp":"^0.2.3"},O={"@stacksjs/ts-spell-check":"^0.1.0"},_={bunfig:"^0.15.13"},z={name:e,type:u,version:t,description:r,author:s,license:l,homepage:p,repository:b,bugs:m,keywords:c,exports:o,module:a,types:x,bin:d,files:w,scripts:k,dependencies:I,optionalDependencies:O,devDependencies:_};export{t as version,x as types,u as type,k as scripts,b as repository,O as optionalDependencies,e as name,a as module,l as license,c as keywords,p as homepage,w as files,o as exports,_ as devDependencies,r as description,I as dependencies,z as default,m as bugs,d as bin,s as author};
2
+ import"./chunk-43fsk0jg.js";var e="pickier",u="module",t="0.1.58",r="Format, lint and more in a fraction of seconds.",s="Chris Breuer <chris@stacksjs.org>",l="MIT",p="https://github.com/pickier/pickier#readme",b={type:"git",url:"git+https://github.com/pickier/pickier.git"},m={url:"https://github.com/pickier/pickier/issues"},c=["pickier","linter","formatter","bun","fast"],o={".":{types:"./dist/index.d.ts",import:"./dist/src/index.js"},"./*":{import:"./dist/*"}},a="./dist/src/index.js",x="./dist/index.d.ts",d={pickier:"./dist/bin/cli.js"},w=["README.md","dist"],k={build:"bun --bun build.ts","build:bin":"bun --bun build.ts && bun run compile",compile:"bun build ./bin/cli.ts --compile --minify --outfile bin/pickier","compile:all":"bun run compile:linux-x64 && bun run compile:linux-arm64 && bun run compile:linux-x64-musl && bun run compile:linux-arm64-musl && bun run compile:windows-x64 && bun run compile:windows-arm64 && bun run compile:darwin-x64 && bun run compile:darwin-arm64","compile:linux-x64":"bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64 --outfile bin/pickier-linux-x64","compile:linux-arm64":"bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64 --outfile bin/pickier-linux-arm64","compile:linux-x64-musl":"bun build ./bin/cli.ts --compile --minify --target=bun-linux-x64-musl --outfile bin/pickier-linux-x64-musl","compile:linux-arm64-musl":"bun build ./bin/cli.ts --compile --minify --target=bun-linux-arm64-musl --outfile bin/pickier-linux-arm64-musl","compile:windows-x64":"bun build ./bin/cli.ts --compile --minify --target=bun-windows-x64 --outfile bin/pickier-windows-x64.exe","compile:windows-arm64":"bun build ./bin/cli.ts --compile --minify --target=bun-windows-arm64 --outfile bin/pickier-windows-arm64.exe","compile:darwin-x64":"bun build ./bin/cli.ts --compile --minify --target=bun-darwin-x64 --outfile bin/pickier-darwin-x64","compile:darwin-arm64":"bun build ./bin/cli.ts --compile --minify --target=bun-darwin-arm64 --outfile bin/pickier-darwin-arm64",zip:"bun run zip:all","zip:all":"bun run zip:linux-x64 && bun run zip:linux-arm64 && bun run zip:linux-x64-musl && bun run zip:linux-arm64-musl && bun run zip:windows-x64 && bun run zip:windows-arm64 && bun run zip:darwin-x64 && bun run zip:darwin-arm64","zip:linux-x64":"zip -j bin/pickier-linux-x64.zip bin/pickier-linux-x64","zip:linux-arm64":"zip -j bin/pickier-linux-arm64.zip bin/pickier-linux-arm64","zip:linux-x64-musl":"zip -j bin/pickier-linux-x64-musl.zip bin/pickier-linux-x64-musl","zip:linux-arm64-musl":"zip -j bin/pickier-linux-arm64-musl.zip bin/pickier-linux-arm64-musl","zip:windows-x64":"zip -j bin/pickier-windows-x64.zip bin/pickier-windows-x64.exe","zip:windows-arm64":"zip -j bin/pickier-windows-arm64.zip bin/pickier-windows-arm64.exe","zip:darwin-x64":"zip -j bin/pickier-darwin-x64.zip bin/pickier-darwin-x64","zip:darwin-arm64":"zip -j bin/pickier-darwin-arm64.zip bin/pickier-darwin-arm64",prepublishOnly:"bun --bun run build && bun run compile:all && bun run zip",test:"PICKIER_NO_AUTO_CONFIG=1 bun test --coverage","test:core":"PICKIER_NO_AUTO_CONFIG=1 bun test test/core","test:format":"PICKIER_NO_AUTO_CONFIG=1 bun test test/format","test:lint":"PICKIER_NO_AUTO_CONFIG=1 bun test test/lint","test:rules":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules","test:rules:sort":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/sort","test:rules:style":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/style","test:rules:quality":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/quality","test:rules:imports":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/imports","test:rules:typescript":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/typescript","test:rules:regexp":"PICKIER_NO_AUTO_CONFIG=1 bun test test/rules/regexp","test:plugin":"PICKIER_NO_AUTO_CONFIG=1 bun test test/plugin","test:watch":"PICKIER_NO_AUTO_CONFIG=1 bun test --watch"},I={"@stacksjs/clarity":"^0.3.24","@stacksjs/clapp":"^0.2.3"},O={"@stacksjs/ts-spell-check":"^0.1.0"},_={bunfig:"^0.15.13"},z={name:e,type:u,version:t,description:r,author:s,license:l,homepage:p,repository:b,bugs:m,keywords:c,exports:o,module:a,types:x,bin:d,files:w,scripts:k,dependencies:I,optionalDependencies:O,devDependencies:_};export{t as version,x as types,u as type,k as scripts,b as repository,O as optionalDependencies,e as name,a as module,l as license,c as keywords,p as homepage,w as files,o as exports,_ as devDependencies,r as description,I as dependencies,z as default,m as bugs,d as bin,s as author};
@@ -54,20 +54,20 @@ export type ConfigOf = Config
54
54
  `):$}};var W8={meta:{docs:"Disallow octal literals",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\b0[0-7]+\b/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z))Z.push({filePath:J.filePath,line:Y+1,column:G.index+1,ruleId:"eslint/no-octal",message:"Octal literals should not be used",severity:"error"})}return Z}};var K8={meta:{docs:"Disallow reassignment of function parameters",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/),Y=new Map;for(let z=0;z<X.length;z++){let Q=X[z],G=[...Q.matchAll(/function\s+(?:(\w+)\s*)?\(([^)]*)\)/g),...Q.matchAll(/(?:const|let|var)?\s*(\w+)\s*=\s*\(([^)]*)\)\s*=>/g),...Q.matchAll(/(?:const|let|var)?\s*(\w+)\s*=\s*(\w+)\s*=>/g)];for(let q of G){let U=q[2]?q[2].split(",").map((K)=>K.trim().split(/[=:]/)[0].trim()):[],W=`line-${z}`;if(U.length>0)Y.set(W,new Set(U.filter((K)=>K&&/^\w+$/.test(K))))}for(let[q,U]of Y.entries())for(let W of U){let K=new RegExp(`\\b${W}\\s*=\\s*[^=]`,"g"),H;for(H=K.exec(Q);H!==null;H=K.exec(Q))if(!Q.slice(H.index).match(/^\w+\s*===?/))Z.push({filePath:J.filePath,line:z+1,column:H.index+1,ruleId:"eslint/no-param-reassign",message:`Assignment to function parameter '${W}'`,severity:"error"})}}return Z}};var H8={meta:{docs:"Disallow use of __proto__",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/__proto__/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){if(z.substring(0,G.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/no-proto",message:"The '__proto__' property is deprecated",severity:"error"})}}return Z},fix:($)=>{let J=$.split(/\r?\n/),Z=!1,X=J.map((Y)=>{if(Y.trim().startsWith("//")||Y.trim().startsWith("/*"))return Y;return Y.replace(/(\w+)\.__proto__/g,(Q,G)=>{return Z=!0,`Object.getPrototypeOf(${G})`})});return Z?X.join(`
55
55
  `):$}};var V8={meta:{docs:"Disallow assignment operators in return statements",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\breturn\s[^;]*\b\w+\s*=\s*(?!=)/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){let q=G[0];if(/===|==/.test(q))continue;if(z.substring(0,G.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/no-return-assign",message:"Return statement should not contain assignment",severity:"error"})}}return Z}};var A8={meta:{docs:"Disallow comma operators",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\)\s*,\s*\w+\s*\(/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){if(z.substring(0,G.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+G[0].indexOf(",")+1),ruleId:"eslint/no-sequences",message:"Unexpected use of comma operator",severity:"warning"})}}return Z}};var _8={meta:{docs:"Disallow variable declarations from shadowing variables declared in the outer scope",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/),z=[new Set];for(let Q=0;Q<X.length;Q++){let G=X[Q];if(G.match(/\bfunction\s+\w+\s*\(|=>\s*\{|\{\s*$/))z.push(new Set);let q=[...G.matchAll(/\b(const|let|var)\s+(\w+)/g),...G.matchAll(/function\s+(\w+)\s*\(/g)];for(let U of q){let W=U[2]||U[1];for(let K=0;K<z.length-1;K++)if(z[K].has(W)){Z.push({filePath:J.filePath,line:Q+1,column:1,ruleId:"eslint/no-shadow",message:`'${W}' is already declared in the upper scope`,severity:"error"});break}z[z.length-1].add(W)}if(G.match(/^\s*\}\s*$/)){if(z.length>1)z.pop()}}return Z}};var F8={meta:{docs:"Disallow throwing literals as exceptions",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=[{pattern:/\bthrow\s+(['"`][^'"`]*['"`])/g,type:"string"},{pattern:/\bthrow\s+(\d+)/g,type:"number"},{pattern:/\bthrow\s+(true|false|null|undefined)/g,type:"literal"}];for(let{pattern:G,type:q}of Q){let U;while((U=G.exec(z))!==null){if(z.substring(0,U.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,U.index+1),ruleId:"eslint/no-throw-literal",message:`Expected an error object to be thrown, got ${q} literal`,severity:"error"})}}}return Z}};var B8={meta:{docs:"Disallow the use of variables before they are defined",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/),Y=new Map;for(let z=0;z<X.length;z++){let Q=X[z],G=[...Q.matchAll(/\b(const|let|var)\s+(\w+)/g),...Q.matchAll(/\bfunction\s+(\w+)\s*\(/g),...Q.matchAll(/\bclass\s+(\w+)/g)];for(let q of G){let U=q[2]||q[1];if(!Y.has(U))Y.set(U,z+1)}}for(let z=0;z<X.length;z++){let Q=X[z];if(Q.match(/\b(const|let|var|function|class)\s+\w+/))continue;let G=Q.matchAll(/\b(\w+)\b/g);for(let q of G){let U=q[1],W=Y.get(U);if(W&&W>z+1)Z.push({filePath:J.filePath,line:z+1,column:q.index+1,ruleId:"eslint/no-use-before-define",message:`'${U}' was used before it was defined`,severity:"error"})}}return Z}};var w8={meta:{docs:"Disallow unnecessary .call() and .apply()",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\.\s*call\s*\(\s*(undefined|null)\s*,/g,G=/\.\s*apply\s*\(\s*(undefined|null)\s*,/g,q;for(q=Q.exec(z);q!==null;q=Q.exec(z))Z.push({filePath:J.filePath,line:Y+1,column:q.index+1,ruleId:"eslint/no-useless-call",message:"Unnecessary '.call()'",severity:"error"});for(q=G.exec(z);q!==null;q=G.exec(z))Z.push({filePath:J.filePath,line:Y+1,column:q.index+1,ruleId:"eslint/no-useless-call",message:"Unnecessary '.apply()'",severity:"error"})}return Z}};var M8={meta:{docs:"Disallow unnecessary concatenation of literals or template literals",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=[/(['"`])([^'"`]*)\1\s*\+\s*\1([^'"`]*)\1/g];for(let G of Q){let q;while((q=G.exec(z))!==null){if(z.substring(0,q.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,q.index+1),ruleId:"eslint/no-useless-concat",message:"Unexpected string concatenation of literals",severity:"warning"})}}}return Z},fix:($)=>{let J=$;return J=J.replace(/(['"`])([^'"`]*)\1\s*\+\s*\1([^'"`]*)\1/g,"$1$2$3$1"),J}};var OZ=["/","(",")","[","]","{","}","<",">",":","@","#","$","%","&","=","+","-","*","?","!",";",",","|","~","`","^"],j8={meta:{docs:"Disallow unnecessary escape characters",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y];for(let Q of OZ){let G=`\\${Q}`,q=new RegExp(`(['"\`])[^'"\`]*${G.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}`,"g"),U;while((U=q.exec(z))!==null){let W=U.index,K=z.indexOf(G,W);if(K>W)Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,K+1),ruleId:"eslint/no-useless-escape",message:`Unnecessary escape character: \\${Q}`,severity:"warning"})}}}return Z},fix:($)=>{let J=$;for(let Z of OZ){let X=`\\${Z}`;J=J.replace(new RegExp(X.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),Z)}return J}};var N8={meta:{docs:"Disallow renaming import, export, and destructured assignments to the same name",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/import\s*\{[^}]*\b(\w+)\s+as\s+\1\b[^}]*\}/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z))Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/no-useless-rename",message:`Renaming import '${G[1]}' to '${G[1]}' is redundant`,severity:"error"});let q=/export\s*\{[^}]*\b(\w+)\s+as\s+\1\b[^}]*\}/g;for(G=q.exec(z);G!==null;G=q.exec(z))Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/no-useless-rename",message:`Renaming export '${G[1]}' to '${G[1]}' is redundant`,severity:"error"});let U=/\{[^}]*\b(\w+)\s*:\s*\1\b[^}]*\}\s*=/g;for(G=U.exec(z);G!==null;G=U.exec(z))Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/no-useless-rename",message:`Renaming destructured property '${G[1]}' to '${G[1]}' is redundant`,severity:"error"})}return Z},fix:($)=>{let J=$;return J=J.replace(/\b(\w+)\s+as\s+\1\b/g,"$1"),J=J.replace(/\{([^}]*)\b(\w+)\s*:\s*\2\b([^}]*)\}/g,"{$1$2$3}"),J}};var f1={meta:{docs:"Disallow redundant return statements",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=z.trim();if(Q==="return"||Q==="return;"){let G=!1;for(let q=Y+1;q<X.length;q++){let U=X[q].trim();if(U===""||U.startsWith("//")||U.startsWith("/*"))continue;if(U==="}"||U.startsWith("}"))G=!0;break}if(G)Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,z.indexOf("return")+1),ruleId:"eslint/no-useless-return",message:"Unnecessary return statement",severity:"warning"})}}return Z},fix:($,J)=>{let Z=f1.check($,J);if(Z.length===0)return $;let X=$.split(/\r?\n/),Y=new Set(Z.map((Q)=>Q.line-1));return X.filter((Q,G)=>!Y.has(G)).join(`
56
56
  `)}};var T8={meta:{docs:"Require let or const instead of var",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\bvar\s+/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){if(z.substring(0,G.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/no-var",message:"Unexpected var, use let or const instead",severity:"error"})}}return Z},fix:($,J)=>{return $.split(/\r?\n/).map((Y)=>{if(Y.trim().startsWith("//")||Y.trim().startsWith("/*"))return Y;return Y.replace(/\bvar\s+/g,"let ")}).join(`
57
- `)}};var E8={meta:{docs:"Disallow with statements",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\bwith\s*\(/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){if(z.substring(0,G.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/no-with",message:"Unexpected use of 'with' statement",severity:"error"})}}return Z}};var D8={meta:{docs:"Require using arrow functions for callbacks",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\.(map|filter|reduce|forEach|some|every|find|findIndex)\s*\(\s*function\s*\(/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){if(z.substring(0,G.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/prefer-arrow-callback",message:"Unexpected function expression, use arrow function instead",severity:"warning"})}}return Z}};var R8={meta:{docs:"Disallow async functions which have no await expression",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++)if(X[Y].match(/\basync\s+(?:function\s+\w+|(?:\(|\w+)\s*(?:\(|=>))/)){let G=!1,q=0,U=!1,W=Y;while(W<X.length){let K=X[W];for(let H of K){if(H==="{")q++,U=!0;if(H==="}"){if(q--,q===0&&U)break}}if(K.match(/\bawait\s+/))G=!0;if(q===0&&U){if(!G)Z.push({filePath:J.filePath,line:Y+1,column:1,ruleId:"eslint/require-await",message:"Async function has no await expression",severity:"error"});break}W++}}return Z}};var LZ=/\.(?:ts|js|tsx|jsx|mts|mjs|cts|cjs)$/;function w($){return{meta:$.meta,check:(J,Z)=>{if(!LZ.test(Z.filePath))return[];return $.check(J,Z)},fix:$.fix?(J,Z)=>{if(!LZ.test(Z.filePath))return J;return $.fix(J,Z)}:void 0}}var PZ=/\.(?:sh|bash|zsh|ksh|dash)$/,CZ=/^#!\s*(?:\/usr\/bin\/env\s+)?(?:ba|z|k|da)?sh\b/;function H0($){return{meta:$.meta,check:(J,Z)=>{if(!PZ.test(Z.filePath)&&!CZ.test(J))return[];return $.check(J,Z)},fix:$.fix?(J,Z)=>{if(!PZ.test(Z.filePath)&&!CZ.test(J))return J;return $.fix(J,Z)}:void 0}}var IZ=/(?:^|[/\\])package\.json$/;function A0($){return{meta:$.meta,check:(J,Z)=>{if(!IZ.test(Z.filePath))return[];return $.check(J,Z)},fix:$.fix?(J,Z)=>{if(!IZ.test(Z.filePath))return J;return $.fix(J,Z)}:void 0}}var SZ={name:"eslint",rules:{"array-callback-return":w(M$),"constructor-super":w(j$),"for-direction":w(N$),"getter-return":w(T$),"no-async-promise-executor":w(E$),"no-compare-neg-zero":w(D$),"no-cond-assign":w(R$),"no-constant-condition":w(L$),"no-const-assign":w(O$),"no-dupe-class-members":w(P$),"no-dupe-keys":w(y1),"no-duplicate-case":w(C$),"no-empty-pattern":w(I$),"no-fallthrough":w(S$),"no-loss-of-precision":w(v$),"no-promise-executor-return":w(y$),"no-redeclare":w(b$),"no-self-assign":w(b1),"no-self-compare":w(k$),"no-sparse-arrays":w(f$),"no-undef":w(g$),"no-unsafe-negation":w(x$),"no-unreachable":w(p$),"no-useless-catch":w(h$),"use-isnan":w(u$),"valid-typeof":w(m$),"default-case":w(o$),eqeqeq:w(c$),"no-alert":w(a$),"no-await-in-loop":w(s$),"no-caller":w(n$),"no-case-declarations":w(i$),"no-else-return":w(t$),"no-empty":w(e$),"no-empty-function":w($8),"no-eval":w(Z8),"no-extend-native":w(J8),"no-global-assign":w(Y8),"no-implied-eval":w(z8),"no-iterator":w(Q8),"no-new":w(G8),"no-new-func":w(q8),"no-new-wrappers":w(U8),"no-octal":w(W8),"no-param-reassign":w(K8),"no-proto":w(H8),"no-return-assign":w(V8),"no-shadow":w(_8),"no-throw-literal":w(F8),"no-use-before-define":w(B8),"no-useless-call":w(w8),"no-with":w(E8),"require-await":w(R8),complexity:w(d$),"max-depth":w(r$),"max-lines-per-function":w(l$),"no-extra-boolean-cast":w(X8),"no-lonely-if":w(k1),"no-sequences":w(A8),"no-useless-concat":w(M8),"no-useless-escape":w(j8),"no-useless-rename":w(N8),"no-useless-return":w(f1),"no-var":w(T8),"prefer-arrow-callback":w(D8)}};var vZ={meta:{docs:"Disallow return statements in constructors - constructors automatically return the instance"},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=z.indexOf("//");if(!(Q>=0?z.slice(0,Q):z).match(/\bconstructor\s*\(/))continue;let U=0,W=!1,K=-1;for(let H=Y;H<X.length;H++){let V=X[H],A=null,_=!1;for(let B=0;B<V.length;B++){let F=V[B];if(_){_=!1;continue}if(F==="\\"&&A){_=!0;continue}if(!A){if(F==="'")A="single";else if(F==='"')A="double";else if(F==="`")A="template";else if(F==="{")U++,W=!0;else if(F==="}"){if(U--,W&&U===0){K=H;break}}}else if(A==="single"&&F==="'"||A==="double"&&F==='"'||A==="template"&&F==="`")A=null}if(K!==-1)break}if(K===-1)continue;for(let H=Y;H<=K;H++){let V=X[H];if(H===Y)continue;if(/^\s*\/\//.test(V))continue;let A=V.indexOf("//"),_=A>=0?V.slice(0,A):V;if(_=_.replace(/(['"`])(?:(?!\1)[^\\]|\\.)*?\1/g,'""'),_.match(/\breturn\b/)){let F=_.indexOf("return"),M=F>0?_[F-1]:" ",T=F+6<_.length?_[F+6]:" ";if(/\w/.test(M)||/\w/.test(T))continue;let E=_.slice(F+6).trim();if(E.startsWith("this;")||E==="this")continue;if(E===";"||E==="")continue;let j=V.indexOf("return");Z.push({filePath:J.filePath,line:H+1,column:j+1||1,ruleId:"no-constructor-return",message:"Unexpected return statement in constructor. Constructors should not return values.",severity:"error",help:"Remove the return statement or move the logic outside of the constructor"})}}}return Z}};var yZ={meta:{docs:"Disallow irregular whitespace characters that may cause issues in code"},check:($,J)=>{let Z=[],X=/[\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/g,Y=$.split(/\r?\n/);for(let z=0;z<Y.length;z++){let Q=Y[z],G;X.lastIndex=0;while((G=X.exec(Q))!==null){let U=G[0].charCodeAt(0),W="irregular whitespace",K={160:"NO-BREAK SPACE",5760:"OGHAM SPACE MARK",6158:"MONGOLIAN VOWEL SEPARATOR",8192:"EN QUAD",8193:"EM QUAD",8194:"EN SPACE",8195:"EM SPACE",8196:"THREE-PER-EM SPACE",8197:"FOUR-PER-EM SPACE",8198:"SIX-PER-EM SPACE",8199:"FIGURE SPACE",8200:"PUNCTUATION SPACE",8201:"THIN SPACE",8202:"HAIR SPACE",8232:"LINE SEPARATOR",8233:"PARAGRAPH SEPARATOR",8239:"NARROW NO-BREAK SPACE",8287:"MEDIUM MATHEMATICAL SPACE",12288:"IDEOGRAPHIC SPACE",65279:"ZERO WIDTH NO-BREAK SPACE"};if(K[U])W=K[U];Z.push({filePath:J.filePath,line:z+1,column:G.index+1,ruleId:"no-irregular-whitespace",message:`Irregular whitespace detected: ${W} (U+${U.toString(16).toUpperCase().padStart(4,"0")})`,severity:"error",help:"Replace irregular whitespace with regular spaces or tabs"})}}return Z},fix:($)=>{return $.replace(/[\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/g," ")}};var bZ={meta:{docs:"Disallow new operators outside of assignments or comparisons",recommended:!0},check($,J){let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=z.trim();if(Q.startsWith("//")||Q.startsWith("/*")||Q.startsWith("*"))continue;if(/^\s*new\s+\w+/.test(z)){let q=/^\s*(?:const|let|var|this\.\w+)\s*=\s*new\s+/,U=/^\s*return\s+new\s+/,W=new RegExp("^\\s*new\\s+\\w[^;]*,"),K=/[=:,(]\s*new\s+/;if(!q.test(z)&&!U.test(z)&&!W.test(z)&&!K.test(Q)){let H=z.search(/new\s+/)+1;Z.push({filePath:J.filePath,line:Y+1,column:H,ruleId:"no-new",message:"Do not use 'new' for side effects",severity:"error",help:"Either assign the result to a variable or remove the 'new' operator if the side effect is intentional."})}}}return Z}};var kZ={meta:{docs:"Disallow multiple spaces in regular expressions",recommended:!0},check($,J){let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y];if(/^\s*\/\//.test(z))continue;let Q=/\/(?![*/])((?:\\.|[^/\\])+)\/[gimsuvy]*/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){let U=G[1];if(/ {2,}/.test(U)){let W=G.index+1;Z.push({filePath:J.filePath,line:Y+1,column:W,ruleId:"no-regex-spaces",message:"Multiple spaces in regular expression",severity:"error",help:"Use quantifiers like {2} instead of multiple spaces for clarity."})}}let q=/new\s+RegExp\s*\(\s*['"`]([^'"`]+)['"`]/g;for(G=q.exec(z);G!==null;G=q.exec(z)){let U=G[1];if(/ {2,}/.test(U)){let W=G.index+1;Z.push({filePath:J.filePath,line:Y+1,column:W,ruleId:"no-regex-spaces",message:"Multiple spaces in regular expression",severity:"error",help:"Use quantifiers like {2} instead of multiple spaces for clarity."})}}}return Z}};var fZ=new Set(["|","&",":",",","<"]),J2=new Set(["(",",","=",":","[","!","&","|","?","{","}",";","+","-","*","%","<",">","~","^"]),X2=["return","typeof","instanceof","in","of","new","delete","void","case","do","else","yield","await"];function Y2($,J){let Z=J-1;while(Z>=0&&/\s/.test($[Z]))Z-=1;if(Z<0)return!0;let X=$[Z];if(J2.has(X))return!0;if(/[\w$)\]]/.test(X)){if(/[\w$]/.test(X)){let Y=Z;while(Y>=0&&/[\w$]/.test($[Y]))Y-=1;let z=$.slice(Y+1,Z+1);return X2.includes(z)}return!1}return!0}function O8($,J){if($[J+1]==="/"||$[J+1]==="*")return!1;let Z=$.slice(0,J).trimEnd();return!Z||/[=([{,:;!&|?]$/.test(Z)||Z.endsWith("=>")||Z.endsWith("return")}function z2($){let J=$.split(""),Z=0,X=null,Y=!1,z=(Q,G)=>{for(let q=Q;q<G&&q<J.length;q+=1)if(J[q]!==`
58
- `&&J[q]!=="\r")J[q]=" "};while(Z<$.length){let Q=$[Z];if(X){if(Y)Y=!1;else if(Q==="\\")Y=!0;else if(Q===X)X=null;else if(Q===`
59
- `&&X!=="`")X=null;Z+=1;continue}if(Q==="'"||Q==='"'||Q==="`"){X=Q,Z+=1;continue}if(Q==="/"&&$[Z+1]!=="/"&&$[Z+1]!=="*"&&Y2($,Z)){let G=Z+1,q=!1,U=!1;while(G<$.length){let W=$[G];if(U)U=!1;else if(W==="\\")U=!0;else if(W==="[")q=!0;else if(W==="]")q=!1;else if(W===`
60
- `)break;else if(W==="/"&&!q){G+=1;break}G+=1}Z=G;continue}if(Q==="/"&&$[Z+1]==="/"){let G=$.indexOf(`
61
- `,Z);z(Z+2,G<0?$.length:G),Z=G<0?$.length:G;continue}if(Q==="/"&&$[Z+1]==="*"){let G=$.indexOf("*/",Z+2);z(Z+2,G<0?$.length:G),Z=G<0?$.length:G+2;continue}Z+=1}return J.join("")}var n0={meta:{docs:"Report variables and parameters that are declared/assigned but never used"},check:($,J)=>{if(J.filePath.endsWith("/no-unused-vars.ts"))return[];if(J.filePath.endsWith(".d.ts"))return[];let Z=[],X=J.options||{},Y=typeof X.varsIgnorePattern==="string"?X.varsIgnorePattern:"^_",z=typeof X.argsIgnorePattern==="string"?X.argsIgnorePattern:"^_",Q=new RegExp(Y,"u"),G=new RegExp(z,"u"),q=z2($),U=q.split(/\r?\n/),W=q,K=Array(U.length).fill(!1);(()=>{let j=[],O=!1,v=!1,y=!1,C=!1,k=!1,P="",L=()=>{if(P==="")return!0;if("=([{,;!&|?:+-*/%^~<>".includes(P))return!0;return!1};for(let I=0;I<U.length;I++){K[I]=j.length>0&&j[j.length-1]===-1;let f=U[I];for(let S=0;S<f.length;S++){let N=f[S];if(C){if(N==="*"&&S+1<f.length&&f[S+1]==="/")C=!1,S++;continue}if(k){k=!1;continue}let R=j.length>0&&j[j.length-1]===-1,D=j.length>0&&j[j.length-1]>=0;if(N==="\\"&&(O||v||y||R)){k=!0;continue}if(O){if(N==="'")O=!1;continue}if(v){if(N==='"')v=!1;continue}if(y){if(N==="["){let g=1,x=S+1;while(x<f.length){let p=f[x];if(p==="\\"){x+=2;continue}if(p==="]"){if(g--,g===0)break}x++}S=x;continue}if(N==="/"){y=!1;while(S+1<f.length&&/[gimsuvy]/.test(f[S+1]))S++}continue}if(R){if(N==="`")j.pop();else if(N==="$"&&S+1<f.length&&f[S+1]==="{")j.push(0),S++;continue}if(N==="/"&&S+1<f.length&&f[S+1]==="/")break;if(N==="/"&&S+1<f.length&&f[S+1]==="*"){C=!0,S++;continue}if(D){if(N==="`")j.push(-1),P="";else if(N==="'")O=!0,P="'";else if(N==='"')v=!0,P='"';else if(N==="{")j[j.length-1]++,P="{";else if(N==="}"){let g=j[j.length-1];if(g>0)j[j.length-1]=g-1;else j.pop();P="}"}else if(N==="/"&&L())y=!0;else if(!/\s/.test(N))P=N;continue}if(N==="`")j.push(-1),P="";else if(N==="'")O=!0,P="'";else if(N==='"')v=!0,P='"';else if(N==="/"&&L())y=!0;else if(!/\s/.test(N))P=N}}})();let V=new RegExp("^\\s*(?:const|let|var)\\s+(.+?);?\\s*$");for(let j=0;j<U.length;j++){if(K[j])continue;let O=U[j],v=O.match(V);if(!v)continue;let y=v[1],C=[],k="",P=0,L=0,I=null,f=!1;for(let S=0;S<y.length;S++){let N=y[S];if(f){f=!1,k+=N;continue}if(N==="\\"&&I){f=!0,k+=N;continue}if(!I){if(N==="/"&&y[S+1]==="/")break;if(N==="/"&&y[S+1]==="*"){S+=2;while(S<y.length&&!(y[S]==="*"&&y[S+1]==="/"))S++;S++;continue}if(N==="'")I="single";else if(N==='"')I="double";else if(N==="`")I="template";else if(N==="<")L++;else if(N===">")L--;else if(N==="("||N==="["||N==="{")P++;else if(N===")"||N==="]"||N==="}")P--;else if(N===","&&P===0&&L===0){C.push(k),k="";continue}}else if(I==="single"&&N==="'"||I==="double"&&N==='"'||I==="template"&&N==="`")I=null;k+=N}if(k)C.push(k);for(let S of C){let N=S.trim();if(!N)continue;let R=N.match(/^([$A-Z_][\w$]*)/i),D=[];if(R)D.push(R[1]);else if(N.startsWith("{")||N.startsWith("[")){let g=N[0],x=g==="{"?"}":"]",p=0,b=-1,m=null,u=!1;for(let n=0;n<N.length;n++){let c=N[n];if(u){u=!1;continue}if(c==="\\"&&m){u=!0;continue}if(!m){if(c==="'"||c==='"'||c==="`")m=c==="'"?"single":c==='"'?"double":"template";else if(c===g)p++;else if(c===x){if(p--,p===0){b=n;break}}}else if(m==="single"&&c==="'"||m==="double"&&c==='"'||m==="template"&&c==="`")m=null}if(b>0){let n=N.slice(1,b),c=[],$0="",V0=0,d=null,a=!1;for(let l=0;l<n.length;l++){let o=n[l];if(a){a=!1,$0+=o;continue}if(o==="\\"&&d){a=!0,$0+=o;continue}if(!d){if(o==="'"||o==='"'||o==="`"){d=o==="'"?"single":o==='"'?"double":"template",$0+=o;continue}if(o==="("||o==="{"||o==="[")V0++;if(o===")"||o==="}"||o==="]")V0--;if(o===","&&V0===0){c.push($0.trim()),$0="";continue}}else if(d==="single"&&o==="'"||d==="double"&&o==='"'||d==="template"&&o==="`")d=null;$0+=o}if($0.trim())c.push($0.trim());for(let l of c){if(l.startsWith("...")){let M0=l.slice(3).match(/^([$A-Z_][\w$]*)/i);if(M0)D.push(M0[1]);continue}let o=l.indexOf(":");if(o!==-1){let M0=l.slice(o+1).trim(),_0=0;for(let h0=0;h0<M0.length;h0++){let R0=M0[h0];if(R0==="("||R0==="{"||R0==="[")_0++;else if(R0===")"||R0==="}"||R0==="]")_0--;else if(R0==="="&&_0===0){M0=M0.slice(0,h0).trim();break}}let L1=M0.match(/^([$A-Z_][\w$]*)/i);if(L1)D.push(L1[1])}else{let M0=l,_0=0;for(let h0=0;h0<M0.length;h0++){let R0=M0[h0];if(R0==="("||R0==="{"||R0==="[")_0++;else if(R0===")"||R0==="}"||R0==="]")_0--;else if(R0==="="&&_0===0){M0=M0.slice(0,h0).trim();break}}let L1=M0.match(/^([$A-Z_][\w$]*)/i);if(L1)D.push(L1[1])}}}}for(let g of D){if(Q.test(g))continue;let x=`${U.slice(0,j).join(`
57
+ `)}};var E8={meta:{docs:"Disallow with statements",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\bwith\s*\(/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){if(z.substring(0,G.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/no-with",message:"Unexpected use of 'with' statement",severity:"error"})}}return Z}};var D8={meta:{docs:"Require using arrow functions for callbacks",recommended:!1},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=/\.(map|filter|reduce|forEach|some|every|find|findIndex)\s*\(\s*function\s*\(/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){if(z.substring(0,G.index).includes("//"))continue;Z.push({filePath:J.filePath,line:Y+1,column:Math.max(1,G.index+1),ruleId:"eslint/prefer-arrow-callback",message:"Unexpected function expression, use arrow function instead",severity:"warning"})}}return Z}};var R8={meta:{docs:"Disallow async functions which have no await expression",recommended:!0},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++)if(X[Y].match(/\basync\s+(?:function\s+\w+|(?:\(|\w+)\s*(?:\(|=>))/)){let G=!1,q=0,U=!1,W=Y;while(W<X.length){let K=X[W];for(let H of K){if(H==="{")q++,U=!0;if(H==="}"){if(q--,q===0&&U)break}}if(K.match(/\bawait\s+/))G=!0;if(q===0&&U){if(!G)Z.push({filePath:J.filePath,line:Y+1,column:1,ruleId:"eslint/require-await",message:"Async function has no await expression",severity:"error"});break}W++}}return Z}};var LZ=/\.(?:ts|js|tsx|jsx|mts|mjs|cts|cjs)$/;function w($){return{meta:$.meta,check:(J,Z)=>{if(!LZ.test(Z.filePath))return[];return $.check(J,Z)},fix:$.fix?(J,Z)=>{if(!LZ.test(Z.filePath))return J;return $.fix(J,Z)}:void 0}}var PZ=/\.(?:sh|bash|zsh|ksh|dash)$/,CZ=/^#!\s*(?:\/usr\/bin\/env\s+)?(?:ba|z|k|da)?sh\b/;function H0($){return{meta:$.meta,check:(J,Z)=>{if(!PZ.test(Z.filePath)&&!CZ.test(J))return[];return $.check(J,Z)},fix:$.fix?(J,Z)=>{if(!PZ.test(Z.filePath)&&!CZ.test(J))return J;return $.fix(J,Z)}:void 0}}var IZ=/(?:^|[/\\])package\.json$/;function A0($){return{meta:$.meta,check:(J,Z)=>{if(!IZ.test(Z.filePath))return[];return $.check(J,Z)},fix:$.fix?(J,Z)=>{if(!IZ.test(Z.filePath))return J;return $.fix(J,Z)}:void 0}}var SZ={name:"eslint",rules:{"array-callback-return":w(M$),"constructor-super":w(j$),"for-direction":w(N$),"getter-return":w(T$),"no-async-promise-executor":w(E$),"no-compare-neg-zero":w(D$),"no-cond-assign":w(R$),"no-constant-condition":w(L$),"no-const-assign":w(O$),"no-dupe-class-members":w(P$),"no-dupe-keys":w(y1),"no-duplicate-case":w(C$),"no-empty-pattern":w(I$),"no-fallthrough":w(S$),"no-loss-of-precision":w(v$),"no-promise-executor-return":w(y$),"no-redeclare":w(b$),"no-self-assign":w(b1),"no-self-compare":w(k$),"no-sparse-arrays":w(f$),"no-undef":w(g$),"no-unsafe-negation":w(x$),"no-unreachable":w(p$),"no-useless-catch":w(h$),"use-isnan":w(u$),"valid-typeof":w(m$),"default-case":w(o$),eqeqeq:w(c$),"no-alert":w(a$),"no-await-in-loop":w(s$),"no-caller":w(n$),"no-case-declarations":w(i$),"no-else-return":w(t$),"no-empty":w(e$),"no-empty-function":w($8),"no-eval":w(Z8),"no-extend-native":w(J8),"no-global-assign":w(Y8),"no-implied-eval":w(z8),"no-iterator":w(Q8),"no-new":w(G8),"no-new-func":w(q8),"no-new-wrappers":w(U8),"no-octal":w(W8),"no-param-reassign":w(K8),"no-proto":w(H8),"no-return-assign":w(V8),"no-shadow":w(_8),"no-throw-literal":w(F8),"no-use-before-define":w(B8),"no-useless-call":w(w8),"no-with":w(E8),"require-await":w(R8),complexity:w(d$),"max-depth":w(r$),"max-lines-per-function":w(l$),"no-extra-boolean-cast":w(X8),"no-lonely-if":w(k1),"no-sequences":w(A8),"no-useless-concat":w(M8),"no-useless-escape":w(j8),"no-useless-rename":w(N8),"no-useless-return":w(f1),"no-var":w(T8),"prefer-arrow-callback":w(D8)}};var vZ={meta:{docs:"Disallow return statements in constructors - constructors automatically return the instance"},check:($,J)=>{let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=z.indexOf("//");if(!(Q>=0?z.slice(0,Q):z).match(/\bconstructor\s*\(/))continue;let U=0,W=!1,K=-1;for(let H=Y;H<X.length;H++){let V=X[H],A=null,_=!1;for(let B=0;B<V.length;B++){let F=V[B];if(_){_=!1;continue}if(F==="\\"&&A){_=!0;continue}if(!A){if(F==="'")A="single";else if(F==='"')A="double";else if(F==="`")A="template";else if(F==="{")U++,W=!0;else if(F==="}"){if(U--,W&&U===0){K=H;break}}}else if(A==="single"&&F==="'"||A==="double"&&F==='"'||A==="template"&&F==="`")A=null}if(K!==-1)break}if(K===-1)continue;for(let H=Y;H<=K;H++){let V=X[H];if(H===Y)continue;if(/^\s*\/\//.test(V))continue;let A=V.indexOf("//"),_=A>=0?V.slice(0,A):V;if(_=_.replace(/(['"`])(?:(?!\1)[^\\]|\\.)*?\1/g,'""'),_.match(/\breturn\b/)){let F=_.indexOf("return"),M=F>0?_[F-1]:" ",T=F+6<_.length?_[F+6]:" ";if(/\w/.test(M)||/\w/.test(T))continue;let E=_.slice(F+6).trim();if(E.startsWith("this;")||E==="this")continue;if(E===";"||E==="")continue;let j=V.indexOf("return");Z.push({filePath:J.filePath,line:H+1,column:j+1||1,ruleId:"no-constructor-return",message:"Unexpected return statement in constructor. Constructors should not return values.",severity:"error",help:"Remove the return statement or move the logic outside of the constructor"})}}}return Z}};var yZ={meta:{docs:"Disallow irregular whitespace characters that may cause issues in code"},check:($,J)=>{let Z=[],X=/[\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/g,Y=$.split(/\r?\n/);for(let z=0;z<Y.length;z++){let Q=Y[z],G;X.lastIndex=0;while((G=X.exec(Q))!==null){let U=G[0].charCodeAt(0),W="irregular whitespace",K={160:"NO-BREAK SPACE",5760:"OGHAM SPACE MARK",6158:"MONGOLIAN VOWEL SEPARATOR",8192:"EN QUAD",8193:"EM QUAD",8194:"EN SPACE",8195:"EM SPACE",8196:"THREE-PER-EM SPACE",8197:"FOUR-PER-EM SPACE",8198:"SIX-PER-EM SPACE",8199:"FIGURE SPACE",8200:"PUNCTUATION SPACE",8201:"THIN SPACE",8202:"HAIR SPACE",8232:"LINE SEPARATOR",8233:"PARAGRAPH SEPARATOR",8239:"NARROW NO-BREAK SPACE",8287:"MEDIUM MATHEMATICAL SPACE",12288:"IDEOGRAPHIC SPACE",65279:"ZERO WIDTH NO-BREAK SPACE"};if(K[U])W=K[U];Z.push({filePath:J.filePath,line:z+1,column:G.index+1,ruleId:"no-irregular-whitespace",message:`Irregular whitespace detected: ${W} (U+${U.toString(16).toUpperCase().padStart(4,"0")})`,severity:"error",help:"Replace irregular whitespace with regular spaces or tabs"})}}return Z},fix:($)=>{return $.replace(/[\u00A0\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]/g," ")}};var bZ={meta:{docs:"Disallow new operators outside of assignments or comparisons",recommended:!0},check($,J){let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y],Q=z.trim();if(Q.startsWith("//")||Q.startsWith("/*")||Q.startsWith("*"))continue;if(/^\s*new\s+\w+/.test(z)){let q=/^\s*(?:const|let|var|this\.\w+)\s*=\s*new\s+/,U=/^\s*return\s+new\s+/,W=new RegExp("^\\s*new\\s+\\w[^;]*,"),K=/[=:,(]\s*new\s+/;if(!q.test(z)&&!U.test(z)&&!W.test(z)&&!K.test(Q)){let H=z.search(/new\s+/)+1;Z.push({filePath:J.filePath,line:Y+1,column:H,ruleId:"no-new",message:"Do not use 'new' for side effects",severity:"error",help:"Either assign the result to a variable or remove the 'new' operator if the side effect is intentional."})}}}return Z}};var kZ={meta:{docs:"Disallow multiple spaces in regular expressions",recommended:!0},check($,J){let Z=[],X=$.split(/\r?\n/);for(let Y=0;Y<X.length;Y++){let z=X[Y];if(/^\s*\/\//.test(z))continue;let Q=/\/(?![*/])((?:\\.|[^/\\])+)\/[gimsuvy]*/g,G;for(G=Q.exec(z);G!==null;G=Q.exec(z)){let U=G[1];if(/ {2,}/.test(U)){let W=G.index+1;Z.push({filePath:J.filePath,line:Y+1,column:W,ruleId:"no-regex-spaces",message:"Multiple spaces in regular expression",severity:"error",help:"Use quantifiers like {2} instead of multiple spaces for clarity."})}}let q=/new\s+RegExp\s*\(\s*['"`]([^'"`]+)['"`]/g;for(G=q.exec(z);G!==null;G=q.exec(z)){let U=G[1];if(/ {2,}/.test(U)){let W=G.index+1;Z.push({filePath:J.filePath,line:Y+1,column:W,ruleId:"no-regex-spaces",message:"Multiple spaces in regular expression",severity:"error",help:"Use quantifiers like {2} instead of multiple spaces for clarity."})}}}return Z}};var fZ=new Set(["|","&",":",",","<"]),J2=new Set(["(",",","=",":","[","!","&","|","?","{","}",";","+","-","*","%","<",">","~","^"]),X2=["return","typeof","instanceof","in","of","new","delete","void","case","do","else","yield","await"];function Y2($,J){let Z=J-1;while(Z>=0&&/\s/.test($[Z]))Z-=1;if(Z<0)return!0;let X=$[Z];if(J2.has(X))return!0;if(/[\w$)\]]/.test(X)){if(/[\w$]/.test(X)){let Y=Z;while(Y>=0&&/[\w$]/.test($[Y]))Y-=1;let z=$.slice(Y+1,Z+1);return X2.includes(z)}return!1}return!0}function O8($,J){if($[J+1]==="/"||$[J+1]==="*")return!1;let Z=$.slice(0,J).trimEnd();return!Z||/[=([{,:;!&|?]$/.test(Z)||Z.endsWith("=>")||Z.endsWith("return")}function z2($){let J=$.split(""),Z=0,X=null,Y=!1,z=[],Q=()=>z.length>0&&z[z.length-1]===-1,G=()=>z.length>0&&z[z.length-1]>=0,q=(U,W)=>{for(let K=U;K<W&&K<J.length;K+=1)if(J[K]!==`
58
+ `&&J[K]!=="\r")J[K]=" "};while(Z<$.length){let U=$[Z];if(X){if(Y)Y=!1;else if(U==="\\")Y=!0;else if(U===X)X=null;else if(U===`
59
+ `)X=null;Z+=1;continue}if(Q()){if(Y)Y=!1;else if(U==="\\")Y=!0;else if(U==="`")z.pop();else if(U==="$"&&$[Z+1]==="{")z.push(0),Z+=1;Z+=1;continue}if(U==="`"){z.push(-1),Z+=1;continue}if(G()){if(U==="{"){z[z.length-1]+=1,Z+=1;continue}if(U==="}"){let W=z[z.length-1];if(W>0)z[z.length-1]=W-1;else z.pop();Z+=1;continue}}if(U==="'"||U==='"'){X=U,Z+=1;continue}if(U==="/"&&$[Z+1]!=="/"&&$[Z+1]!=="*"&&Y2($,Z)){let W=Z+1,K=!1,H=!1;while(W<$.length){let V=$[W];if(H)H=!1;else if(V==="\\")H=!0;else if(V==="[")K=!0;else if(V==="]")K=!1;else if(V===`
60
+ `)break;else if(V==="/"&&!K){W+=1;break}W+=1}Z=W;continue}if(U==="/"&&$[Z+1]==="/"){let W=$.indexOf(`
61
+ `,Z);q(Z+2,W<0?$.length:W),Z=W<0?$.length:W;continue}if(U==="/"&&$[Z+1]==="*"){let W=$.indexOf("*/",Z+2);q(Z+2,W<0?$.length:W),Z=W<0?$.length:W+2;continue}Z+=1}return J.join("")}var n0={meta:{docs:"Report variables and parameters that are declared/assigned but never used"},check:($,J)=>{if(J.filePath.endsWith("/no-unused-vars.ts"))return[];if(J.filePath.endsWith(".d.ts"))return[];let Z=[],X=J.options||{},Y=typeof X.varsIgnorePattern==="string"?X.varsIgnorePattern:"^_",z=typeof X.argsIgnorePattern==="string"?X.argsIgnorePattern:"^_",Q=new RegExp(Y,"u"),G=new RegExp(z,"u"),q=z2($),U=q.split(/\r?\n/),W=q,K=Array(U.length).fill(!1);(()=>{let j=[],O=!1,v=!1,y=!1,C=!1,k=!1,P="",L=()=>{if(P==="")return!0;if("=([{,;!&|?:+-*/%^~<>".includes(P))return!0;return!1};for(let I=0;I<U.length;I++){K[I]=j.length>0&&j[j.length-1]===-1;let f=U[I];for(let S=0;S<f.length;S++){let N=f[S];if(C){if(N==="*"&&S+1<f.length&&f[S+1]==="/")C=!1,S++;continue}if(k){k=!1;continue}let R=j.length>0&&j[j.length-1]===-1,D=j.length>0&&j[j.length-1]>=0;if(N==="\\"&&(O||v||y||R)){k=!0;continue}if(O){if(N==="'")O=!1;continue}if(v){if(N==='"')v=!1;continue}if(y){if(N==="["){let g=1,x=S+1;while(x<f.length){let p=f[x];if(p==="\\"){x+=2;continue}if(p==="]"){if(g--,g===0)break}x++}S=x;continue}if(N==="/"){y=!1;while(S+1<f.length&&/[gimsuvy]/.test(f[S+1]))S++}continue}if(R){if(N==="`")j.pop();else if(N==="$"&&S+1<f.length&&f[S+1]==="{")j.push(0),S++;continue}if(N==="/"&&S+1<f.length&&f[S+1]==="/")break;if(N==="/"&&S+1<f.length&&f[S+1]==="*"){C=!0,S++;continue}if(D){if(N==="`")j.push(-1),P="";else if(N==="'")O=!0,P="'";else if(N==='"')v=!0,P='"';else if(N==="{")j[j.length-1]++,P="{";else if(N==="}"){let g=j[j.length-1];if(g>0)j[j.length-1]=g-1;else j.pop();P="}"}else if(N==="/"&&L())y=!0;else if(!/\s/.test(N))P=N;continue}if(N==="`")j.push(-1),P="";else if(N==="'")O=!0,P="'";else if(N==='"')v=!0,P='"';else if(N==="/"&&L())y=!0;else if(!/\s/.test(N))P=N}}})();let V=new RegExp("^\\s*(?:const|let|var)\\s+(.+?);?\\s*$");for(let j=0;j<U.length;j++){if(K[j])continue;let O=U[j],v=O.match(V);if(!v)continue;let y=v[1],C=[],k="",P=0,L=0,I=null,f=!1;for(let S=0;S<y.length;S++){let N=y[S];if(f){f=!1,k+=N;continue}if(N==="\\"&&I){f=!0,k+=N;continue}if(!I){if(N==="/"&&y[S+1]==="/")break;if(N==="/"&&y[S+1]==="*"){S+=2;while(S<y.length&&!(y[S]==="*"&&y[S+1]==="/"))S++;S++;continue}if(N==="'")I="single";else if(N==='"')I="double";else if(N==="`")I="template";else if(N==="<")L++;else if(N===">")L--;else if(N==="("||N==="["||N==="{")P++;else if(N===")"||N==="]"||N==="}")P--;else if(N===","&&P===0&&L===0){C.push(k),k="";continue}}else if(I==="single"&&N==="'"||I==="double"&&N==='"'||I==="template"&&N==="`")I=null;k+=N}if(k)C.push(k);for(let S of C){let N=S.trim();if(!N)continue;let R=N.match(/^([$A-Z_][\w$]*)/i),D=[];if(R)D.push(R[1]);else if(N.startsWith("{")||N.startsWith("[")){let g=N[0],x=g==="{"?"}":"]",p=0,b=-1,m=null,u=!1;for(let n=0;n<N.length;n++){let c=N[n];if(u){u=!1;continue}if(c==="\\"&&m){u=!0;continue}if(!m){if(c==="'"||c==='"'||c==="`")m=c==="'"?"single":c==='"'?"double":"template";else if(c===g)p++;else if(c===x){if(p--,p===0){b=n;break}}}else if(m==="single"&&c==="'"||m==="double"&&c==='"'||m==="template"&&c==="`")m=null}if(b>0){let n=N.slice(1,b),c=[],$0="",V0=0,d=null,a=!1;for(let l=0;l<n.length;l++){let o=n[l];if(a){a=!1,$0+=o;continue}if(o==="\\"&&d){a=!0,$0+=o;continue}if(!d){if(o==="'"||o==='"'||o==="`"){d=o==="'"?"single":o==='"'?"double":"template",$0+=o;continue}if(o==="("||o==="{"||o==="[")V0++;if(o===")"||o==="}"||o==="]")V0--;if(o===","&&V0===0){c.push($0.trim()),$0="";continue}}else if(d==="single"&&o==="'"||d==="double"&&o==='"'||d==="template"&&o==="`")d=null;$0+=o}if($0.trim())c.push($0.trim());for(let l of c){if(l.startsWith("...")){let M0=l.slice(3).match(/^([$A-Z_][\w$]*)/i);if(M0)D.push(M0[1]);continue}let o=l.indexOf(":");if(o!==-1){let M0=l.slice(o+1).trim(),_0=0;for(let h0=0;h0<M0.length;h0++){let R0=M0[h0];if(R0==="("||R0==="{"||R0==="[")_0++;else if(R0===")"||R0==="}"||R0==="]")_0--;else if(R0==="="&&_0===0){M0=M0.slice(0,h0).trim();break}}let L1=M0.match(/^([$A-Z_][\w$]*)/i);if(L1)D.push(L1[1])}else{let M0=l,_0=0;for(let h0=0;h0<M0.length;h0++){let R0=M0[h0];if(R0==="("||R0==="{"||R0==="[")_0++;else if(R0===")"||R0==="}"||R0==="]")_0--;else if(R0==="="&&_0===0){M0=M0.slice(0,h0).trim();break}}let L1=M0.match(/^([$A-Z_][\w$]*)/i);if(L1)D.push(L1[1])}}}}for(let g of D){if(Q.test(g))continue;let x=`${U.slice(0,j).join(`
62
62
  `)}
63
63
  ${U.slice(j+1).join(`
64
64
  `)}`;if(!new RegExp(`\\b${g}\\b`,"g").test(x))Z.push({filePath:J.filePath,line:j+1,column:Math.max(1,O.indexOf(g)+1),ruleId:"pickier/no-unused-vars",message:`'${g}' is assigned a value but never used. Allowed unused vars must match pattern: ${Y}`,severity:"error",help:`Either use this variable in your code, remove it, or prefix it with an underscore (_${g}) to mark it as intentionally unused`})}}}let A=(j)=>{let v=((k)=>{let P="",L=null,I=!1,f=0;for(let S=0;S<k.length;S++){let N=k[S];if(I){I=!1;continue}if(N==="\\"&&L){I=!0;continue}if(!L){if(N==="'")L="single";else if(N==='"')L="double";else if(N==="`")L="template";else if(N==="("||N==="{"||N==="[")f++;else if(N===")"||N==="}"||N==="]")f--;else if(N==="="&&f===0)return P}else if(L==="single"&&N==="'"||L==="double"&&N==='"'||L==="template"&&N==="`")L=null;P+=N}return P})(j);return((k)=>{let P="",L=0;while(L<k.length){let I=k[L];if(I===":"){L++;while(L<k.length&&/\s/.test(k[L]))L++;let f=0,S=0,N=null,R=!1;while(L<k.length){let D=k[L];if(R){R=!1,L++;continue}if(D==="\\"&&N){R=!0,L++;continue}if(!N){if(D==="'")N="single";else if(D==='"')N="double";else if(D==="`")N="template";else if(D==="<")S++;else if(D===">")S--;else if(D==="("||D==="{"||D==="[")f++;else if(D===")"||D==="}"||D==="]")if(f>0)f--;else break;else if(D===","&&f===0&&S===0)break}else if(N==="single"&&D==="'"||N==="double"&&D==='"'||N==="template"&&D==="`")N=null;L++}continue}P+=I,L++}return P})(v).split(/[^$\w]+/).filter((k)=>k&&k!=="undefined")},_=(j,O)=>{let v=!1,y=0,C=0,k=!1,P=0,L=null,I=!1,f=!0,S="",N=!1,R=!1,D=[],g=!1;for(let x=j;x<U.length;x++){let p=U[x],b=p,m=D.length>0&&D[D.length-1]===-1,u=-1,n=null,c=!1;if(!m)for(let d=0;d<p.length-1;d++){let a=p[d],l=p[d+1];if(c){c=!1;continue}if(a==="\\"&&n){c=!0;continue}if(!n){if(a==="'")n="single";else if(a==='"')n="double";else if(a==="`")n="template";else if(a==="/"&&l==="/"){u=d;break}}else if(n==="single"&&a==="'"||n==="double"&&a==='"'||n==="template"&&a==="`")n=null}if(u>=0)b=p.slice(0,u);let $0=(d)=>{let a="",l=0,o=null,M0=!1;while(l<d.length){let _0=d[l];if(M0){M0=!1,a+=_0,l++;continue}if(_0==="\\"&&o){M0=!0,a+=_0,l++;continue}if(!o){if(_0==="'")o="single";else if(_0==='"')o="double";else if(_0==="`")o="template";else if(_0==="/"){if(O8(d,l)){l++;while(l<d.length){if(d[l]==="\\"){l+=2;continue}if(d[l]==="/"){l++;while(l<d.length&&/[gimsuvy]/.test(d[l]))l++;break}l++}continue}}}else if(o==="single"&&_0==="'"||o==="double"&&_0==='"'||o==="template"&&_0==="`")o=null;a+=_0,l++}return a};if(!m)b=$0(b);let V0=0;if(!v){let d=-1,a=f?typeof O==="number"?O:0:0;if(f=!1,a>=b.length){let l=b.indexOf("=>");a=l>=0?l+2:0}for(let l=a;l<b.length;l++){let o=b[l];if(I){I=!1;continue}if(o==="\\"&&L){I=!0;continue}if(!L){if(o!==" "&&o!=="\t"&&o!==`
65
- `&&o!=="\r"&&o!=="{"&&o!=="}"&&C===0)S=o;if(o==="'")L="single";else if(o==='"')L="double";else if(o==="`")L="template";else if(o==="<")P++;else if(o===">")P=Math.max(0,P-1);else if(o==="{"){if(C===0){if(k&&P===0&&!fZ.has(S)){d=l;break}}C++}else if(o==="}"){if(C>0){if(C--,C===0)k=!0,S="}"}}}else if(L==="single"&&o==="'"||L==="double"&&o==='"'||L==="template"&&o==="`")L=null}if(d===-1){if(C>0&&fZ.has(S))continue;for(let l=a;l<b.length;l++)if(b[l]==="{"&&!L){d=l;break}}if(d===-1)continue;v=!0,y=1,V0=d+1,j=x}for(let d=V0;d<b.length;d++){let a=b[d];if(g){g=!1;continue}let l=D.length>0&&D[D.length-1]===-1,o=D.length>0&&D[D.length-1]>=0;if(a==="\\"&&(N||R||l)){g=!0;continue}if(N){if(a==="'")N=!1;continue}if(R){if(a==='"')R=!1;continue}if(l){if(a==="`")D.pop();else if(a==="$"&&d+1<b.length&&b[d+1]==="{")D[D.length-1]=0,d++;continue}if(o){if(a==="/"){if(O8(b,d)){d++;while(d<b.length){if(b[d]==="\\"){d+=2;continue}if(b[d]==="/"){while(d+1<b.length&&/[gimsuvy]/.test(b[d+1]))d++;break}d++}continue}}if(a==="`"){D.push(-1);continue}if(a==="'"){N=!0;continue}if(a==='"'){R=!0;continue}if(a==="{"){D[D.length-1]++;continue}if(a==="}")if(D[D.length-1]>0)D[D.length-1]--;else D[D.length-1]=-1;continue}if(a==="'")N=!0;else if(a==='"')R=!0;else if(a==="`")D.push(-1);else if(a==="{")y++;else if(a==="}"){if(y--,y===0)return{from:j,to:x}}}}return null},B=(j,O)=>{let v={parenDepth:0,braceDepth:0,bracketDepth:0,inTemplate:!1},y=(f)=>{for(let S=0;S<f.length;S++){let N=f[S];if(N==="`")v.inTemplate=!v.inTemplate;else if(N==="(")v.parenDepth++;else if(N===")")v.parenDepth--;else if(N==="{")v.braceDepth++;else if(N==="}")v.braceDepth--;else if(N==="[")v.bracketDepth++;else if(N==="]")v.bracketDepth--}},C=()=>v.parenDepth>0||v.braceDepth>0||v.bracketDepth>0||v.inTemplate,k=(f)=>/(?:\?|:|\.|,|&&|\|\||\?\?|\+|-|\*|\/|%|\*\*)$/.test(f.trimEnd()),P=(f)=>/^(?:\?|:|\.|,|&&|\|\||\?\?|\+|-|\*|\/|%|\*\*)/.test(f.trimStart()),L=U[j].slice(O+2);y(L);let I=j+1;while(I<U.length){let f=I===j+1?L:U[I-1];if(!(!L.trim()||C()||k(f)||P(U[I])))break;L+=`
65
+ `&&o!=="\r"&&o!=="{"&&o!=="}"&&C===0)S=o;if(o==="'")L="single";else if(o==='"')L="double";else if(o==="`")L="template";else if(o==="<")P++;else if(o===">")P=Math.max(0,P-1);else if(o==="{"){if(C===0){if(k&&P===0&&!fZ.has(S)){d=l;break}}C++}else if(o==="}"){if(C>0){if(C--,C===0)k=!0,S="}"}}}else if(L==="single"&&o==="'"||L==="double"&&o==='"'||L==="template"&&o==="`")L=null}if(d===-1){if(P>0)continue;if(C>0&&fZ.has(S))continue;for(let l=a;l<b.length;l++)if(b[l]==="{"&&!L){d=l;break}}if(d===-1)continue;v=!0,y=1,V0=d+1,j=x}for(let d=V0;d<b.length;d++){let a=b[d];if(g){g=!1;continue}let l=D.length>0&&D[D.length-1]===-1,o=D.length>0&&D[D.length-1]>=0;if(a==="\\"&&(N||R||l)){g=!0;continue}if(N){if(a==="'")N=!1;continue}if(R){if(a==='"')R=!1;continue}if(l){if(a==="`")D.pop();else if(a==="$"&&d+1<b.length&&b[d+1]==="{")D[D.length-1]=0,d++;continue}if(o){if(a==="/"){if(O8(b,d)){d++;while(d<b.length){if(b[d]==="\\"){d+=2;continue}if(b[d]==="/"){while(d+1<b.length&&/[gimsuvy]/.test(b[d+1]))d++;break}d++}continue}}if(a==="`"){D.push(-1);continue}if(a==="'"){N=!0;continue}if(a==='"'){R=!0;continue}if(a==="{"){D[D.length-1]++;continue}if(a==="}")if(D[D.length-1]>0)D[D.length-1]--;else D[D.length-1]=-1;continue}if(a==="'")N=!0;else if(a==='"')R=!0;else if(a==="`")D.push(-1);else if(a==="{")y++;else if(a==="}"){if(y--,y===0)return{from:j,to:x}}}}return null},B=(j,O)=>{let v={parenDepth:0,braceDepth:0,bracketDepth:0,inTemplate:!1},y=(f)=>{for(let S=0;S<f.length;S++){let N=f[S];if(N==="`")v.inTemplate=!v.inTemplate;else if(N==="(")v.parenDepth++;else if(N===")")v.parenDepth--;else if(N==="{")v.braceDepth++;else if(N==="}")v.braceDepth--;else if(N==="[")v.bracketDepth++;else if(N==="]")v.bracketDepth--}},C=()=>v.parenDepth>0||v.braceDepth>0||v.bracketDepth>0||v.inTemplate,k=(f)=>/(?:\?|:|\.|,|&&|\|\||\?\?|\+|-|\*|\/|%|\*\*)$/.test(f.trimEnd()),P=(f)=>/^(?:\?|:|\.|,|&&|\|\||\?\?|\+|-|\*|\/|%|\*\*)/.test(f.trimStart()),L=U[j].slice(O+2);y(L);let I=j+1;while(I<U.length){let f=I===j+1?L:U[I-1];if(!(!L.trim()||C()||k(f)||P(U[I])))break;L+=`
66
66
  ${U[I]}`,y(U[I]),I++}return L},F=[],M=!1,T=!1,E=!1;for(let j=0;j<U.length;j++){let O=U[j];if(/^\s*\/\//.test(O))continue;if(K[j])continue;let v=O,y=null,C=!1,k=!1;for(let N=0;N<O.length-1;N++){let R=O[N],D=O[N+1];if(k){k=!1;continue}if(R==="\\"&&(y||C)){k=!0;continue}if(!y&&!C){if(R==="'")y="single";else if(R==='"')y="double";else if(R==="`")y="template";else if(R==="/"){if(O8(O,N))C=!0;else if(D==="/"){v=O.slice(0,N);break}}}else if(y){if(y==="single"&&R==="'"||y==="double"&&R==='"'||y==="template"&&R==="`")y=null}else if(C&&R==="/")C=!1}let I=((N)=>{let R="",D=0;while(D<N.length){if(N[D]==="/"){if(O8(N,D)){D++;while(D<N.length){if(N[D]==="\\"){D+=2;continue}if(N[D]==="/"){D++;while(D<N.length&&/[gimsuvy]/.test(N[D]))D++;break}D++}continue}}R+=N[D],D++}return R})(v).replace(/'(?:[^'\\]|\\.)*'/g,"''").replace(/"(?:[^"\\]|\\.)*"/g,'""');{let N="";for(let R=0;R<I.length;R++){let D=I[R];if(E){E=!1;let p=F.length>0&&F[F.length-1]===-1;N+=p?" ":D;continue}let g=F.length>0&&F[F.length-1]===-1,x=F.length>0&&F[F.length-1]>=0;if(D==="\\"&&(M||T||g)){E=!0,N+=g?" ":D;continue}if(M){if(D==="'")M=!1;N+=D;continue}if(T){if(D==='"')T=!1;N+=D;continue}if(g){if(D==="`")F.pop();else if(D==="$"&&R+1<I.length&&I[R+1]==="{")F[F.length-1]=0,N+=" ",R++;else N+=" ";continue}if(x){if(D==="`")F.push(-1),N+=" ";else if(D==="'")M=!0,N+=D;else if(D==='"')T=!0,N+=D;else if(D==="{")F[F.length-1]++,N+=D;else if(D==="}")if(F[F.length-1]>0)F[F.length-1]--,N+=D;else F[F.length-1]=-1,N+=" ";else N+=D;continue}if(D==="`")F.push(-1),N+=" ";else if(D==="'")M=!0,N+=D;else if(D==='"')T=!0,N+=D;else N+=D}I=N}let f=I.match(/\bfunction\b/);if(f){if(O.includes("function scanContent")||O.includes("function findMatching"))continue;if(I.slice(f.index+8).trimStart().startsWith(":"))continue;let R=I.slice(0,f.index).trimEnd();if(R.endsWith(".")||R.endsWith("?."))continue;let D=f.index,g=O.indexOf("(",D);if(g===-1)continue;let x=0,p=-1,b=j,m="";for(let $0=j;$0<U.length;$0++){let V0=$0===j?U[$0]:U[$0],d=$0===j?g:0;for(let a=d;a<V0.length;a++)if(V0[a]==="(")x++;else if(V0[a]===")"){if(x--,x===0){if(p=a,b=$0,j===$0)m=O.slice(g+1,p);else{m=O.slice(g+1);for(let l=j+1;l<$0;l++)m+=` ${U[l]}`;m+=` ${V0.slice(0,p)}`}break}}if(p!==-1)break}if(p===-1)continue;let u=A(m),n=_(b,p),c="";if(n)if(n.from===b){let $0=U[n.from],V0=$0.lastIndexOf("{"),d=V0>=0?$0.slice(V0+1):"";if(n.to>n.from)c=`${d}
67
67
  ${U.slice(n.from+1,n.to+1).join(`
68
68
  `)}`;else c=d}else c=U.slice(n.from,n.to+1).join(`
69
69
  `);for(let $0 of u){if(!$0||G.test($0)||$0==="undefined")continue;if(!new RegExp(`\\b${$0}\\b`,"g").test(c))Z.push({filePath:J.filePath,line:j+1,column:Math.max(1,O.indexOf($0)+1),ruleId:"pickier/no-unused-vars",message:`'${$0}' is defined but never used (function parameter). Allowed unused args must match pattern: ${z}`,severity:"error"})}continue}let S=O.indexOf("=>");if(S!==-1&&I.includes("=>")){let N=-1;for(let R=S-1;R>=0;R--){let D=O[R];if(D===")"){N=R;break}if(D!==" "&&D!=="\t"&&D!==`
70
- `&&D!==":"&&D!==">"&&!/\w/.test(D))break}if(N!==-1){let R=-1,D=1;for(let g=N-1;g>=0;g--){let x=O[g];if(x===")")D++;else if(x==="("){if(D--,D===0){R=g;break}}}if(R!==-1){let g=!1,x=0,p=0;for(let m=R-1;m>=0;m--){let u=O[m];if(u===">"){x++;continue}if(u==="<"){if(x>0){x--;continue}if(p===0){g=!0;break}continue}if(u===":"&&x===0&&p===0){g=!0;break}if(x>0)continue;if(u===",")continue;if(u===")"){p++;continue}if(u==="("){p--;continue}if(u==="|"||u==="&"){g=!0;break}if(u==="="||u==="{"||u==="["){if(p>=0)break;continue}if(u!==" "&&u!=="\t"&&!/[\w.]/.test(u)){if(p>=0)break}}if(!g){let m=O.slice(0,R);if(/^\s*(?:export\s+)?(?:declare\s+)?type\s+\w[\w$]*\s*(?:<[^>]*>)?\s*=\s*$/.test(m))g=!0;else if(/\bas\s+$/.test(m))g=!0}if(g)continue;let b=O.slice(R+1,N);if(!(b.trim()===""&&O.slice(Math.max(0,R-10),R).includes("async"))){let m=A(b);if(m.length>0){let u="";if(O.slice(S+2).trimStart().startsWith("{")){let c=_(j,S);if(c)if(c.from===j){let $0=U[c.from],V0=$0.indexOf("{",S),d=V0>=0?$0.slice(V0+1):"";if(c.to>c.from)u=`${d}
70
+ `&&D!==":"&&D!==">"&&!/\w/.test(D))break}if(N!==-1){let R=-1,D=1;for(let g=N-1;g>=0;g--){let x=O[g];if(x===")")D++;else if(x==="("){if(D--,D===0){R=g;break}}}if(R!==-1){let g=!1,x=0,p=0;for(let m=R-1;m>=0;m--){let u=O[m];if(u===">"){x++;continue}if(u==="<"){if(x>0){x--;continue}if(p<=0){g=!0;break}continue}if(u===":"&&x===0&&p<=0){g=!0;break}if(x>0)continue;if(u===",")continue;if(u===")"){p++;continue}if(u==="("){p--;continue}if(u==="|"||u==="&"){g=!0;break}if(u==="="||u==="{"||u==="["){if(p>=0)break;continue}if(u!==" "&&u!=="\t"&&!/[\w.]/.test(u)){if(p>=0)break}}if(!g){let m=O.slice(0,R);if(/^\s*(?:export\s+)?(?:declare\s+)?type\s+\w[\w$]*\s*(?:<[^>]*>)?\s*=\s*$/.test(m))g=!0;else if(/\bas\s+$/.test(m))g=!0}if(g)continue;let b=O.slice(R+1,N);if(!(b.trim()===""&&O.slice(Math.max(0,R-10),R).includes("async"))){let m=A(b);if(m.length>0){let u="";if(O.slice(S+2).trimStart().startsWith("{")){let c=_(j,S);if(c)if(c.from===j){let $0=U[c.from],V0=$0.indexOf("{",S),d=V0>=0?$0.slice(V0+1):"";if(c.to>c.from)u=`${d}
71
71
  ${U.slice(c.from+1,c.to+1).join(`
72
72
  `)}`;else u=d}else u=U.slice(c.from,c.to+1).join(`
73
73
  `)}else u=B(j,S);for(let c of m){if(!c||G.test(c)||c==="undefined")continue;if(!new RegExp(`\\b${c}\\b`,"g").test(u))Z.push({filePath:J.filePath,line:j+1,column:Math.max(1,O.indexOf(c)+1),ruleId:"pickier/no-unused-vars",message:`'${c}' is defined but never used (function parameter). Allowed unused args must match pattern: ${z}`,severity:"error"})}continue}}}}}{let N=/(?:^|[=,:({\s])\s*([$A-Z_][\w$]*)\s*=>/gi,R;while((R=N.exec(I))!==null){let D=R[1];if(!D||G.test(D)||D==="undefined")continue;let g=I.slice(0,R.index+R[0].indexOf(D)).trimEnd();if(/\)\s*:$/.test(g)||/\)\s*:\s*$/.test(g))continue;if(/\)\s*:\s*[$A-Z_][\w$]*\s+is$/i.test(g))continue;if(/^(?:string|number|boolean|void|never|any|unknown|object|bigint|symbol|undefined|null)$/.test(D))continue;let x=new RegExp(`\\b${D}\\s*=>`),p=O.match(x);if(!p)continue;let b=O.indexOf(p[0])+p[0].lastIndexOf("=>"),m="";if(O.slice(b+2).trimStart().startsWith("{")){let c=_(j,b);if(c)if(c.from===j){let $0=U[c.from],V0=$0.indexOf("{",b),d=V0>=0?$0.slice(V0+1):"";if(c.to>c.from)m=`${d}
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{E as H,k as G}from"./chunk-er69kh4d.js";import{N as K}from"./chunk-43fsk0jg.js";import{readFileSync as M,statSync as N,writeFileSync as Q}from"fs";import{isAbsolute as R,resolve as T}from"path";async function _(k,j){let B=j.mode||"auto";if(B==="format"&&k.length===1&&!/[*?[\]{}()!]/.test(k[0]))try{let q=k[0],z=R(q)?q:T(process.cwd(),q);if(N(z).isFile()){let J=await H(j.config),D=M(z,"utf8"),E=G(D,J,z);if(j.check&&E!==D)return 1;if(j.write&&E!==D)Q(z,E,"utf8");return 0}}catch{}let{runLint:x}=await import("./chunk-z8e7mefx.js");if(B==="lint")return x(k,j);if(B==="format"){let q={...j,fix:!0,dryRun:!!j.check,ext:j.ext,_formatOnly:!0};return x(k,q)}if(!(j.fix===!0||j.write===!0||j.check===!0))return x(k,j);let I={...j,fix:!0,dryRun:!!j.check,ext:j.ext};return x(k,I)}
2
+ import{E as H,k as G}from"./chunk-er69kh4d.js";import{N as K}from"./chunk-43fsk0jg.js";import{readFileSync as M,statSync as N,writeFileSync as Q}from"fs";import{isAbsolute as R,resolve as T}from"path";async function _(k,j){let B=j.mode||"auto";if(B==="format"&&k.length===1&&!/[*?[\]{}()!]/.test(k[0]))try{let q=k[0],z=R(q)?q:T(process.cwd(),q);if(N(z).isFile()){let J=await H(j.config),D=M(z,"utf8"),E=G(D,J,z);if(j.check&&E!==D)return 1;if(j.write&&E!==D)Q(z,E,"utf8");return 0}}catch{}let{runLint:x}=await import("./chunk-720xck77.js");if(B==="lint")return x(k,j);if(B==="format"){let q={...j,fix:!0,dryRun:!!j.check,ext:j.ext,_formatOnly:!0};return x(k,q)}if(!(j.fix===!0||j.write===!0||j.check===!0))return x(k,j);let I={...j,fix:!0,dryRun:!!j.check,ext:j.ext};return x(k,I)}
3
3
  export{_ as h};
package/dist/src/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{a as t,b as f,c as m,g as e}from"../chunk-5z3jqx5z.js";import{h as x}from"../chunk-pbmfwrm8.js";import{A as F,B as G,C as H,D as I,E as J,F as K,G as M,H as N,I as Q,J as S,k as O,l as P,m as R,n as T,o as U,p as a,q as b,r as j,s as q,t as v,u as w,v as z,w as A,x as B,y as D,z as E}from"../chunk-er69kh4d.js";import{K as r,M as o}from"../chunk-ah6h41gy.js";import"../chunk-43fsk0jg.js";export{D as yellow,N as withAlwaysIgnores,S as shouldIgnorePath,m as runLintProgrammatic,e as runLint,t as runFormat,x as run,B as red,I as mergeConfig,J as loadConfigFromPath,f as lintText,M as isCodeFile,R as hasIndentIssue,A as green,F as gray,a as glob,w as getRuleSetting,T as formatImports,O as formatCode,K as expandPatterns,P as detectQuoteIssues,r as defaultConfig,b as createLimiter,Q as createIgnoreMatcher,o as config,H as colors,z as colorize,G as bold,E as blue,v as UNIVERSAL_IGNORES,U as MAX_FIXER_PASSES,j as ENV,q as ALWAYS_IGNORES};
2
+ import{a as t,b as f,c as m,g as e}from"../chunk-fy0z5sp8.js";import{h as x}from"../chunk-q19vbsae.js";import{A as F,B as G,C as H,D as I,E as J,F as K,G as M,H as N,I as Q,J as S,k as O,l as P,m as R,n as T,o as U,p as a,q as b,r as j,s as q,t as v,u as w,v as z,w as A,x as B,y as D,z as E}from"../chunk-er69kh4d.js";import{K as r,M as o}from"../chunk-ah6h41gy.js";import"../chunk-43fsk0jg.js";export{D as yellow,N as withAlwaysIgnores,S as shouldIgnorePath,m as runLintProgrammatic,e as runLint,t as runFormat,x as run,B as red,I as mergeConfig,J as loadConfigFromPath,f as lintText,M as isCodeFile,R as hasIndentIssue,A as green,F as gray,a as glob,w as getRuleSetting,T as formatImports,O as formatCode,K as expandPatterns,P as detectQuoteIssues,r as defaultConfig,b as createLimiter,Q as createIgnoreMatcher,o as config,H as colors,z as colorize,G as bold,E as blue,v as UNIVERSAL_IGNORES,U as MAX_FIXER_PASSES,j as ENV,q as ALWAYS_IGNORES};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pickier",
3
3
  "type": "module",
4
- "version": "0.1.56",
4
+ "version": "0.1.58",
5
5
  "description": "Format, lint and more in a fraction of seconds.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",