@longzai-intelligence/eslint-preset-library 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 +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,17 +18,17 @@ bun add @longzai-intelligence/eslint-preset-library
|
|
|
18
18
|
### 基本使用
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import {
|
|
21
|
+
import { defineConfig } from '@longzai-intelligence/eslint-preset-library';
|
|
22
22
|
|
|
23
|
-
export default
|
|
23
|
+
export default defineConfig();
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
### 自定义配置
|
|
27
27
|
|
|
28
28
|
```typescript
|
|
29
|
-
import {
|
|
29
|
+
import { defineConfig } from '@longzai-intelligence/eslint-preset-library';
|
|
30
30
|
|
|
31
|
-
export default
|
|
31
|
+
export default defineConfig({
|
|
32
32
|
tsconfigRootDir: '/path/to/project',
|
|
33
33
|
});
|
|
34
34
|
```
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@longzai-intelligence/eslint-preset-base`);function t(t={}){return[...(0,e.createBaseConfig)(t)]}
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@longzai-intelligence/eslint-preset-base`);function t(t={}){return[...(0,e.createBaseConfig)(t)]}function n(e={}){return t(e)}const r=t();exports.createLibraryConfig=t,exports.defineConfig=n,exports.libraryConfig=r;
|
package/dist/index.d.cts
CHANGED
|
@@ -3,6 +3,7 @@ import { BaseConfigOptions as LibraryConfigOptions } from "@longzai-intelligence
|
|
|
3
3
|
|
|
4
4
|
//#region src/library.preset.d.ts
|
|
5
5
|
declare function createLibraryConfig(options?: LibraryConfigOptions): Linter.Config[];
|
|
6
|
+
declare function defineConfig(options?: LibraryConfigOptions): Linter.Config[];
|
|
6
7
|
declare const libraryConfig: Linter.Config[];
|
|
7
8
|
//#endregion
|
|
8
|
-
export { type LibraryConfigOptions, createLibraryConfig, libraryConfig };
|
|
9
|
+
export { type LibraryConfigOptions, createLibraryConfig, defineConfig, libraryConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import { Linter } from "eslint";
|
|
|
3
3
|
|
|
4
4
|
//#region src/library.preset.d.ts
|
|
5
5
|
declare function createLibraryConfig(options?: LibraryConfigOptions): Linter.Config[];
|
|
6
|
+
declare function defineConfig(options?: LibraryConfigOptions): Linter.Config[];
|
|
6
7
|
declare const libraryConfig: Linter.Config[];
|
|
7
8
|
//#endregion
|
|
8
|
-
export { type LibraryConfigOptions, createLibraryConfig, libraryConfig };
|
|
9
|
+
export { type LibraryConfigOptions, createLibraryConfig, defineConfig, libraryConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createBaseConfig as e}from"@longzai-intelligence/eslint-preset-base";function t(t={}){return[...e(t)]}
|
|
1
|
+
import{createBaseConfig as e}from"@longzai-intelligence/eslint-preset-base";function t(t={}){return[...e(t)]}function n(e={}){return t(e)}const r=t();export{t as createLibraryConfig,n as defineConfig,r as libraryConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence/eslint-preset-library",
|
|
3
|
-
"version": "0.0.
|
|
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-base": "0.0.
|
|
41
|
+
"@longzai-intelligence/eslint-preset-base": "0.0.2",
|
|
42
42
|
"@longzai-intelligence/eslint-plugin-architecture": "0.0.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|