@hyoretsu/configs 1.2.10 → 1.2.12

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.
@@ -1,2 +1,2 @@
1
- "use strict";var y=Object.create;var i=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty;var b=(t,e)=>{for(var s in e)i(t,s,{get:e[s],enumerable:!0})},r=(t,e,s,p)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!j.call(t,n)&&n!==s&&i(t,n,{get:()=>e[n],enumerable:!(p=u(e,n))||p.enumerable});return t};var f=(t,e,s)=>(s=t!=null?y(x(t)):{},r(e||!t||!t.__esModule?i(s,"default",{value:t,enumerable:!0}):s,t)),h=t=>r(i({},"__esModule",{value:!0}),t);var w={};b(w,{default:()=>k,generateIgnores:()=>v});module.exports=h(w);var l=require("node:fs"),c=f(require("node:path"),1),a=f(require("@eslint/js"),1),d=require("eslint/config"),m=f(require("eslint-config-biome"),1),o=f(require("typescript-eslint"),1);const v=(t=".gitignore")=>({ignores:(0,l.readFileSync)(c.default.resolve(t),"utf-8").split(`
2
- `).filter(e=>e!==""&&e[0]!=="#"&&e[0]!=="!").map(e=>`**/${e}`)});var k=(0,d.defineConfig)([{ignores:["**/.next/**","**/build/**","**/dist/**","**/node_modules/**"]},a.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","@typescript-eslint/no-namespace":"off"}},{extends:[o.default.configs.disableTypeChecked],files:["**/*.js","**/*.jsx"],rules:{"no-undef":"off"}},{extends:[m.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"}}]);0&&(module.exports={generateIgnores});
1
+ "use strict";var j=Object.create;var c=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,F=Object.prototype.hasOwnProperty;var $=(e,t)=>{for(var s in t)c(e,s,{get:t[s],enumerable:!0})},u=(e,t,s,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of h(t))!F.call(e,r)&&r!==s&&c(e,r,{get:()=>t[r],enumerable:!(l=b(t,r))||l.enumerable});return e};var d=(e,t,s)=>(s=e!=null?j(v(e)):{},u(t||!e||!e.__esModule?c(s,"default",{value:e,enumerable:!0}):s,e)),k=e=>u(c({},"__esModule",{value:!0}),e);var P={};$(P,{default:()=>D,generateIgnores:()=>w});module.exports=k(P);var p=require("node:fs"),o=d(require("node:path"),1),y=d(require("@eslint/js"),1),g=require("eslint/config"),x=d(require("eslint-config-biome"),1),f=d(require("typescript-eslint"),1);const w=(e=".gitignore")=>{const t=o.default.resolve(e),s=o.default.dirname(t),l=o.default.basename(t);return(0,p.existsSync)(t)?{ignores:(0,p.readdirSync)(s,{withFileTypes:!0}).flatMap(i=>{const a=o.default.join(s,i.name);return i.isDirectory()?i.name===".git"||i.name==="node_modules"?[]:readGitignoreFiles(a):i.isFile()&&i.name===l?[a]:[]}).flatMap(i=>{const a=o.default.relative(s,o.default.dirname(i)).split(o.default.sep).join("/");return(0,p.readFileSync)(i,"utf-8").split(`
2
+ `).map(n=>n.replace(/\r$/,"")).filter(n=>n!==""&&n[0]!=="#"&&n[0]!=="!").map(n=>{const m=n[0]==="/"?n.slice(1):n;return a===""?`**/${m}`:`**/${a}/${m}`})})}:{ignores:[]}};var D=(0,g.defineConfig)([{ignores:["**/.next/**","**/build/**","**/dist/**","**/node_modules/**"]},y.default.configs.recommended,{extends:[f.default.configs.strict,f.default.configs.stylistic],files:["**/*.ts","**/*.tsx"],languageOptions:{parser:f.default.parser},plugins:{"@typescript-eslint":f.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","@typescript-eslint/no-namespace":"off"}},{extends:[f.default.configs.disableTypeChecked],files:["**/*.js","**/*.jsx"],rules:{"no-undef":"off"}},{extends:[x.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"}}]);0&&(module.exports={generateIgnores});
@@ -1,2 +1,2 @@
1
- import{readFileSync as o}from"node:fs";import n from"node:path";import i from"@eslint/js";import{defineConfig as f}from"eslint/config";import p from"eslint-config-biome";import t from"typescript-eslint";const y=(s=".gitignore")=>({ignores:o(n.resolve(s),"utf-8").split(`
2
- `).filter(e=>e!==""&&e[0]!=="#"&&e[0]!=="!").map(e=>`**/${e}`)});var u=f([{ignores:["**/.next/**","**/build/**","**/dist/**","**/node_modules/**"]},i.configs.recommended,{extends:[t.configs.strict,t.configs.stylistic],files:["**/*.ts","**/*.tsx"],languageOptions:{parser:t.parser},plugins:{"@typescript-eslint":t.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","@typescript-eslint/no-namespace":"off"}},{extends:[t.configs.disableTypeChecked],files:["**/*.js","**/*.jsx"],rules:{"no-undef":"off"}},{extends:[p],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{u as default,y as generateIgnores};
1
+ import{existsSync as l,readdirSync as c,readFileSync as d}from"node:fs";import s from"node:path";import m from"@eslint/js";import{defineConfig as u}from"eslint/config";import y from"eslint-config-biome";import n from"typescript-eslint";const $=(p=".gitignore")=>{const o=s.resolve(p),r=s.dirname(o),a=s.basename(o);return l(o)?{ignores:c(r,{withFileTypes:!0}).flatMap(e=>{const i=s.join(r,e.name);return e.isDirectory()?e.name===".git"||e.name==="node_modules"?[]:readGitignoreFiles(i):e.isFile()&&e.name===a?[i]:[]}).flatMap(e=>{const i=s.relative(r,s.dirname(e)).split(s.sep).join("/");return d(e,"utf-8").split(`
2
+ `).map(t=>t.replace(/\r$/,"")).filter(t=>t!==""&&t[0]!=="#"&&t[0]!=="!").map(t=>{const f=t[0]==="/"?t.slice(1):t;return i===""?`**/${f}`:`**/${i}/${f}`})})}:{ignores:[]}};var k=u([{ignores:["**/.next/**","**/build/**","**/dist/**","**/node_modules/**"]},m.configs.recommended,{extends:[n.configs.strict,n.configs.stylistic],files:["**/*.ts","**/*.tsx"],languageOptions:{parser:n.parser},plugins:{"@typescript-eslint":n.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","@typescript-eslint/no-namespace":"off"}},{extends:[n.configs.disableTypeChecked],files:["**/*.js","**/*.jsx"],rules:{"no-undef":"off"}},{extends:[y],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{k as default,$ as generateIgnores};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyoretsu/configs",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [