pickier 0.1.47 → 0.1.49
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 +1 -1
- package/dist/{chunk-01k0pc58.js → chunk-0he89k92.js} +1 -1
- package/dist/{chunk-6g75fbqa.js → chunk-2ab6x11v.js} +1 -1
- package/dist/{chunk-cynz1zp8.js → chunk-a272bth8.js} +1 -1
- package/dist/{chunk-4emmmy24.js → chunk-f9brv44n.js} +87 -86
- package/dist/{chunk-tz5268rh.js → chunk-wa9kx736.js} +1 -1
- package/dist/rules/general/no-unused-vars.d.ts +0 -6
- package/dist/rules/markdown/strong-style.d.ts +11 -0
- package/dist/src/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{D as H,k as G}from"./chunk-1r3qehn7.js";import{L as K}from"./chunk-h6ac3d60.js";import{readFileSync as M,statSync as N,writeFileSync as Q}from"fs";import{isAbsolute as R,resolve as T}from"path";import U from"process";async function w(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(U.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-
|
|
2
|
+
import{D as H,k as G}from"./chunk-1r3qehn7.js";import{L as K}from"./chunk-h6ac3d60.js";import{readFileSync as M,statSync as N,writeFileSync as Q}from"fs";import{isAbsolute as R,resolve as T}from"path";import U from"process";async function w(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(U.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-a272bth8.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{w as h};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
|
-
/*`, `*\/` and
|
|
3
|
-
* `//` delimiters stay, so the scanners that look for them still work; the
|
|
4
|
-
* length and the line breaks are unchanged, so every reported column still
|
|
5
|
-
* points where it did; and a name that appears only in a comment is now
|
|
6
|
-
* correctly not a use, which is what the rule meant all along.
|
|
7
|
-
*/
|
|
8
2
|
export declare function maskCommentText(text: string): string;
|
|
9
3
|
export declare const noUnusedVarsRule: RuleModule;
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { RuleModule } from '../../types';
|
|
2
2
|
/**
|
|
3
3
|
* MD050 - Strong style
|
|
4
|
+
*
|
|
5
|
+
* Inline code spans are masked before anything is matched, the way its twin
|
|
6
|
+
* `emphasis-style` already did. Without it a code span holding two double
|
|
7
|
+
* underscores - `typeof __ctx === 'undefined' ? undefined : __ctx` is the real
|
|
8
|
+
* case - reads as underscore-strong, so a document written entirely in
|
|
9
|
+
* asterisks is reported as inconsistent on every `**bold**` after it.
|
|
10
|
+
*
|
|
11
|
+
* The warning was the harmless half. The fixer rewrote the same span into
|
|
12
|
+
* `**ctx === 'undefined' ? undefined : **ctx`, which changes what the code
|
|
13
|
+
* says - a formatter corrupting code it was asked to leave alone is a much
|
|
14
|
+
* worse failure than a false positive.
|
|
4
15
|
*/
|
|
5
16
|
export declare const strongStyleRule: RuleModule;
|
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-
|
|
2
|
+
import{a as t,b as f,c as m,g as e}from"../chunk-f9brv44n.js";import{h as x}from"../chunk-wa9kx736.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,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-1r3qehn7.js";import{I as r,K as o}from"../chunk-bf2bz66g.js";import"../chunk-h6ac3d60.js";export{B as yellow,N as shouldIgnorePath,m as runLintProgrammatic,e as runLint,t as runFormat,x as run,A as red,H as mergeConfig,I as loadConfigFromPath,f as lintText,K as isCodeFile,R as hasIndentIssue,z as green,E as gray,a as glob,v as getRuleSetting,T as formatImports,O as formatCode,J as expandPatterns,P as detectQuoteIssues,r as defaultConfig,b as createLimiter,M as createIgnoreMatcher,o as config,G as colors,w as colorize,F as bold,D as blue,q as UNIVERSAL_IGNORES,U as MAX_FIXER_PASSES,j as ENV};
|