@longzai-intelligence/eslint-preset-nest 0.0.2 → 0.0.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.
- package/README.md +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -13,17 +13,17 @@ bun add @longzai-intelligence/eslint-preset-nest
|
|
|
13
13
|
### 基本使用
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
16
|
+
import { defineConfig } from '@longzai-intelligence/eslint-preset-nest';
|
|
17
17
|
|
|
18
|
-
export default
|
|
18
|
+
export default defineConfig();
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### 自定义配置
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
-
import {
|
|
24
|
+
import { defineConfig } from '@longzai-intelligence/eslint-preset-nest';
|
|
25
25
|
|
|
26
|
-
export default
|
|
26
|
+
export default defineConfig({
|
|
27
27
|
tsconfigRootDir: '/path/to/project',
|
|
28
28
|
});
|
|
29
29
|
```
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@longzai-intelligence/eslint-preset-node`);function t(t={}){return[...(0,e.createNodeConfig)(t)]}
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@longzai-intelligence/eslint-preset-node`);function t(t={}){return[...(0,e.createNodeConfig)(t)]}function n(e={}){return t(e)}const r=t();exports.createNestConfig=t,exports.defineConfig=n,exports.nestConfig=r;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { Config, Config as Config$1 } from "eslint/config";
|
|
1
2
|
import { Linter } from "eslint";
|
|
2
3
|
import { NodeConfigOptions as NestConfigOptions } from "@longzai-intelligence/eslint-preset-node";
|
|
3
4
|
|
|
4
5
|
//#region src/nest.preset.d.ts
|
|
5
6
|
declare function createNestConfig(options?: NestConfigOptions): Linter.Config[];
|
|
7
|
+
declare function defineConfig(options?: NestConfigOptions): Config$1[];
|
|
6
8
|
declare const nestConfig: Linter.Config[];
|
|
7
9
|
//#endregion
|
|
8
|
-
export { type NestConfigOptions, createNestConfig, nestConfig };
|
|
10
|
+
export { type Config, type NestConfigOptions, createNestConfig, defineConfig, nestConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { NodeConfigOptions as NestConfigOptions } from "@longzai-intelligence/eslint-preset-node";
|
|
2
|
+
import { Config, Config as Config$1 } from "eslint/config";
|
|
2
3
|
import { Linter } from "eslint";
|
|
3
4
|
|
|
4
5
|
//#region src/nest.preset.d.ts
|
|
5
6
|
declare function createNestConfig(options?: NestConfigOptions): Linter.Config[];
|
|
7
|
+
declare function defineConfig(options?: NestConfigOptions): Config$1[];
|
|
6
8
|
declare const nestConfig: Linter.Config[];
|
|
7
9
|
//#endregion
|
|
8
|
-
export { type NestConfigOptions, createNestConfig, nestConfig };
|
|
10
|
+
export { type Config, type NestConfigOptions, createNestConfig, defineConfig, nestConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createNodeConfig as e}from"@longzai-intelligence/eslint-preset-node";function t(t={}){return[...e(t)]}
|
|
1
|
+
import{createNodeConfig as e}from"@longzai-intelligence/eslint-preset-node";function t(t={}){return[...e(t)]}function n(e={}){return t(e)}const r=t();export{t as createNestConfig,n as defineConfig,r as nestConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence/eslint-preset-nest",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -38,9 +38,10 @@
|
|
|
38
38
|
"typescript": "^5.9.3"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@longzai-intelligence/eslint-preset-node": "0.0.
|
|
41
|
+
"@longzai-intelligence/eslint-preset-node": "0.0.3"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
+
"@longzai-intelligence/eslint-preset-library": "0.0.3",
|
|
44
45
|
"@longzai-intelligence/tsdown-config": "0.0.1",
|
|
45
46
|
"@longzai-intelligence/typescript-config": "0.0.2",
|
|
46
47
|
"@longzai-intelligence/vitest-config": "0.0.3",
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
"rimraf": "^6.1.3",
|
|
50
51
|
"tsdown": "^0.21.7",
|
|
51
52
|
"typescript": "^6.0.2",
|
|
52
|
-
"vitest": "^4.1.
|
|
53
|
+
"vitest": "^4.1.3"
|
|
53
54
|
},
|
|
54
55
|
"keywords": [
|
|
55
56
|
"eslint",
|
|
@@ -58,4 +59,4 @@
|
|
|
58
59
|
],
|
|
59
60
|
"license": "UNLICENSED",
|
|
60
61
|
"module": "./dist/index.mjs"
|
|
61
|
-
}
|
|
62
|
+
}
|