@hyoretsu/configs 1.2.29 → 1.2.31
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/biome/react.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var i=(a,n)=>{for(var r in n)t(a,r,{get:n[r],enumerable:!0})},l=(a,n,r,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of c(n))!g.call(a,e)&&e!==r&&t(a,e,{get:()=>n[e],enumerable:!(o=s(n,e))||o.enumerable});return a};var p=a=>l(t({},"__esModule",{value:!0}),a);var u={};i(u,{lintStagedConfig:()=>k});module.exports=p(u);const m={bun:[()=>"bun i --lockfile-only",()=>"git add bun.lock"],npm:[()=>"npm i --package-lock-only",()=>"git add package-lock.json"],pnpm:[()=>"pnpm i --lockfile-only",()=>"git add pnpm-lock.yaml"],yarn:[()=>"yarn install",()=>"git add yarn.lock"]},k=({packageManager:a,prismaPackageName:n}={})=>({...a&&{"(bun.|package-|pnpm-|yarn.)lock*":m[a]},"*.(cjs|js|jsx|mjs|ts|tsx)":["bun run format:eslint"],"*.(css|graphql|cjs|js|jsx|mjs|json|jsonc|ts|tsx)":["bun run format:biome"],"**/*.prisma":[()=>{let r="bun run generate";return n&&(r=r.replace("bun run",`bun -F ${n}`)),r}]});0&&(module.exports={lintStagedConfig});
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
type PackageManager = "bun" | "npm" | "pnpm" | "yarn";
|
|
2
|
-
export
|
|
2
|
+
export interface LintStagedConfigParams {
|
|
3
|
+
packageManager?: PackageManager;
|
|
4
|
+
prismaPackageName?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const lintStagedConfig: ({ packageManager, prismaPackageName }?: LintStagedConfigParams) => {
|
|
3
7
|
"*.(cjs|js|jsx|mjs|ts|tsx)": string[];
|
|
4
8
|
"*.(css|graphql|cjs|js|jsx|mjs|json|jsonc|ts|tsx)": string[];
|
|
5
9
|
"**/*.prisma": (() => string)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e={bun:[()=>"bun i --lockfile-only",()=>"git add bun.lock"],npm:[()=>"npm i --package-lock-only",()=>"git add package-lock.json"],pnpm:[()=>"pnpm i --lockfile-only",()=>"git add pnpm-lock.yaml"],yarn:[()=>"yarn install",()=>"git add yarn.lock"]},t=({packageManager:a,prismaPackageName:r}={})=>({...a&&{"(bun.|package-|pnpm-|yarn.)lock*":e[a]},"*.(cjs|js|jsx|mjs|ts|tsx)":["bun run format:eslint"],"*.(css|graphql|cjs|js|jsx|mjs|json|jsonc|ts|tsx)":["bun run format:biome"],"**/*.prisma":[()=>{let n="bun run generate";return r&&(n=n.replace("bun run",`bun -F ${r}`)),n}]});export{t as lintStagedConfig};
|