@hyoretsu/configs 1.1.18 → 1.1.20

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.
@@ -23,14 +23,19 @@
23
23
  "ignoreUnknown": true,
24
24
  "includes": [
25
25
  "**",
26
+ "!**/.git",
26
27
  "!**/.next",
27
28
  "!**/build",
28
29
  "!**/client",
30
+ "!**/coverage",
29
31
  "!**/dist",
30
32
  "!**/node_modules",
31
33
  "!**/bun.lock",
34
+ "!**/public",
32
35
  "!**/tmp",
33
- "!**/temp"
36
+ "!**/temp",
37
+ "!**/*.min.js",
38
+ "!**/*.gen.ts"
34
39
  ]
35
40
  },
36
41
  "formatter": {
@@ -121,6 +126,7 @@
121
126
  "level": "warn"
122
127
  },
123
128
  "useConst": "warn",
129
+ "useEnumInitializers": "off",
124
130
  "useForOf": "error",
125
131
  "useNodejsImportProtocol": {
126
132
  "fix": "safe",
@@ -133,11 +139,12 @@
133
139
  },
134
140
  "suspicious": {
135
141
  "noArrayIndexKey": "warn",
142
+ "noEmptyInterface": "warn",
136
143
  "noExplicitAny": "warn",
137
144
  "noMisplacedAssertion": "error",
138
145
  "noShadowRestrictedNames": "warn",
139
146
  "noSkippedTests": "error",
140
- "noThenProperty": "info",
147
+ "noThenProperty": "off",
141
148
  "noTsIgnore": {
142
149
  "fix": "none",
143
150
  "level": "warn"
@@ -23,14 +23,19 @@
23
23
  "ignoreUnknown": true,
24
24
  "includes": [
25
25
  "**",
26
+ "!**/.git",
26
27
  "!**/.next",
27
28
  "!**/build",
28
29
  "!**/client",
30
+ "!**/coverage",
29
31
  "!**/dist",
30
32
  "!**/node_modules",
31
33
  "!**/bun.lock",
34
+ "!**/public",
32
35
  "!**/tmp",
33
- "!**/temp"
36
+ "!**/temp",
37
+ "!**/*.min.js",
38
+ "!**/*.gen.ts"
34
39
  ]
35
40
  },
36
41
  "formatter": {
@@ -121,6 +126,7 @@
121
126
  "level": "warn"
122
127
  },
123
128
  "useConst": "warn",
129
+ "useEnumInitializers": "off",
124
130
  "useForOf": "error",
125
131
  "useImportType": "off",
126
132
  "useNodejsImportProtocol": {
@@ -134,11 +140,12 @@
134
140
  },
135
141
  "suspicious": {
136
142
  "noArrayIndexKey": "warn",
143
+ "noEmptyInterface": "warn",
137
144
  "noExplicitAny": "warn",
138
145
  "noMisplacedAssertion": "error",
139
146
  "noShadowRestrictedNames": "warn",
140
147
  "noSkippedTests": "error",
141
- "noThenProperty": "info",
148
+ "noThenProperty": "off",
142
149
  "noTsIgnore": {
143
150
  "fix": "none",
144
151
  "level": "warn"
@@ -23,14 +23,19 @@
23
23
  "ignoreUnknown": true,
24
24
  "includes": [
25
25
  "**",
26
+ "!**/.git",
26
27
  "!**/.next",
27
28
  "!**/build",
28
29
  "!**/client",
30
+ "!**/coverage",
29
31
  "!**/dist",
30
32
  "!**/node_modules",
31
33
  "!**/bun.lock",
34
+ "!**/public",
32
35
  "!**/tmp",
33
- "!**/temp"
36
+ "!**/temp",
37
+ "!**/*.min.js",
38
+ "!**/*.gen.ts"
34
39
  ]
35
40
  },
36
41
  "formatter": {
@@ -126,6 +131,7 @@
126
131
  "level": "warn"
127
132
  },
128
133
  "useConst": "warn",
134
+ "useEnumInitializers": "off",
129
135
  "useForOf": "error",
130
136
  "useNodejsImportProtocol": {
131
137
  "fix": "safe",
@@ -138,11 +144,12 @@
138
144
  },
139
145
  "suspicious": {
140
146
  "noArrayIndexKey": "warn",
147
+ "noEmptyInterface": "warn",
141
148
  "noExplicitAny": "warn",
142
149
  "noMisplacedAssertion": "error",
143
150
  "noShadowRestrictedNames": "warn",
144
151
  "noSkippedTests": "error",
145
- "noThenProperty": "info",
152
+ "noThenProperty": "off",
146
153
  "noTsIgnore": {
147
154
  "fix": "none",
148
155
  "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 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
+ "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})},l=(e,t,s,r)=>{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:!(r=m(t,n))||r.enumerable});return e};var f=(e,t,s)=>(s=e!=null?u(g(e)):{},l(t||!e||!e.__esModule?i(s,"default",{value:e,enumerable:!0}):s,e)),b=e=>l(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,parserOptions:{projectService:!0}},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:["**/.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
+ 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,parserOptions:{projectService:!0}},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 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
+ "use strict";var e=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var t=(n,a)=>{for(var o in a)e(n,o,{get:a[o],enumerable:!0})},l=(n,a,o,c)=>{if(a&&typeof a=="object"||typeof a=="function")for(let s of m(a))!p.call(n,s)&&s!==o&&e(n,s,{get:()=>a[s],enumerable:!(c=r(a,s))||c.enumerable});return n};var i=n=>l(e({},"__esModule",{value:!0}),n);var u={};t(u,{lintStagedConfig:()=>j});module.exports=i(u);const g={bun:"bun i --lockfile-only",npm:"npm i --package-lock-only",pnpm:"pnpm i --lockfile-only",yarn:"yarn install"},j=n=>({...n&&{"(bun.|package-|pnpm-|yarn.)lock*":[()=>g[n]]},"*.(cjs|js|jsx|mjs|ts|tsx)":["bun run format:eslint"],"*.(css|graphql|cjs|js|jsx|mjs|json|jsonc|ts|tsx)":["bun run format:biome"],"**/schema.prisma":[()=>"bun run generate"]});0&&(module.exports={lintStagedConfig});
@@ -1,7 +1,8 @@
1
1
  type PackageManager = "bun" | "npm" | "pnpm" | "yarn";
2
2
  export declare const lintStagedConfig: (packageManager?: PackageManager) => {
3
- "*.(css|graphql|js|jsx|json|jsonc|ts|tsx)": string[];
4
- "*.(js|jsx|ts|tsx)": string[];
3
+ "*.(cjs|js|jsx|mjs|ts|tsx)": string[];
4
+ "*.(css|graphql|cjs|js|jsx|mjs|json|jsonc|ts|tsx)": string[];
5
+ "**/schema.prisma": (() => string)[];
5
6
  "(bun.|package-|pnpm-|yarn.)lock*"?: (() => string)[];
6
7
  };
7
8
  export {};
@@ -1 +1 @@
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};
1
+ const a={bun:"bun i --lockfile-only",npm:"npm i --package-lock-only",pnpm:"pnpm i --lockfile-only",yarn:"yarn install"},s=n=>({...n&&{"(bun.|package-|pnpm-|yarn.)lock*":[()=>a[n]]},"*.(cjs|js|jsx|mjs|ts|tsx)":["bun run format:eslint"],"*.(css|graphql|cjs|js|jsx|mjs|json|jsonc|ts|tsx)":["bun run format:biome"],"**/schema.prisma":[()=>"bun run generate"]});export{s as lintStagedConfig};
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
- "baseUrl": "./src",
5
4
  "checkJs": true,
6
5
  "composite": true,
7
6
  "downlevelIteration": true,
package/dist/ts/base.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
- "baseUrl": "./src",
5
4
  "checkJs": true,
6
5
  "composite": true,
7
6
  "downlevelIteration": true,
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
- "baseUrl": "./src",
5
4
  "checkJs": true,
6
5
  "composite": true,
7
6
  "downlevelIteration": true,
package/dist/ts/lib.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
- "baseUrl": "./src",
5
4
  "checkJs": true,
6
5
  "composite": false,
7
6
  "declaration": true,
package/dist/ts/nest.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "allowJs": true,
4
- "baseUrl": "./src",
5
4
  "checkJs": true,
6
5
  "composite": true,
7
6
  "downlevelIteration": true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyoretsu/configs",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "files": [