@hyoretsu/configs 1.2.14 → 1.2.16
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/biome/elysia.json +166 -0
- package/dist/eslint/index.cjs +2 -2
- package/dist/eslint/index.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,166 @@
|
|
|
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
|
+
"css": {
|
|
17
|
+
"parser": {
|
|
18
|
+
"cssModules": true,
|
|
19
|
+
"tailwindDirectives": true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": {
|
|
23
|
+
"ignoreUnknown": true,
|
|
24
|
+
"includes": [
|
|
25
|
+
"**",
|
|
26
|
+
"!**/public",
|
|
27
|
+
"!**/*.gen.ts",
|
|
28
|
+
"!**/*.min.js"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"formatter": {
|
|
32
|
+
"formatWithErrors": false,
|
|
33
|
+
"lineWidth": 110,
|
|
34
|
+
"useEditorconfig": true
|
|
35
|
+
},
|
|
36
|
+
"javascript": {
|
|
37
|
+
"formatter": {
|
|
38
|
+
"arrowParentheses": "asNeeded",
|
|
39
|
+
"lineEnding": "lf",
|
|
40
|
+
"quoteStyle": "double",
|
|
41
|
+
"semicolons": "always",
|
|
42
|
+
"trailingCommas": "all"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"linter": {
|
|
46
|
+
"rules": {
|
|
47
|
+
"a11y": {
|
|
48
|
+
"noStaticElementInteractions": "info",
|
|
49
|
+
"noSvgWithoutTitle": "warn",
|
|
50
|
+
"useAltText": "warn",
|
|
51
|
+
"useButtonType": "warn",
|
|
52
|
+
"useHtmlLang": "warn",
|
|
53
|
+
"useKeyWithClickEvents": "off"
|
|
54
|
+
},
|
|
55
|
+
"complexity": {
|
|
56
|
+
"noBannedTypes": "warn",
|
|
57
|
+
"noForEach": "off",
|
|
58
|
+
"noImportantStyles": "off",
|
|
59
|
+
"noStaticOnlyClass": "off"
|
|
60
|
+
},
|
|
61
|
+
"correctness": {
|
|
62
|
+
"noUnusedFunctionParameters": {
|
|
63
|
+
"fix": "none",
|
|
64
|
+
"level": "warn",
|
|
65
|
+
"options": {
|
|
66
|
+
"ignoreRestSiblings": true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"noUnusedImports": {
|
|
70
|
+
"fix": "safe",
|
|
71
|
+
"level": "error"
|
|
72
|
+
},
|
|
73
|
+
"noUnusedPrivateClassMembers": "warn",
|
|
74
|
+
"noUnusedVariables": {
|
|
75
|
+
"fix": "none",
|
|
76
|
+
"level": "warn",
|
|
77
|
+
"options": {
|
|
78
|
+
"ignoreRestSiblings": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"useHookAtTopLevel": "off",
|
|
82
|
+
"useUniqueElementIds": "warn"
|
|
83
|
+
},
|
|
84
|
+
"nursery": {
|
|
85
|
+
"useSortedClasses": {
|
|
86
|
+
"fix": "safe",
|
|
87
|
+
"level": "warn",
|
|
88
|
+
"options": {
|
|
89
|
+
"attributes": [
|
|
90
|
+
"classList"
|
|
91
|
+
],
|
|
92
|
+
"functions": [
|
|
93
|
+
"cn",
|
|
94
|
+
"clsx",
|
|
95
|
+
"cva",
|
|
96
|
+
"tw"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"security": {
|
|
102
|
+
"noDangerouslySetInnerHtml": "warn"
|
|
103
|
+
},
|
|
104
|
+
"style": {
|
|
105
|
+
"noDoneCallback": "error",
|
|
106
|
+
"noInferrableTypes": "error",
|
|
107
|
+
"noNonNullAssertion": "off",
|
|
108
|
+
"noParameterAssign": "warn",
|
|
109
|
+
"noUnusedTemplateLiteral": "error",
|
|
110
|
+
"noUselessElse": "error",
|
|
111
|
+
"useAsConstAssertion": "error",
|
|
112
|
+
"useConsistentArrayType": "error",
|
|
113
|
+
"useConsistentObjectDefinitions": {
|
|
114
|
+
"level": "error",
|
|
115
|
+
"options": {
|
|
116
|
+
"syntax": "shorthand"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"useConsistentTypeDefinitions": {
|
|
120
|
+
"fix": "safe",
|
|
121
|
+
"level": "warn"
|
|
122
|
+
},
|
|
123
|
+
"useConst": "warn",
|
|
124
|
+
"useEnumInitializers": "off",
|
|
125
|
+
"useForOf": "error",
|
|
126
|
+
"useImportType": "error",
|
|
127
|
+
"useNodejsImportProtocol": {
|
|
128
|
+
"fix": "safe",
|
|
129
|
+
"level": "warn"
|
|
130
|
+
},
|
|
131
|
+
"useNumberNamespace": "error",
|
|
132
|
+
"useSelfClosingElements": "error",
|
|
133
|
+
"useSingleVarDeclarator": "off",
|
|
134
|
+
"useTemplate": "warn"
|
|
135
|
+
},
|
|
136
|
+
"suspicious": {
|
|
137
|
+
"noArrayIndexKey": "warn",
|
|
138
|
+
"noEmptyInterface": "warn",
|
|
139
|
+
"noExplicitAny": "warn",
|
|
140
|
+
"noMisplacedAssertion": "error",
|
|
141
|
+
"noShadowRestrictedNames": "warn",
|
|
142
|
+
"noSkippedTests": "error",
|
|
143
|
+
"noThenProperty": "off",
|
|
144
|
+
"noTsIgnore": {
|
|
145
|
+
"fix": "none",
|
|
146
|
+
"level": "warn"
|
|
147
|
+
},
|
|
148
|
+
"noUnknownAtRules": {
|
|
149
|
+
"level": "error",
|
|
150
|
+
"options": {
|
|
151
|
+
"ignore": [
|
|
152
|
+
"tailwind"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"useIterableCallbackReturn": "info"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"root": false,
|
|
161
|
+
"vcs": {
|
|
162
|
+
"clientKind": "git",
|
|
163
|
+
"enabled": true,
|
|
164
|
+
"useIgnoreFile": true
|
|
165
|
+
}
|
|
166
|
+
}
|
package/dist/eslint/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var j=Object.create;var
|
|
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
|
+
"use strict";var j=Object.create;var c=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)c(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of v(t))!F.call(e,i)&&i!==n&&c(e,i,{get:()=>t[i],enumerable:!(a=b(t,i))||a.enumerable});return e};var d=(e,t,n)=>(n=e!=null?j(h(e)):{},u(t||!e||!e.__esModule?c(n,"default",{value:e,enumerable:!0}):n,e)),k=e=>u(c({},"__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),a=r.default.basename(t);if(!(0,p.existsSync)(t))return{ignores:[]};const i=l=>(0,p.readdirSync)(l,{withFileTypes:!0}).flatMap(o=>{const s=r.default.join(l,o.name);return o.isDirectory()?o.name===".git"||o.name==="node_modules"?[]:i(s):o.isFile()&&o.name===a?[s]:[]});return{ignores:i(n).flatMap(l=>{const o=r.default.relative(n,r.default.dirname(l)).split(r.default.sep).join("/");return(0,p.readFileSync)(l,"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,{rules:{"no-useless-assignment":"off"}},{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.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{existsSync as
|
|
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};
|
|
1
|
+
import{existsSync as c,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 $=(l=".gitignore")=>{const i=s.resolve(l),r=s.dirname(i),a=s.basename(i);if(!c(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===a?[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,{rules:{"no-useless-assignment":"off"}},{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};
|