@hyoretsu/configs 1.2.12 → 1.2.14

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 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
+ "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 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};
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};
@@ -0,0 +1,35 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowImportingTsExtensions": true,
4
+ "allowJs": true,
5
+ "checkJs": true,
6
+ "downlevelIteration": true,
7
+ "emitDecoratorMetadata": true,
8
+ "esModuleInterop": true,
9
+ "exactOptionalPropertyTypes": true,
10
+ "experimentalDecorators": true,
11
+ "jsx": "react-jsx",
12
+ "lib": [
13
+ "ESNext"
14
+ ],
15
+ "module": "Preserve",
16
+ "moduleResolution": "bundler",
17
+ "noEmit": true,
18
+ "noFallthroughCasesInSwitch": true,
19
+ "noImplicitOverride": true,
20
+ "noPropertyAccessFromIndexSignature": false,
21
+ "noUncheckedIndexedAccess": true,
22
+ "removeComments": true,
23
+ "resolveJsonModule": true,
24
+ "rewriteRelativeImportExtensions": true,
25
+ "skipLibCheck": true,
26
+ "sourceMap": true,
27
+ "strict": true,
28
+ "target": "ESNext",
29
+ "typeRoots": [
30
+ "./node_modules/@types",
31
+ "src/@types"
32
+ ],
33
+ "verbatimModuleSyntax": true
34
+ }
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyoretsu/configs",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -26,6 +26,7 @@
26
26
  "require": "./dist/lint-staged/index.cjs"
27
27
  },
28
28
  "./ts": "./dist/ts/base.json",
29
+ "./ts-backend": "./dist/ts/backend.json",
29
30
  "./ts-frontend": "./dist/ts/frontend.json",
30
31
  "./ts-nest": "./dist/ts/nest.json",
31
32
  "./ts-lib": "./dist/ts/lib.json"