@hyoretsu/configs 1.1.2 → 1.1.4

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.
@@ -8,7 +8,10 @@
8
8
  "useSortedProperties": "on"
9
9
  }
10
10
  },
11
- "includes": ["**", "!**/package.json"]
11
+ "includes": [
12
+ "**",
13
+ "!**/package.json"
14
+ ]
12
15
  },
13
16
  "files": {
14
17
  "ignoreUnknown": true,
@@ -73,8 +76,15 @@
73
76
  "fix": "safe",
74
77
  "level": "warn",
75
78
  "options": {
76
- "attributes": ["classList"],
77
- "functions": ["cn", "clsx", "cva", "tw"]
79
+ "attributes": [
80
+ "classList"
81
+ ],
82
+ "functions": [
83
+ "cn",
84
+ "clsx",
85
+ "cva",
86
+ "tw"
87
+ ]
78
88
  }
79
89
  }
80
90
  },
@@ -121,4 +131,4 @@
121
131
  }
122
132
  },
123
133
  "root": false
124
- }
134
+ }
@@ -0,0 +1,134 @@
1
+ {
2
+ "assist": {
3
+ "actions": {
4
+ "source": {
5
+ "organizeImports": "on",
6
+ "useSortedAttributes": "on",
7
+ "useSortedKeys": "on",
8
+ "useSortedProperties": "on"
9
+ }
10
+ },
11
+ "includes": [
12
+ "**",
13
+ "!**/package.json"
14
+ ]
15
+ },
16
+ "files": {
17
+ "ignoreUnknown": true,
18
+ "includes": [
19
+ "**",
20
+ "!**/.next",
21
+ "!**/build",
22
+ "!**/client",
23
+ "!**/dist",
24
+ "!**/node_modules",
25
+ "!**/bun.lock",
26
+ "!**/tmp",
27
+ "!**/temp"
28
+ ]
29
+ },
30
+ "formatter": {
31
+ "formatWithErrors": false,
32
+ "lineWidth": 110,
33
+ "useEditorconfig": true
34
+ },
35
+ "javascript": {
36
+ "formatter": {
37
+ "arrowParentheses": "asNeeded",
38
+ "lineEnding": "lf",
39
+ "quoteStyle": "double",
40
+ "semicolons": "always",
41
+ "trailingCommas": "all"
42
+ },
43
+ "parser": {
44
+ "unsafeParameterDecoratorsEnabled": true
45
+ }
46
+ },
47
+ "linter": {
48
+ "rules": {
49
+ "a11y": {
50
+ "noSvgWithoutTitle": "warn",
51
+ "useAltText": "warn",
52
+ "useButtonType": "warn",
53
+ "useHtmlLang": "warn",
54
+ "useKeyWithClickEvents": "off"
55
+ },
56
+ "complexity": {
57
+ "noBannedTypes": "warn",
58
+ "noForEach": "off"
59
+ },
60
+ "correctness": {
61
+ "noUnusedImports": {
62
+ "fix": "safe",
63
+ "level": "error"
64
+ },
65
+ "noUnusedPrivateClassMembers": "warn",
66
+ "noUnusedVariables": {
67
+ "level": "warn",
68
+ "options": {
69
+ "ignoreRestSiblings": true
70
+ }
71
+ },
72
+ "useHookAtTopLevel": "off"
73
+ },
74
+ "nursery": {
75
+ "useSortedClasses": {
76
+ "fix": "safe",
77
+ "level": "warn",
78
+ "options": {
79
+ "attributes": [
80
+ "classList"
81
+ ],
82
+ "functions": [
83
+ "cn",
84
+ "clsx",
85
+ "cva",
86
+ "tw"
87
+ ]
88
+ }
89
+ }
90
+ },
91
+ "security": {
92
+ "noDangerouslySetInnerHtml": "warn"
93
+ },
94
+ "style": {
95
+ "noDoneCallback": "error",
96
+ "noInferrableTypes": "error",
97
+ "noNonNullAssertion": "off",
98
+ "noParameterAssign": "warn",
99
+ "noUnusedTemplateLiteral": "error",
100
+ "noUselessElse": "error",
101
+ "useAsConstAssertion": "error",
102
+ "useConsistentArrayType": "error",
103
+ "useConsistentObjectDefinitions": {
104
+ "level": "error",
105
+ "options": {
106
+ "syntax": "shorthand"
107
+ }
108
+ },
109
+ "useConsistentTypeDefinitions": {
110
+ "fix": "safe",
111
+ "level": "warn"
112
+ },
113
+ "useConst": "warn",
114
+ "useNodejsImportProtocol": {
115
+ "fix": "safe",
116
+ "level": "warn"
117
+ },
118
+ "useNumberNamespace": "error",
119
+ "useSelfClosingElements": "error",
120
+ "useSingleVarDeclarator": "off",
121
+ "useTemplate": "warn"
122
+ },
123
+ "suspicious": {
124
+ "noArrayIndexKey": "warn",
125
+ "noExplicitAny": "off",
126
+ "noMisplacedAssertion": "error",
127
+ "noSkippedTests": "error",
128
+ "noThenProperty": "info",
129
+ "useIterableCallbackReturn": "info"
130
+ }
131
+ }
132
+ },
133
+ "root": false
134
+ }
@@ -0,0 +1,134 @@
1
+ {
2
+ "assist": {
3
+ "actions": {
4
+ "source": {
5
+ "organizeImports": "on",
6
+ "useSortedAttributes": "on",
7
+ "useSortedKeys": "on",
8
+ "useSortedProperties": "on"
9
+ }
10
+ },
11
+ "includes": [
12
+ "**",
13
+ "!**/package.json"
14
+ ]
15
+ },
16
+ "files": {
17
+ "ignoreUnknown": true,
18
+ "includes": [
19
+ "**",
20
+ "!**/.next",
21
+ "!**/build",
22
+ "!**/client",
23
+ "!**/dist",
24
+ "!**/node_modules",
25
+ "!**/bun.lock",
26
+ "!**/tmp",
27
+ "!**/temp"
28
+ ]
29
+ },
30
+ "formatter": {
31
+ "formatWithErrors": false,
32
+ "lineWidth": 110,
33
+ "useEditorconfig": true
34
+ },
35
+ "javascript": {
36
+ "formatter": {
37
+ "arrowParentheses": "asNeeded",
38
+ "lineEnding": "lf",
39
+ "quoteStyle": "double",
40
+ "semicolons": "always",
41
+ "trailingCommas": "all"
42
+ },
43
+ "parser": {
44
+ "unsafeParameterDecoratorsEnabled": true
45
+ }
46
+ },
47
+ "linter": {
48
+ "rules": {
49
+ "a11y": {
50
+ "noSvgWithoutTitle": "warn",
51
+ "useAltText": "warn",
52
+ "useButtonType": "warn",
53
+ "useHtmlLang": "warn",
54
+ "useKeyWithClickEvents": "off"
55
+ },
56
+ "complexity": {
57
+ "noBannedTypes": "warn",
58
+ "noForEach": "off"
59
+ },
60
+ "correctness": {
61
+ "noUnusedImports": {
62
+ "fix": "safe",
63
+ "level": "error"
64
+ },
65
+ "noUnusedPrivateClassMembers": "warn",
66
+ "noUnusedVariables": {
67
+ "level": "warn",
68
+ "options": {
69
+ "ignoreRestSiblings": true
70
+ }
71
+ },
72
+ "useHookAtTopLevel": "off"
73
+ },
74
+ "nursery": {
75
+ "useSortedClasses": {
76
+ "fix": "safe",
77
+ "level": "warn",
78
+ "options": {
79
+ "attributes": [
80
+ "classList"
81
+ ],
82
+ "functions": [
83
+ "cn",
84
+ "clsx",
85
+ "cva",
86
+ "tw"
87
+ ]
88
+ }
89
+ }
90
+ },
91
+ "security": {
92
+ "noDangerouslySetInnerHtml": "warn"
93
+ },
94
+ "style": {
95
+ "noDoneCallback": "error",
96
+ "noInferrableTypes": "error",
97
+ "noNonNullAssertion": "off",
98
+ "noParameterAssign": "warn",
99
+ "noUnusedTemplateLiteral": "error",
100
+ "noUselessElse": "error",
101
+ "useAsConstAssertion": "error",
102
+ "useConsistentArrayType": "error",
103
+ "useConsistentObjectDefinitions": {
104
+ "level": "error",
105
+ "options": {
106
+ "syntax": "shorthand"
107
+ }
108
+ },
109
+ "useConsistentTypeDefinitions": {
110
+ "fix": "safe",
111
+ "level": "warn"
112
+ },
113
+ "useConst": "warn",
114
+ "useNodejsImportProtocol": {
115
+ "fix": "safe",
116
+ "level": "warn"
117
+ },
118
+ "useNumberNamespace": "error",
119
+ "useSelfClosingElements": "error",
120
+ "useSingleVarDeclarator": "off",
121
+ "useTemplate": "warn"
122
+ },
123
+ "suspicious": {
124
+ "noArrayIndexKey": "warn",
125
+ "noExplicitAny": "off",
126
+ "noMisplacedAssertion": "error",
127
+ "noSkippedTests": "error",
128
+ "noThenProperty": "info",
129
+ "useIterableCallbackReturn": "info"
130
+ }
131
+ }
132
+ },
133
+ "root": false
134
+ }
@@ -0,0 +1,134 @@
1
+ {
2
+ "assist": {
3
+ "actions": {
4
+ "source": {
5
+ "organizeImports": "on",
6
+ "useSortedAttributes": "on",
7
+ "useSortedKeys": "on",
8
+ "useSortedProperties": "on"
9
+ }
10
+ },
11
+ "includes": [
12
+ "**",
13
+ "!**/package.json"
14
+ ]
15
+ },
16
+ "files": {
17
+ "ignoreUnknown": true,
18
+ "includes": [
19
+ "**",
20
+ "!**/.next",
21
+ "!**/build",
22
+ "!**/client",
23
+ "!**/dist",
24
+ "!**/node_modules",
25
+ "!**/bun.lock",
26
+ "!**/tmp",
27
+ "!**/temp"
28
+ ]
29
+ },
30
+ "formatter": {
31
+ "formatWithErrors": false,
32
+ "lineWidth": 110,
33
+ "useEditorconfig": true
34
+ },
35
+ "javascript": {
36
+ "formatter": {
37
+ "arrowParentheses": "asNeeded",
38
+ "lineEnding": "lf",
39
+ "quoteStyle": "double",
40
+ "semicolons": "always",
41
+ "trailingCommas": "all"
42
+ },
43
+ "parser": {
44
+ "unsafeParameterDecoratorsEnabled": true
45
+ }
46
+ },
47
+ "linter": {
48
+ "rules": {
49
+ "a11y": {
50
+ "noSvgWithoutTitle": "warn",
51
+ "useAltText": "warn",
52
+ "useButtonType": "warn",
53
+ "useHtmlLang": "warn",
54
+ "useKeyWithClickEvents": "off"
55
+ },
56
+ "complexity": {
57
+ "noBannedTypes": "warn",
58
+ "noForEach": "off"
59
+ },
60
+ "correctness": {
61
+ "noUnusedImports": {
62
+ "fix": "safe",
63
+ "level": "error"
64
+ },
65
+ "noUnusedPrivateClassMembers": "warn",
66
+ "noUnusedVariables": {
67
+ "level": "warn",
68
+ "options": {
69
+ "ignoreRestSiblings": true
70
+ }
71
+ },
72
+ "useHookAtTopLevel": "off"
73
+ },
74
+ "nursery": {
75
+ "useSortedClasses": {
76
+ "fix": "safe",
77
+ "level": "warn",
78
+ "options": {
79
+ "attributes": [
80
+ "classList"
81
+ ],
82
+ "functions": [
83
+ "cn",
84
+ "clsx",
85
+ "cva",
86
+ "tw"
87
+ ]
88
+ }
89
+ }
90
+ },
91
+ "security": {
92
+ "noDangerouslySetInnerHtml": "warn"
93
+ },
94
+ "style": {
95
+ "noDoneCallback": "error",
96
+ "noInferrableTypes": "error",
97
+ "noNonNullAssertion": "off",
98
+ "noParameterAssign": "warn",
99
+ "noUnusedTemplateLiteral": "error",
100
+ "noUselessElse": "error",
101
+ "useAsConstAssertion": "error",
102
+ "useConsistentArrayType": "error",
103
+ "useConsistentObjectDefinitions": {
104
+ "level": "error",
105
+ "options": {
106
+ "syntax": "shorthand"
107
+ }
108
+ },
109
+ "useConsistentTypeDefinitions": {
110
+ "fix": "safe",
111
+ "level": "warn"
112
+ },
113
+ "useConst": "warn",
114
+ "useNodejsImportProtocol": {
115
+ "fix": "safe",
116
+ "level": "warn"
117
+ },
118
+ "useNumberNamespace": "error",
119
+ "useSelfClosingElements": "error",
120
+ "useSingleVarDeclarator": "off",
121
+ "useTemplate": "warn"
122
+ },
123
+ "suspicious": {
124
+ "noArrayIndexKey": "warn",
125
+ "noExplicitAny": "off",
126
+ "noMisplacedAssertion": "error",
127
+ "noSkippedTests": "error",
128
+ "noThenProperty": "info",
129
+ "useIterableCallbackReturn": "info"
130
+ }
131
+ }
132
+ },
133
+ "root": false
134
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("eslint/config").Config[];
2
+ export default _default;
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "http://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "allowSyntheticDefaultImports": true,
6
+ "checkJs": true,
7
+ "composite": true,
8
+ "downlevelIteration": true,
9
+ "esModuleInterop": true,
10
+ "exactOptionalPropertyTypes": true,
11
+ "incremental": true,
12
+ "jsx": "react-jsx",
13
+ "lib": [
14
+ "ESNext"
15
+ ],
16
+ "module": "Preserve",
17
+ "moduleDetection": "force",
18
+ "noEmit": true,
19
+ "noFallthroughCasesInSwitch": true,
20
+ "noImplicitOverride": true,
21
+ "noPropertyAccessFromIndexSignature": false,
22
+ "noUncheckedIndexedAccess": true,
23
+ "removeComments": true,
24
+ "resolveJsonModule": true,
25
+ "rewriteRelativeImportExtensions": true,
26
+ "skipLibCheck": true,
27
+ "sourceMap": true,
28
+ "strict": true,
29
+ "target": "ESNext",
30
+ "verbatimModuleSyntax": true
31
+ }
32
+ }
@@ -10,7 +10,9 @@
10
10
  "exactOptionalPropertyTypes": true,
11
11
  "incremental": true,
12
12
  "jsx": "react-jsx",
13
- "lib": ["ESNext"],
13
+ "lib": [
14
+ "ESNext"
15
+ ],
14
16
  "module": "Preserve",
15
17
  "moduleDetection": "force",
16
18
  "noEmit": true,
@@ -25,7 +27,6 @@
25
27
  "sourceMap": true,
26
28
  "strict": true,
27
29
  "target": "ESNext",
28
- "tsBuildInfoFile": "../../tsbuildinfo",
29
30
  "verbatimModuleSyntax": true
30
31
  }
31
- }
32
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "http://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "allowSyntheticDefaultImports": true,
6
+ "checkJs": true,
7
+ "composite": true,
8
+ "downlevelIteration": true,
9
+ "esModuleInterop": true,
10
+ "exactOptionalPropertyTypes": true,
11
+ "incremental": true,
12
+ "jsx": "react-jsx",
13
+ "lib": [
14
+ "ESNext"
15
+ ],
16
+ "module": "Preserve",
17
+ "moduleDetection": "force",
18
+ "noEmit": true,
19
+ "noFallthroughCasesInSwitch": true,
20
+ "noImplicitOverride": true,
21
+ "noPropertyAccessFromIndexSignature": false,
22
+ "noUncheckedIndexedAccess": true,
23
+ "removeComments": true,
24
+ "resolveJsonModule": true,
25
+ "rewriteRelativeImportExtensions": true,
26
+ "skipLibCheck": true,
27
+ "sourceMap": true,
28
+ "strict": true,
29
+ "target": "ESNext",
30
+ "verbatimModuleSyntax": true
31
+ }
32
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "http://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "allowSyntheticDefaultImports": true,
6
+ "checkJs": true,
7
+ "composite": true,
8
+ "downlevelIteration": true,
9
+ "esModuleInterop": true,
10
+ "exactOptionalPropertyTypes": true,
11
+ "incremental": true,
12
+ "jsx": "react-jsx",
13
+ "lib": [
14
+ "ESNext"
15
+ ],
16
+ "module": "Preserve",
17
+ "moduleDetection": "force",
18
+ "noEmit": true,
19
+ "noFallthroughCasesInSwitch": true,
20
+ "noImplicitOverride": true,
21
+ "noPropertyAccessFromIndexSignature": false,
22
+ "noUncheckedIndexedAccess": true,
23
+ "removeComments": true,
24
+ "resolveJsonModule": true,
25
+ "rewriteRelativeImportExtensions": true,
26
+ "skipLibCheck": true,
27
+ "sourceMap": true,
28
+ "strict": true,
29
+ "target": "ESNext",
30
+ "verbatimModuleSyntax": true
31
+ }
32
+ }
package/package.json CHANGED
@@ -1,21 +1,25 @@
1
1
  {
2
2
  "name": "@hyoretsu/configs",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
+ "files": [
7
+ "dist"
8
+ ],
6
9
  "exports": {
7
- "./biome": "./src/base.json",
8
- "./biome-mongo": "./src/biome/mongo.json",
9
- "./biome-nest": "./src/biome/nest.json",
10
- "./biome-react": "./src/biome/react.json",
10
+ "./biome": "./dist/biome/base.json",
11
+ "./biome-mongo": "./dist/biome/mongo.json",
12
+ "./biome-nest": "./dist/biome/nest.json",
13
+ "./biome-react": "./dist/biome/react.json",
11
14
  "./eslint": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.mjs",
14
- "require": "./dist/index.js"
15
+ "types": "./dist/eslint/index.d.ts",
16
+ "import": "./dist/eslint/index.mjs",
17
+ "require": "./dist/eslint/index.js"
15
18
  },
16
- "./ts": "./src/ts/base.json",
17
- "./ts-backend": "./src/ts/backend.json",
18
- "./ts-frontend": "./src/ts/frontend.json"
19
+ "./ts": "./dist/ts/base.json",
20
+ "./ts-backend": "./dist/ts/backend.json",
21
+ "./ts-frontend": "./dist/ts/frontend.json",
22
+ "./ts-lib": "./dist/ts/lib.json"
19
23
  },
20
24
  "homepage": "https://github.com/hyoretsu/npm-packages/tree/main/packages/configs",
21
25
  "bugs": {
@@ -32,7 +36,8 @@
32
36
  "url": "https://www.linkedin.com/in/aranleite"
33
37
  },
34
38
  "scripts": {
35
- "prepublishOnly": "tsup"
39
+ "build": "tsup && tsc -p tsconfig.build.json && bun ./build/json.ts Biome && bun ./build/json.ts TS",
40
+ "prepublishOnly": "bun run build"
36
41
  },
37
42
  "dependencies": {
38
43
  "@eslint/js": "^9.39.1",
@@ -43,7 +48,9 @@
43
48
  },
44
49
  "devDependencies": {
45
50
  "@biomejs/biome": "latest",
46
- "tsup": "^8.5.1"
51
+ "es-toolkit": "^1.42.0",
52
+ "tsup": "^8.5.1",
53
+ "typescript": "^5.9.3"
47
54
  },
48
55
  "peerDependencies": {
49
56
  "@biomejs/biome": "^2.3.0",
package/dist/index.d.cts DELETED
@@ -1,5 +0,0 @@
1
- import * as eslint_config from 'eslint/config';
2
-
3
- declare const _default: eslint_config.Config[];
4
-
5
- export { _default as default };
package/dist/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import * as eslint_config from 'eslint/config';
2
-
3
- declare const _default: eslint_config.Config[];
4
-
5
- export { _default as default };
@@ -1,11 +0,0 @@
1
- {
2
- "extends": ["./base.json"],
3
- "linter": {
4
- "rules": {
5
- "suspicious": {
6
- "noThenProperty": "off"
7
- }
8
- }
9
- },
10
- "root": false
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "extends": ["./base.json"],
3
- "linter": {
4
- "rules": {
5
- "style": {
6
- "useImportType": "off"
7
- }
8
- }
9
- },
10
- "root": false
11
- }
@@ -1,11 +0,0 @@
1
- {
2
- "extends": ["./base.json"],
3
- "linter": {
4
- "rules": {
5
- "correctness": {
6
- "useHookAtTopLevel": "off"
7
- }
8
- }
9
- },
10
- "root": false
11
- }
@@ -1,7 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "emitDecoratorMetadata": true,
4
- "experimentalDecorators": true
5
- },
6
- "extends": "./base.json"
7
- }
@@ -1,6 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "lib": ["DOM", "DOM.Iterable", "ESNext"]
4
- },
5
- "extends": "./base.json"
6
- }
File without changes
File without changes