@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.
@@ -115,6 +115,7 @@
115
115
  "level": "warn"
116
116
  },
117
117
  "useConst": "warn",
118
+ "useForOf": "error",
118
119
  "useNodejsImportProtocol": {
119
120
  "fix": "safe",
120
121
  "level": "warn"
@@ -115,6 +115,7 @@
115
115
  "level": "warn"
116
116
  },
117
117
  "useConst": "warn",
118
+ "useForOf": "error",
118
119
  "useImportType": "off",
119
120
  "useNodejsImportProtocol": {
120
121
  "fix": "safe",
@@ -125,6 +125,7 @@
125
125
  "level": "warn"
126
126
  },
127
127
  "useConst": "warn",
128
+ "useForOf": "error",
128
129
  "useNodejsImportProtocol": {
129
130
  "fix": "safe",
130
131
  "level": "warn"
@@ -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 h={};x(h,{default:()=>k});module.exports=b(h);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),k=(0,a.defineConfig)([{ignores:["**/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"]},{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-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"}}]);
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"}}]);
@@ -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 o=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var j=(e,s)=>{for(var n in s)o(e,n,{get:s[n],enumerable:!0})},a=(e,s,n,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let t of i(s))!c.call(e,t)&&t!==n&&o(e,t,{get:()=>s[t],enumerable:!(r=x(s,t))||r.enumerable});return e};var l=e=>a(o({},"__esModule",{value:!0}),e);var u={};j(u,{default:()=>p});module.exports=l(u);var p={"*.(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"]};
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
- declare const _default: {
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 default _default;
7
+ export {};
@@ -1 +1 @@
1
- var s={"*.(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 default};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyoretsu/configs",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [