@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.
- package/dist/eslint/index.cjs +2 -2
- package/dist/eslint/index.d.ts +1 -1
- package/dist/eslint/index.js +2 -2
- package/dist/ts/backend.json +35 -0
- package/package.json +2 -1
package/dist/eslint/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var j=Object.create;var
|
|
2
|
-
`).map(
|
|
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});
|
package/dist/eslint/index.d.ts
CHANGED
package/dist/eslint/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{existsSync as
|
|
2
|
-
`).map(
|
|
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.
|
|
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"
|