@hyoretsu/configs 1.2.11 → 1.2.13

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