@longzai-intelligence/eslint-preset-nest 0.0.2 → 0.0.3

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 CHANGED
@@ -13,17 +13,17 @@ bun add @longzai-intelligence/eslint-preset-nest
13
13
  ### 基本使用
14
14
 
15
15
  ```typescript
16
- import { createNestConfig } from '@longzai-intelligence/eslint-preset-nest';
16
+ import { defineConfig } from '@longzai-intelligence/eslint-preset-nest';
17
17
 
18
- export default createNestConfig();
18
+ export default defineConfig();
19
19
  ```
20
20
 
21
21
  ### 自定义配置
22
22
 
23
23
  ```typescript
24
- import { createNestConfig } from '@longzai-intelligence/eslint-preset-nest';
24
+ import { defineConfig } from '@longzai-intelligence/eslint-preset-nest';
25
25
 
26
- export default createNestConfig({
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)]}const n=t();exports.createNestConfig=t,exports.nestConfig=n;
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
@@ -3,6 +3,7 @@ import { NodeConfigOptions as NestConfigOptions } from "@longzai-intelligence/es
3
3
 
4
4
  //#region src/nest.preset.d.ts
5
5
  declare function createNestConfig(options?: NestConfigOptions): Linter.Config[];
6
+ declare function defineConfig(options?: NestConfigOptions): Linter.Config[];
6
7
  declare const nestConfig: Linter.Config[];
7
8
  //#endregion
8
- export { type NestConfigOptions, createNestConfig, nestConfig };
9
+ export { type NestConfigOptions, createNestConfig, defineConfig, nestConfig };
package/dist/index.d.mts CHANGED
@@ -3,6 +3,7 @@ import { Linter } from "eslint";
3
3
 
4
4
  //#region src/nest.preset.d.ts
5
5
  declare function createNestConfig(options?: NestConfigOptions): Linter.Config[];
6
+ declare function defineConfig(options?: NestConfigOptions): Linter.Config[];
6
7
  declare const nestConfig: Linter.Config[];
7
8
  //#endregion
8
- export { type NestConfigOptions, createNestConfig, nestConfig };
9
+ export { 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)]}const n=t();export{t as createNestConfig,n as nestConfig};
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.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.mts",
@@ -38,7 +38,7 @@
38
38
  "typescript": "^5.9.3"
39
39
  },
40
40
  "dependencies": {
41
- "@longzai-intelligence/eslint-preset-node": "0.0.1"
41
+ "@longzai-intelligence/eslint-preset-node": "0.0.2"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@longzai-intelligence/tsdown-config": "0.0.1",