@powerlines/plugin-oxlint 0.7.127 → 0.7.128
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/dist/helpers/generate-config.cjs +57 -2
- package/dist/helpers/generate-config.d.cts +12 -2
- package/dist/helpers/generate-config.d.mts +12 -2
- package/dist/helpers/generate-config.mjs +56 -1
- package/dist/helpers/index.cjs +2 -2
- package/dist/helpers/index.d.cts +1 -2
- package/dist/helpers/index.d.mts +1 -2
- package/dist/helpers/index.mjs +1 -1
- package/dist/index.cjs +0 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +0 -2
- package/dist/powerlines/src/types/babel.d.mts +2 -0
- package/dist/powerlines/src/types/build.d.cts +145 -0
- package/dist/powerlines/src/types/build.d.mts +145 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +376 -0
- package/dist/powerlines/src/types/config.d.mts +376 -0
- package/dist/powerlines/src/types/context.d.cts +403 -0
- package/dist/powerlines/src/types/context.d.mts +405 -0
- package/dist/powerlines/src/types/fs.d.cts +486 -0
- package/dist/powerlines/src/types/fs.d.mts +486 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +231 -0
- package/dist/powerlines/src/types/plugin.d.mts +231 -0
- package/dist/powerlines/src/types/resolved.d.cts +81 -0
- package/dist/powerlines/src/types/resolved.d.mts +81 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -2
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +0 -3
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +82 -1
- package/dist/types/plugin.d.mts +82 -1
- package/dist/types/plugin.mjs +0 -2
- package/package.json +4 -4
- package/dist/generate-config-BJgmb4Je.mjs +0 -58
- package/dist/generate-config-BZjB8irN.cjs +0 -63
- package/dist/generate-config-CJpFtLVj.d.mts +0 -13
- package/dist/generate-config-Cwl9NeWs.d.cts +0 -13
- package/dist/index-D-CYNcT9.d.mts +0 -1
- package/dist/index-D6CnpA_r.d.cts +0 -1
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-DNsqegEV.mjs +0 -1
- package/dist/plugin-Dh4sgAGc.d.cts +0 -1834
- package/dist/plugin-mSDnp4ZZ.d.mts +0 -1834
- package/dist/types-CpP_DWx6.mjs +0 -1
- package/dist/types-DHkg7xmX.cjs +0 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
2
|
+
import ts from "typescript";
|
|
3
|
+
|
|
4
|
+
//#region ../powerlines/src/types/tsconfig.d.ts
|
|
5
|
+
type ReflectionMode = "default" | "explicit" | "never";
|
|
6
|
+
type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
12
|
+
* - `minimal` - Only the essential type information is captured.
|
|
13
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
14
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
15
|
+
*/
|
|
16
|
+
type ReflectionLevel = "minimal" | "normal" | "verbose";
|
|
17
|
+
interface DeepkitOptions {
|
|
18
|
+
/**
|
|
19
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
20
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
21
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
22
|
+
*/
|
|
23
|
+
reflection?: RawReflectionMode;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
29
|
+
* - `minimal` - Only the essential type information is captured.
|
|
30
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
31
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
32
|
+
*/
|
|
33
|
+
reflectionLevel?: ReflectionLevel;
|
|
34
|
+
}
|
|
35
|
+
type TSCompilerOptions = CompilerOptions & DeepkitOptions;
|
|
36
|
+
/**
|
|
37
|
+
* The TypeScript compiler configuration.
|
|
38
|
+
*
|
|
39
|
+
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
40
|
+
*/
|
|
41
|
+
interface TSConfig extends Omit<TsConfigJson, "reflection"> {
|
|
42
|
+
/**
|
|
43
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
44
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
45
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
46
|
+
*/
|
|
47
|
+
reflection?: RawReflectionMode;
|
|
48
|
+
/**
|
|
49
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
53
|
+
* - `minimal` - Only the essential type information is captured.
|
|
54
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
55
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
56
|
+
*/
|
|
57
|
+
reflectionLevel?: ReflectionLevel;
|
|
58
|
+
/**
|
|
59
|
+
* Instructs the TypeScript compiler how to compile `.ts` files.
|
|
60
|
+
*/
|
|
61
|
+
compilerOptions?: TSCompilerOptions;
|
|
62
|
+
}
|
|
63
|
+
type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
64
|
+
originalTsconfigJson: TsConfigJson;
|
|
65
|
+
tsconfigJson: TSConfig;
|
|
66
|
+
tsconfigFilePath: string;
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { ParsedTypeScriptConfig, TSConfig };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { CompilerOptions, TsConfigJson } from "@stryke/types/tsconfig";
|
|
2
|
+
import ts from "typescript";
|
|
3
|
+
|
|
4
|
+
//#region ../powerlines/src/types/tsconfig.d.ts
|
|
5
|
+
type ReflectionMode = "default" | "explicit" | "never";
|
|
6
|
+
type RawReflectionMode = ReflectionMode | "" | boolean | string | string[] | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
12
|
+
* - `minimal` - Only the essential type information is captured.
|
|
13
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
14
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
15
|
+
*/
|
|
16
|
+
type ReflectionLevel = "minimal" | "normal" | "verbose";
|
|
17
|
+
interface DeepkitOptions {
|
|
18
|
+
/**
|
|
19
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
20
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
21
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
22
|
+
*/
|
|
23
|
+
reflection?: RawReflectionMode;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
26
|
+
*
|
|
27
|
+
* @remarks
|
|
28
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
29
|
+
* - `minimal` - Only the essential type information is captured.
|
|
30
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
31
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
32
|
+
*/
|
|
33
|
+
reflectionLevel?: ReflectionLevel;
|
|
34
|
+
}
|
|
35
|
+
type TSCompilerOptions = CompilerOptions & DeepkitOptions;
|
|
36
|
+
/**
|
|
37
|
+
* The TypeScript compiler configuration.
|
|
38
|
+
*
|
|
39
|
+
* @see https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
|
|
40
|
+
*/
|
|
41
|
+
interface TSConfig extends Omit<TsConfigJson, "reflection"> {
|
|
42
|
+
/**
|
|
43
|
+
* Either true to activate reflection for all files compiled using this tsconfig,
|
|
44
|
+
* or a list of globs/file paths relative to this tsconfig.json.
|
|
45
|
+
* Globs/file paths can be prefixed with a ! to exclude them.
|
|
46
|
+
*/
|
|
47
|
+
reflection?: RawReflectionMode;
|
|
48
|
+
/**
|
|
49
|
+
* Defines the level of reflection to be used during the transpilation process.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
* The level determines how much extra data is captured in the byte code for each type. This can be one of the following values:
|
|
53
|
+
* - `minimal` - Only the essential type information is captured.
|
|
54
|
+
* - `normal` - Additional type information is captured, including some contextual data.
|
|
55
|
+
* - `verbose` - All available type information is captured, including detailed contextual data.
|
|
56
|
+
*/
|
|
57
|
+
reflectionLevel?: ReflectionLevel;
|
|
58
|
+
/**
|
|
59
|
+
* Instructs the TypeScript compiler how to compile `.ts` files.
|
|
60
|
+
*/
|
|
61
|
+
compilerOptions?: TSCompilerOptions;
|
|
62
|
+
}
|
|
63
|
+
type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
|
|
64
|
+
originalTsconfigJson: TsConfigJson;
|
|
65
|
+
tsconfigJson: TSConfig;
|
|
66
|
+
tsconfigFilePath: string;
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { ParsedTypeScriptConfig, TSConfig };
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-D6CnpA_r.cjs";
|
|
1
|
+
import { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig } from "./plugin.cjs";
|
|
3
2
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../index-D-CYNcT9.mjs";
|
|
1
|
+
import { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig } from "./plugin.mjs";
|
|
3
2
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require('../plugin-DHXHjv16.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
2
|
+
import { PluginContext } from "../powerlines/src/types/context.cjs";
|
|
3
|
+
import { UserConfig } from "../powerlines/src/types/config.cjs";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
interface OxlintPluginOptions {
|
|
7
|
+
/**
|
|
8
|
+
* A glob pattern or path to ignore files and directories.
|
|
9
|
+
*/
|
|
10
|
+
ignorePatterns?: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* The path to the Oxlint configuration file.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue ".oxlintrc.json"
|
|
15
|
+
*/
|
|
16
|
+
configFile?: string;
|
|
17
|
+
/**
|
|
18
|
+
* An array of rules to deny
|
|
19
|
+
*/
|
|
20
|
+
deny?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* An array of rules to allow
|
|
23
|
+
*/
|
|
24
|
+
allow?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* An array of rules to warn about
|
|
27
|
+
*/
|
|
28
|
+
warn?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Additional parameters to pass to the Oxlint CLI
|
|
31
|
+
*/
|
|
32
|
+
params?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The path to the Oxlint binary
|
|
35
|
+
*/
|
|
36
|
+
oxlintPath?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue true
|
|
41
|
+
*/
|
|
42
|
+
typeAware?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to automatically fix fixable issues.
|
|
45
|
+
*
|
|
46
|
+
* - `true` - Automatically fix fixable issues.
|
|
47
|
+
* - `false` - Do not fix any issues.
|
|
48
|
+
* - `"suggestions"` - Only apply fixes that are considered suggestions.
|
|
49
|
+
* - `"dangerously"` - Apply all fixes, including those that may change code behavior.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue true
|
|
52
|
+
*/
|
|
53
|
+
fix?: boolean | "suggestions" | "dangerously";
|
|
54
|
+
/**
|
|
55
|
+
* The output format for linting results.
|
|
56
|
+
*
|
|
57
|
+
* @defaultValue "stylish"
|
|
58
|
+
*/
|
|
59
|
+
format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
|
|
60
|
+
}
|
|
61
|
+
interface OxlintPluginUserConfig extends UserConfig {
|
|
62
|
+
/**
|
|
63
|
+
* Options for the Oxlint plugin.
|
|
64
|
+
*/
|
|
65
|
+
lint?: {
|
|
66
|
+
oxlint?: OxlintPluginOptions;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
interface OxlintPluginResolvedConfig extends ResolvedConfig {
|
|
70
|
+
/**
|
|
71
|
+
* Options for the Oxlint plugin.
|
|
72
|
+
*/
|
|
73
|
+
lint: {
|
|
74
|
+
oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
78
|
+
declare type __ΩOxlintPluginOptions = any[];
|
|
79
|
+
declare type __ΩOxlintPluginUserConfig = any[];
|
|
80
|
+
declare type __ΩOxlintPluginResolvedConfig = any[];
|
|
81
|
+
declare type __ΩOxlintPluginContext = any[];
|
|
82
|
+
//#endregion
|
|
2
83
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
2
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
3
|
+
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
interface OxlintPluginOptions {
|
|
7
|
+
/**
|
|
8
|
+
* A glob pattern or path to ignore files and directories.
|
|
9
|
+
*/
|
|
10
|
+
ignorePatterns?: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* The path to the Oxlint configuration file.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue ".oxlintrc.json"
|
|
15
|
+
*/
|
|
16
|
+
configFile?: string;
|
|
17
|
+
/**
|
|
18
|
+
* An array of rules to deny
|
|
19
|
+
*/
|
|
20
|
+
deny?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* An array of rules to allow
|
|
23
|
+
*/
|
|
24
|
+
allow?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* An array of rules to warn about
|
|
27
|
+
*/
|
|
28
|
+
warn?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Additional parameters to pass to the Oxlint CLI
|
|
31
|
+
*/
|
|
32
|
+
params?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The path to the Oxlint binary
|
|
35
|
+
*/
|
|
36
|
+
oxlintPath?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue true
|
|
41
|
+
*/
|
|
42
|
+
typeAware?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to automatically fix fixable issues.
|
|
45
|
+
*
|
|
46
|
+
* - `true` - Automatically fix fixable issues.
|
|
47
|
+
* - `false` - Do not fix any issues.
|
|
48
|
+
* - `"suggestions"` - Only apply fixes that are considered suggestions.
|
|
49
|
+
* - `"dangerously"` - Apply all fixes, including those that may change code behavior.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue true
|
|
52
|
+
*/
|
|
53
|
+
fix?: boolean | "suggestions" | "dangerously";
|
|
54
|
+
/**
|
|
55
|
+
* The output format for linting results.
|
|
56
|
+
*
|
|
57
|
+
* @defaultValue "stylish"
|
|
58
|
+
*/
|
|
59
|
+
format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
|
|
60
|
+
}
|
|
61
|
+
interface OxlintPluginUserConfig extends UserConfig {
|
|
62
|
+
/**
|
|
63
|
+
* Options for the Oxlint plugin.
|
|
64
|
+
*/
|
|
65
|
+
lint?: {
|
|
66
|
+
oxlint?: OxlintPluginOptions;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
interface OxlintPluginResolvedConfig extends ResolvedConfig {
|
|
70
|
+
/**
|
|
71
|
+
* Options for the Oxlint plugin.
|
|
72
|
+
*/
|
|
73
|
+
lint: {
|
|
74
|
+
oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
78
|
+
declare type __ΩOxlintPluginOptions = any[];
|
|
79
|
+
declare type __ΩOxlintPluginUserConfig = any[];
|
|
80
|
+
declare type __ΩOxlintPluginResolvedConfig = any[];
|
|
81
|
+
declare type __ΩOxlintPluginContext = any[];
|
|
82
|
+
//#endregion
|
|
2
83
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-oxlint",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.128",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Oxlint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
"defu": "^6.1.4",
|
|
109
109
|
"oxlint": "^1.36.0",
|
|
110
110
|
"oxlint-tsgolint": "^0.2.1",
|
|
111
|
-
"powerlines": "^0.36.
|
|
111
|
+
"powerlines": "^0.36.28"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@powerlines/nx": "^0.11.
|
|
114
|
+
"@powerlines/nx": "^0.11.54",
|
|
115
115
|
"@storm-software/tsup": "^0.2.73",
|
|
116
116
|
"@types/node": "^24.10.4"
|
|
117
117
|
},
|
|
118
118
|
"publishConfig": { "access": "public" },
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "6891ff1330798e807c4caef6134df09d9f57686d"
|
|
120
120
|
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { toArray } from "@stryke/convert/neutral";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/generate-config.ts
|
|
4
|
-
/**
|
|
5
|
-
* Generates an Oxlint configuration file content based on the provided options.
|
|
6
|
-
*
|
|
7
|
-
* @param options - The options for the Oxlint plugin.
|
|
8
|
-
* @returns The generated configuration as a string.
|
|
9
|
-
*/
|
|
10
|
-
function generateConfig(options = {}) {
|
|
11
|
-
return `{
|
|
12
|
-
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
13
|
-
"plugins": [
|
|
14
|
-
"import",
|
|
15
|
-
"jsdoc",
|
|
16
|
-
"unicorn",
|
|
17
|
-
"typescript",
|
|
18
|
-
"oxc"
|
|
19
|
-
],
|
|
20
|
-
"ignorePatterns": [
|
|
21
|
-
"crates/**",
|
|
22
|
-
"dist/**",
|
|
23
|
-
"build/**",
|
|
24
|
-
"coverage/**",
|
|
25
|
-
"node_modules/**",
|
|
26
|
-
"temp/**",
|
|
27
|
-
"tests/fixtures/**"${options.ignorePatterns ? `,
|
|
28
|
-
${toArray(options.ignorePatterns).map((pattern) => `"${pattern}"`).join(",\n ")}` : ""}
|
|
29
|
-
],
|
|
30
|
-
"rules": {
|
|
31
|
-
"import/named": "error",
|
|
32
|
-
"import/namespace": [
|
|
33
|
-
"error",
|
|
34
|
-
{
|
|
35
|
-
"allowComputed": true
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"no-unused-expressions": [
|
|
39
|
-
"warn",
|
|
40
|
-
{
|
|
41
|
-
"allowShortCircuit": true,
|
|
42
|
-
"allowTaggedTemplates": true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"no-unused-vars": [
|
|
46
|
-
"warn",
|
|
47
|
-
{
|
|
48
|
-
"varsIgnorePattern": "^_",
|
|
49
|
-
"argsIgnorePattern": "^_"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"unicorn/prefer-node-protocol": "error"
|
|
53
|
-
}
|
|
54
|
-
}`;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
|
-
export { generateConfig as t };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
let __stryke_convert_neutral = require("@stryke/convert/neutral");
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/generate-config.ts
|
|
4
|
-
/**
|
|
5
|
-
* Generates an Oxlint configuration file content based on the provided options.
|
|
6
|
-
*
|
|
7
|
-
* @param options - The options for the Oxlint plugin.
|
|
8
|
-
* @returns The generated configuration as a string.
|
|
9
|
-
*/
|
|
10
|
-
function generateConfig(options = {}) {
|
|
11
|
-
return `{
|
|
12
|
-
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
13
|
-
"plugins": [
|
|
14
|
-
"import",
|
|
15
|
-
"jsdoc",
|
|
16
|
-
"unicorn",
|
|
17
|
-
"typescript",
|
|
18
|
-
"oxc"
|
|
19
|
-
],
|
|
20
|
-
"ignorePatterns": [
|
|
21
|
-
"crates/**",
|
|
22
|
-
"dist/**",
|
|
23
|
-
"build/**",
|
|
24
|
-
"coverage/**",
|
|
25
|
-
"node_modules/**",
|
|
26
|
-
"temp/**",
|
|
27
|
-
"tests/fixtures/**"${options.ignorePatterns ? `,
|
|
28
|
-
${(0, __stryke_convert_neutral.toArray)(options.ignorePatterns).map((pattern) => `"${pattern}"`).join(",\n ")}` : ""}
|
|
29
|
-
],
|
|
30
|
-
"rules": {
|
|
31
|
-
"import/named": "error",
|
|
32
|
-
"import/namespace": [
|
|
33
|
-
"error",
|
|
34
|
-
{
|
|
35
|
-
"allowComputed": true
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"no-unused-expressions": [
|
|
39
|
-
"warn",
|
|
40
|
-
{
|
|
41
|
-
"allowShortCircuit": true,
|
|
42
|
-
"allowTaggedTemplates": true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"no-unused-vars": [
|
|
46
|
-
"warn",
|
|
47
|
-
{
|
|
48
|
-
"varsIgnorePattern": "^_",
|
|
49
|
-
"argsIgnorePattern": "^_"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"unicorn/prefer-node-protocol": "error"
|
|
53
|
-
}
|
|
54
|
-
}`;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
|
-
Object.defineProperty(exports, 'generateConfig', {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function () {
|
|
61
|
-
return generateConfig;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { n as OxlintPluginOptions } from "./plugin-mSDnp4ZZ.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/generate-config.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generates an Oxlint configuration file content based on the provided options.
|
|
7
|
-
*
|
|
8
|
-
* @param options - The options for the Oxlint plugin.
|
|
9
|
-
* @returns The generated configuration as a string.
|
|
10
|
-
*/
|
|
11
|
-
declare function generateConfig(options?: OxlintPluginOptions): string;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { generateConfig as t };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { n as OxlintPluginOptions } from "./plugin-Dh4sgAGc.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/generate-config.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generates an Oxlint configuration file content based on the provided options.
|
|
7
|
-
*
|
|
8
|
-
* @param options - The options for the Oxlint plugin.
|
|
9
|
-
* @returns The generated configuration as a string.
|
|
10
|
-
*/
|
|
11
|
-
declare function generateConfig(options?: OxlintPluginOptions): string;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { generateConfig as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/plugin-DHXHjv16.cjs
DELETED
|
File without changes
|
package/dist/plugin-DNsqegEV.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|