@hyoretsu/configs 1.1.14 → 1.1.16
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/base.json +1 -0
- package/dist/biome/nest.json +1 -0
- package/dist/biome/react.json +1 -0
- package/dist/eslint/index.cjs +1 -1
- package/dist/eslint/index.js +1 -1
- package/dist/lint-staged/index.cjs +1 -1
- package/dist/lint-staged/index.d.ts +4 -2
- package/dist/lint-staged/index.js +1 -1
- package/package.json +1 -1
package/dist/biome/base.json
CHANGED
package/dist/biome/nest.json
CHANGED
package/dist/biome/react.json
CHANGED
package/dist/eslint/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=Object.create;var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var s in t)i(e,s,{get:t[s],enumerable:!0})},r=(e,t,s,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of y(t))!j.call(e,n)&&n!==s&&i(e,n,{get:()=>t[n],enumerable:!(l=m(t,n))||l.enumerable});return e};var f=(e,t,s)=>(s=e!=null?u(g(e)):{},r(t||!e||!e.__esModule?i(s,"default",{value:e,enumerable:!0}):s,e)),b=e=>r(i({},"__esModule",{value:!0}),e);var
|
|
1
|
+
"use strict";var u=Object.create;var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var s in t)i(e,s,{get:t[s],enumerable:!0})},r=(e,t,s,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of y(t))!j.call(e,n)&&n!==s&&i(e,n,{get:()=>t[n],enumerable:!(l=m(t,n))||l.enumerable});return e};var f=(e,t,s)=>(s=e!=null?u(g(e)):{},r(t||!e||!e.__esModule?i(s,"default",{value:e,enumerable:!0}):s,e)),b=e=>r(i({},"__esModule",{value:!0}),e);var k={};x(k,{default:()=>h});module.exports=b(k);var c=f(require("@eslint/js"),1),a=require("eslint/config"),d=f(require("eslint-config-biome"),1),p=f(require("eslint-plugin-jest"),1),o=f(require("typescript-eslint"),1),h=(0,a.defineConfig)([{ignores:["**/.next/**","**/build/**","**/dist/**","**/node_modules/**"]},c.default.configs.recommended,{extends:[o.default.configs.strict,o.default.configs.stylistic],files:["**/*.ts","**/*.tsx"],languageOptions:{parser:o.default.parser},plugins:{"@typescript-eslint":o.default.plugin},rules:{"@typescript-eslint/ban-ts-comment":"off","@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-duplicate-enum-values":"off","@typescript-eslint/no-empty-function":"warn"}},{extends:[o.default.configs.disableTypeChecked],files:["**/*.js","**/*.jsx"],rules:{"no-undef":"off"}},{extends:[p.default.configs["flat/all"]],files:["**/*.spec.js","**/*.spec.ts","**/*.test.js","**/*.test.ts","**/*.spec.jsx","**/*.spec.tsx","**/*.test.jsx","**/*.test.tsx"],languageOptions:{globals:p.default.environments.globals.globals},plugins:{jest:p.default},rules:{"jest/no-commented-out-tests":"off","jest/no-deprecated-functions":"off","jest/require-hook":"off","jest/unbound-method":"off"},settings:{jest:{globalPackage:"bun:test"}}},{extends:[d.default],rules:{"@typescript-eslint/array-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-empty-object-type":"off","@typescript-eslint/no-namespace":"off","@typescript-eslint/no-non-null-asserted-optional-chain":"off","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/prefer-for-of":"off","@typescript-eslint/require-await":"off","jest/max-nested-describe":"off","jest/no-disabled-tests":"off","jest/no-done-callback":"off","jest/no-duplicate-hooks":"off","jest/no-export":"off","jest/no-focused-tests":"off","jest/no-standalone-expect":"off","sort-imports":"off"}}]);
|
package/dist/eslint/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import s from"@eslint/js";import{defineConfig as o}from"eslint/config";import n from"eslint-config-biome";import t from"eslint-plugin-jest";import e from"typescript-eslint";var c=o([{ignores:["**/build/**","**/dist/**","**/node_modules/**"]},s.configs.recommended,{extends:[e.configs.strict,e.configs.stylistic],files:["**/*.ts","**/*.tsx"],languageOptions:{parser:e.parser},plugins:{"@typescript-eslint":e.plugin},rules:{"@typescript-eslint/ban-ts-comment":"off","@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-duplicate-enum-values":"off","@typescript-eslint/no-empty-function":"warn"}},{extends:[e.configs.disableTypeChecked],files:["**/*.js","**/*.jsx"]},{extends:[t.configs["flat/all"]],files:["**/*.spec.js","**/*.spec.ts","**/*.test.js","**/*.test.ts","**/*.spec.jsx","**/*.spec.tsx","**/*.test.jsx","**/*.test.tsx"],languageOptions:{globals:t.environments.globals.globals},plugins:{jest:t},rules:{"jest/no-commented-out-tests":"off","jest/no-deprecated-functions":"off","jest/require-hook":"off","jest/unbound-method":"off"},settings:{jest:{globalPackage:"bun:test"}}},{extends:[n],rules:{"@typescript-eslint/array-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-empty-object-type":"off","@typescript-eslint/no-namespace":"off","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/require-await":"off","jest/max-nested-describe":"off","jest/no-disabled-tests":"off","jest/no-done-callback":"off","jest/no-duplicate-hooks":"off","jest/no-export":"off","jest/no-focused-tests":"off","jest/no-standalone-expect":"off","sort-imports":"off"}}]);export{c as default};
|
|
1
|
+
import s from"@eslint/js";import{defineConfig as o}from"eslint/config";import n from"eslint-config-biome";import t from"eslint-plugin-jest";import e from"typescript-eslint";var c=o([{ignores:["**/.next/**","**/build/**","**/dist/**","**/node_modules/**"]},s.configs.recommended,{extends:[e.configs.strict,e.configs.stylistic],files:["**/*.ts","**/*.tsx"],languageOptions:{parser:e.parser},plugins:{"@typescript-eslint":e.plugin},rules:{"@typescript-eslint/ban-ts-comment":"off","@typescript-eslint/no-confusing-void-expression":"off","@typescript-eslint/no-duplicate-enum-values":"off","@typescript-eslint/no-empty-function":"warn"}},{extends:[e.configs.disableTypeChecked],files:["**/*.js","**/*.jsx"],rules:{"no-undef":"off"}},{extends:[t.configs["flat/all"]],files:["**/*.spec.js","**/*.spec.ts","**/*.test.js","**/*.test.ts","**/*.spec.jsx","**/*.spec.tsx","**/*.test.jsx","**/*.test.tsx"],languageOptions:{globals:t.environments.globals.globals},plugins:{jest:t},rules:{"jest/no-commented-out-tests":"off","jest/no-deprecated-functions":"off","jest/require-hook":"off","jest/unbound-method":"off"},settings:{jest:{globalPackage:"bun:test"}}},{extends:[n],rules:{"@typescript-eslint/array-type":"off","@typescript-eslint/consistent-indexed-object-style":"off","@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/no-dynamic-delete":"off","@typescript-eslint/no-empty-object-type":"off","@typescript-eslint/no-namespace":"off","@typescript-eslint/no-non-null-asserted-optional-chain":"off","@typescript-eslint/no-unused-vars":"off","@typescript-eslint/prefer-for-of":"off","@typescript-eslint/require-await":"off","jest/max-nested-describe":"off","jest/no-disabled-tests":"off","jest/no-done-callback":"off","jest/no-duplicate-hooks":"off","jest/no-export":"off","jest/no-focused-tests":"off","jest/no-standalone-expect":"off","sort-imports":"off"}}]);export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var l=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var r=(n,a)=>{for(var e in a)l(n,e,{get:a[e],enumerable:!0})},i=(n,a,e,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let s of c(a))!p.call(n,s)&&s!==e&&l(n,s,{get:()=>a[s],enumerable:!(o=t(a,s))||o.enumerable});return n};var g=n=>i(l({},"__esModule",{value:!0}),n);var x={};r(x,{lintStagedConfig:()=>k});module.exports=g(x);const m={bun:"bun install --lockfile-only",npm:"npm install --package-lock-only",pnpm:"pnpm install --lockfile-only",yarn:"yarn install"},k=n=>({...n&&{"(bun.|package-|pnpm-|yarn.)lock*":[()=>m[n]]},"*.(css|graphql|js|jsx|json|jsonc|ts|tsx)":["npx biome check --diagnostic-level=error --write --unsafe --no-errors-on-unmatched"],"*.(js|jsx|ts|tsx)":["npx eslint --quiet --fix"]});0&&(module.exports={lintStagedConfig});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
type PackageManager = "bun" | "npm" | "pnpm" | "yarn";
|
|
2
|
+
export declare const lintStagedConfig: (packageManager?: PackageManager) => {
|
|
2
3
|
"*.(css|graphql|js|jsx|json|jsonc|ts|tsx)": string[];
|
|
3
4
|
"*.(js|jsx|ts|tsx)": string[];
|
|
5
|
+
"(bun.|package-|pnpm-|yarn.)lock*"?: (() => string)[];
|
|
4
6
|
};
|
|
5
|
-
export
|
|
7
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a={bun:"bun install --lockfile-only",npm:"npm install --package-lock-only",pnpm:"pnpm install --lockfile-only",yarn:"yarn install"},s=n=>({...n&&{"(bun.|package-|pnpm-|yarn.)lock*":[()=>a[n]]},"*.(css|graphql|js|jsx|json|jsonc|ts|tsx)":["npx biome check --diagnostic-level=error --write --unsafe --no-errors-on-unmatched"],"*.(js|jsx|ts|tsx)":["npx eslint --quiet --fix"]});export{s as lintStagedConfig};
|