@longzai-intelligence/eslint-preset-hono 0.0.1
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/README.md +37 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +11 -0
- package/dist/index.d.mts +11 -0
- package/dist/index.mjs +1 -0
- package/package.json +61 -0
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @longzai-intelligence/eslint-preset-hono
|
|
2
|
+
|
|
3
|
+
ESLint Hono 服务预设包。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun add @longzai-intelligence/eslint-preset-hono
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
|
|
13
|
+
### 基本使用
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { createHonoPreset } from '@longzai-intelligence/eslint-preset-hono';
|
|
17
|
+
|
|
18
|
+
export default createHonoPreset();
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### 自定义配置
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import { createHonoPreset } from '@longzai-intelligence/eslint-preset-hono';
|
|
25
|
+
|
|
26
|
+
export default createHonoPreset({
|
|
27
|
+
tsconfigRootDir: '/path/to/project',
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## 依赖
|
|
32
|
+
|
|
33
|
+
- `@longzai-intelligence/eslint-preset-node` - 内部包
|
|
34
|
+
|
|
35
|
+
## 许可证
|
|
36
|
+
|
|
37
|
+
UNLICENSED
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@longzai-intelligence/eslint-preset-node`);function t(t={}){return[...(0,e.createNodePreset)(t)]}const n=t();exports.createHonoPreset=t,exports.honoPreset=n;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Linter } from "eslint";
|
|
2
|
+
import { NodePresetOptions } from "@longzai-intelligence/eslint-preset-node";
|
|
3
|
+
|
|
4
|
+
//#region src/hono.types.d.ts
|
|
5
|
+
type HonoPresetOptions = NodePresetOptions;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/hono.preset.d.ts
|
|
8
|
+
declare function createHonoPreset(options?: HonoPresetOptions): Linter.Config[];
|
|
9
|
+
declare const honoPreset: Linter.Config[];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { type HonoPresetOptions, createHonoPreset, honoPreset };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NodePresetOptions } from "@longzai-intelligence/eslint-preset-node";
|
|
2
|
+
import { Linter } from "eslint";
|
|
3
|
+
|
|
4
|
+
//#region src/hono.types.d.ts
|
|
5
|
+
type HonoPresetOptions = NodePresetOptions;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/hono.preset.d.ts
|
|
8
|
+
declare function createHonoPreset(options?: HonoPresetOptions): Linter.Config[];
|
|
9
|
+
declare const honoPreset: Linter.Config[];
|
|
10
|
+
//#endregion
|
|
11
|
+
export { type HonoPresetOptions, createHonoPreset, honoPreset };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createNodePreset as e}from"@longzai-intelligence/eslint-preset-node";function t(t={}){return[...e(t)]}const n=t();export{t as createHonoPreset,n as honoPreset};
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@longzai-intelligence/eslint-preset-hono",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"types": "./dist/index.d.mts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": {
|
|
10
|
+
"import": "./dist/index.d.mts",
|
|
11
|
+
"require": "./dist/index.d.cts"
|
|
12
|
+
},
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsdown",
|
|
22
|
+
"build:prod": "NODE_ENV=production tsdown",
|
|
23
|
+
"prepublishOnly": "bun run build:prod",
|
|
24
|
+
"dev": "tsdown --watch",
|
|
25
|
+
"clean": "rimraf dist tsconfig/.cache",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
|
+
"test:coverage": "vitest run --coverage",
|
|
29
|
+
"lint": "eslint .",
|
|
30
|
+
"lint:fix": "eslint . --fix",
|
|
31
|
+
"typecheck": "bun run typecheck:app && bun run typecheck:node && bun run typecheck:test",
|
|
32
|
+
"typecheck:app": "tsc --noEmit -p tsconfig/app.json",
|
|
33
|
+
"typecheck:node": "tsc --noEmit -p tsconfig/node.json",
|
|
34
|
+
"typecheck:test": "tsc --noEmit -p tsconfig/test.json"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"eslint": "^10.0.0",
|
|
38
|
+
"typescript": "^5.9.3"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@longzai-intelligence/eslint-preset-node": "0.0.1"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@longzai-intelligence/tsdown-config": "0.0.1",
|
|
45
|
+
"@longzai-intelligence/typescript-config": "0.0.2",
|
|
46
|
+
"@longzai-intelligence/vitest-config": "0.0.3",
|
|
47
|
+
"@types/node": "^25.5.2",
|
|
48
|
+
"eslint": "^10.2.0",
|
|
49
|
+
"rimraf": "^6.1.3",
|
|
50
|
+
"tsdown": "^0.21.7",
|
|
51
|
+
"typescript": "^6.0.2",
|
|
52
|
+
"vitest": "^4.1.2"
|
|
53
|
+
},
|
|
54
|
+
"keywords": [
|
|
55
|
+
"eslint",
|
|
56
|
+
"preset",
|
|
57
|
+
"hono"
|
|
58
|
+
],
|
|
59
|
+
"license": "UNLICENSED",
|
|
60
|
+
"module": "./dist/index.mjs"
|
|
61
|
+
}
|