@longzai-intelligence/eslint-preset-electron 0.0.1 → 0.0.2
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 +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +4 -7
- package/dist/index.d.mts +4 -7
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @longzai-intelligence/eslint-preset-electron
|
|
2
2
|
|
|
3
|
-
ESLint Electron
|
|
3
|
+
ESLint Electron 应用配置包。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
@@ -13,17 +13,17 @@ bun add @longzai-intelligence/eslint-preset-electron
|
|
|
13
13
|
### 基本使用
|
|
14
14
|
|
|
15
15
|
```typescript
|
|
16
|
-
import {
|
|
16
|
+
import { createElectronConfig } from '@longzai-intelligence/eslint-preset-electron';
|
|
17
17
|
|
|
18
|
-
export default
|
|
18
|
+
export default createElectronConfig();
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
### 自定义配置
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
-
import {
|
|
24
|
+
import { createElectronConfig } from '@longzai-intelligence/eslint-preset-electron';
|
|
25
25
|
|
|
26
|
-
export default
|
|
26
|
+
export default createElectronConfig({
|
|
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-react`);function t(t={}){return[...(0,e.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`@longzai-intelligence/eslint-preset-react`);function t(t={}){return[...(0,e.createReactConfig)(t)]}const n=t();exports.createElectronConfig=t,exports.electronConfig=n;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { Linter } from "eslint";
|
|
2
|
-
import {
|
|
2
|
+
import { ReactConfigOptions as ElectronConfigOptions } from "@longzai-intelligence/eslint-preset-react";
|
|
3
3
|
|
|
4
|
-
//#region src/electron.types.d.ts
|
|
5
|
-
type ElectronPresetOptions = ReactPresetOptions;
|
|
6
|
-
//#endregion
|
|
7
4
|
//#region src/electron.preset.d.ts
|
|
8
|
-
declare function
|
|
9
|
-
declare const
|
|
5
|
+
declare function createElectronConfig(options?: ElectronConfigOptions): Linter.Config[];
|
|
6
|
+
declare const electronConfig: Linter.Config[];
|
|
10
7
|
//#endregion
|
|
11
|
-
export { type
|
|
8
|
+
export { type ElectronConfigOptions, createElectronConfig, electronConfig };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactConfigOptions as ElectronConfigOptions } from "@longzai-intelligence/eslint-preset-react";
|
|
2
2
|
import { Linter } from "eslint";
|
|
3
3
|
|
|
4
|
-
//#region src/electron.types.d.ts
|
|
5
|
-
type ElectronPresetOptions = ReactPresetOptions;
|
|
6
|
-
//#endregion
|
|
7
4
|
//#region src/electron.preset.d.ts
|
|
8
|
-
declare function
|
|
9
|
-
declare const
|
|
5
|
+
declare function createElectronConfig(options?: ElectronConfigOptions): Linter.Config[];
|
|
6
|
+
declare const electronConfig: Linter.Config[];
|
|
10
7
|
//#endregion
|
|
11
|
-
export { type
|
|
8
|
+
export { type ElectronConfigOptions, createElectronConfig, electronConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createReactConfig as e}from"@longzai-intelligence/eslint-preset-react";function t(t={}){return[...e(t)]}const n=t();export{t as createElectronConfig,n as electronConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longzai-intelligence/eslint-preset-electron",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@longzai-intelligence/eslint-preset-react": "0.0.1",
|
|
42
|
-
"@longzai-intelligence/eslint-plugin-architecture": "0.0.
|
|
42
|
+
"@longzai-intelligence/eslint-plugin-architecture": "0.0.3"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@longzai-intelligence/tsdown-config": "0.0.1",
|