@hyoretsu/configs 1.0.0 → 1.1.0
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/index.cjs +1 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/package.json +42 -21
- package/{eslint → src/eslint}/index.js +2 -1
- package/src/ts/backend.json +7 -0
- package/{ts → src/ts}/base.json +6 -0
- /package/{biome → src/biome}/base.json +0 -0
- /package/{biome → src/biome}/mongo.json +0 -0
- /package/{biome → src/biome}/nest.json +0 -0
- /package/{biome → src/biome}/react.json +0 -0
- /package/{ts → src/ts}/frontend.json +0 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +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 h={};x(h,{default:()=>k});module.exports=b(h);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),k=(0,a.defineConfig)([{ignores:["**/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"]},{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-unused-vars":"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"}}]);
|
package/dist/index.d.cts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +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:["**/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"]},{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-unused-vars":"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};
|
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyoretsu/configs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist",
|
|
8
|
+
"src"
|
|
9
|
+
],
|
|
6
10
|
"exports": {
|
|
7
|
-
"./biome": "./base.json",
|
|
8
|
-
"./biome-mongo": "./biome/mongo.json",
|
|
9
|
-
"./biome-nest": "./biome/nest.json",
|
|
10
|
-
"./biome-react": "./biome/react.json",
|
|
11
|
-
"./eslint":
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
"./biome": "./src/base.json",
|
|
12
|
+
"./biome-mongo": "./src/biome/mongo.json",
|
|
13
|
+
"./biome-nest": "./src/biome/nest.json",
|
|
14
|
+
"./biome-react": "./src/biome/react.json",
|
|
15
|
+
"./eslint": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.mjs",
|
|
18
|
+
"require": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./ts": "./src/ts/base.json",
|
|
21
|
+
"./ts-backend": "./src/ts/backend.json",
|
|
22
|
+
"./ts-frontend": "./src/ts/frontend.json"
|
|
14
23
|
},
|
|
15
24
|
"homepage": "https://github.com/hyoretsu/npm-packages/tree/main/packages/configs",
|
|
16
25
|
"bugs": {
|
|
@@ -26,34 +35,46 @@
|
|
|
26
35
|
"email": "hyoretsu@gmail.com",
|
|
27
36
|
"url": "https://www.linkedin.com/in/aranleite"
|
|
28
37
|
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
"scripts": {
|
|
39
|
+
"prepublishOnly": "tsup"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@eslint/js": "^9.39.1",
|
|
43
|
+
"eslint": "^9.39.1",
|
|
44
|
+
"eslint-config-biome": "^2.1.3",
|
|
45
|
+
"eslint-plugin-jest": "^29.2.1",
|
|
46
|
+
"typescript-eslint": "^8.48.1"
|
|
33
47
|
},
|
|
34
48
|
"devDependencies": {
|
|
35
|
-
"@biomejs/biome": "latest"
|
|
49
|
+
"@biomejs/biome": "latest",
|
|
50
|
+
"tsup": "^8.5.1"
|
|
36
51
|
},
|
|
37
52
|
"peerDependencies": {
|
|
38
53
|
"@biomejs/biome": "^2.3.0",
|
|
39
|
-
"eslint": "",
|
|
40
|
-
"
|
|
54
|
+
"@eslint/js": "^9.0.0",
|
|
55
|
+
"eslint": "^9.0.0",
|
|
56
|
+
"eslint-plugin-jest": "^28.0.0 || ^29.0.0",
|
|
57
|
+
"typescript": "^5.0.0",
|
|
58
|
+
"typescript-eslint": "^8.0.0"
|
|
41
59
|
},
|
|
42
60
|
"peerDependenciesMeta": {
|
|
43
61
|
"@biomejs/biome": {
|
|
44
62
|
"optional": true
|
|
45
63
|
},
|
|
64
|
+
"@eslint/js": {
|
|
65
|
+
"optional": true
|
|
66
|
+
},
|
|
46
67
|
"eslint": {
|
|
47
68
|
"optional": true
|
|
48
69
|
},
|
|
70
|
+
"eslint-plugin-jest": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
49
73
|
"typescript": {
|
|
50
74
|
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"typescript-eslint": {
|
|
77
|
+
"optional": true
|
|
51
78
|
}
|
|
52
|
-
},
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@eslint/js": "^9.39.1",
|
|
55
|
-
"eslint-config-biome": "^2.1.3",
|
|
56
|
-
"eslint-plugin-jest": "^29.2.1",
|
|
57
|
-
"typescript-eslint": "^8.48.1"
|
|
58
79
|
}
|
|
59
80
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import eslint from "@eslint/js";
|
|
2
|
+
import { defineConfig } from "eslint/config";
|
|
3
|
+
// @ts-expect-error: no types definition
|
|
2
4
|
import biome from "eslint-config-biome";
|
|
3
5
|
import pluginJest from "eslint-plugin-jest";
|
|
4
|
-
import { defineConfig } from "eslint/config";
|
|
5
6
|
import tseslint from "typescript-eslint";
|
|
6
7
|
|
|
7
8
|
export default defineConfig([
|
package/{ts → src/ts}/base.json
RENAMED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "http://json.schemastore.org/tsconfig",
|
|
2
3
|
"compilerOptions": {
|
|
3
4
|
"allowJs": true,
|
|
5
|
+
"allowSyntheticDefaultImports": true,
|
|
6
|
+
"checkJs": true,
|
|
4
7
|
"composite": true,
|
|
5
8
|
"downlevelIteration": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
6
10
|
"exactOptionalPropertyTypes": true,
|
|
7
11
|
"incremental": true,
|
|
8
12
|
"jsx": "react-jsx",
|
|
@@ -18,8 +22,10 @@
|
|
|
18
22
|
"resolveJsonModule": true,
|
|
19
23
|
"rewriteRelativeImportExtensions": true,
|
|
20
24
|
"skipLibCheck": true,
|
|
25
|
+
"sourceMap": true,
|
|
21
26
|
"strict": true,
|
|
22
27
|
"target": "ESNext",
|
|
28
|
+
"tsBuildInfoFile": "../../tsbuildinfo",
|
|
23
29
|
"verbatimModuleSyntax": true
|
|
24
30
|
}
|
|
25
31
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|