@powerlines/plugin-biome 0.2.63 → 0.2.64
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/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/powerlines/src/types/babel.d.mts +2 -0
- package/dist/powerlines/src/types/build.d.cts +139 -0
- package/dist/powerlines/src/types/build.d.mts +139 -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 +345 -0
- package/dist/powerlines/src/types/config.d.mts +345 -0
- package/dist/powerlines/src/types/context.d.cts +347 -0
- package/dist/powerlines/src/types/context.d.mts +349 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +232 -0
- package/dist/powerlines/src/types/plugin.d.mts +232 -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 -1
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +169 -1
- package/dist/types/plugin.d.mts +169 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +10 -10
- package/dist/index-BgAdqTbb.d.mts +0 -1
- package/dist/index-CEgs-Dz2.d.cts +0 -1
- package/dist/plugin-BUnx8_ut.d.mts +0 -1801
- package/dist/plugin-Bvn-he2n.mjs +0 -1
- package/dist/plugin-CYrPYbYA.d.cts +0 -1801
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/types-B7VYa_Pp.mjs +0 -1
- package/dist/types-DHkg7xmX.cjs +0 -0
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,2 +1,170 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserConfig } from "../powerlines/src/types/config.cjs";
|
|
2
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.cjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.cjs";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
interface BiomePluginOptions {
|
|
7
|
+
/**
|
|
8
|
+
* A glob pattern or path to ignore files and directories.
|
|
9
|
+
*/
|
|
10
|
+
ignorePatterns?: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* The path to the Biome configuration file.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue "biome.json"
|
|
15
|
+
*/
|
|
16
|
+
configFile?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to write changes to disk.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue false
|
|
21
|
+
*/
|
|
22
|
+
fix?: boolean | "unsafe";
|
|
23
|
+
/**
|
|
24
|
+
* Whether to enable the JavaScript linter.
|
|
25
|
+
*/
|
|
26
|
+
javascriptLinterEnabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to enable the JSON linter.
|
|
29
|
+
*/
|
|
30
|
+
jsonLinterEnabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum file size to lint.
|
|
33
|
+
*/
|
|
34
|
+
filesMaxSize?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to ignore unknown files.
|
|
37
|
+
*/
|
|
38
|
+
filesIgnoreUnknown?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Set the formatting mode for markup: `false` prints everything as plain text, `“force”` forces the formatting of markup using ANSI even if the console output is determined to be incompatible.
|
|
41
|
+
*/
|
|
42
|
+
colors?: false | "force";
|
|
43
|
+
/**
|
|
44
|
+
* The output format to use.
|
|
45
|
+
*
|
|
46
|
+
* @defaultValue "stylish"
|
|
47
|
+
*/
|
|
48
|
+
format?: "stylish" | "compact" | "json" | "json-pretty" | "junit" | "github";
|
|
49
|
+
/**
|
|
50
|
+
* The maximum number of diagnostics to report.
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue 20
|
|
53
|
+
*/
|
|
54
|
+
maxDiagnostics?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Skip over files containing syntax errors instead of emitting an error diagnostic.
|
|
57
|
+
*/
|
|
58
|
+
skipParseErrors?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Silence errors that would be emitted in case no files were processed during the execution of the command.
|
|
61
|
+
*/
|
|
62
|
+
noErrorsOnUnmatched?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Tell Biome to exit with an error code if some diagnostics emit warnings.
|
|
65
|
+
*/
|
|
66
|
+
errorOnWarnings?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Allows JSON files with comments to be used as configuration files.
|
|
69
|
+
*/
|
|
70
|
+
jsonParseAllowComments?: true;
|
|
71
|
+
/**
|
|
72
|
+
* Allows JSON files with trailing commas to be used as configuration files.
|
|
73
|
+
*/
|
|
74
|
+
jsonParseAllowTrailingCommas?: true;
|
|
75
|
+
/**
|
|
76
|
+
* Allows to change how diagnostics and summary are reported.
|
|
77
|
+
*/
|
|
78
|
+
reporter?: "json" | "json-pretty" | "github" | "junit" | "summary" | "gitlab" | "checkstyle" | "rdjson";
|
|
79
|
+
/**
|
|
80
|
+
* The output format to use.
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue "pretty"
|
|
83
|
+
*/
|
|
84
|
+
logKind?: "pretty" | "compact" | "json";
|
|
85
|
+
/**
|
|
86
|
+
* The level of diagnostics to report.
|
|
87
|
+
*
|
|
88
|
+
* @defaultValue "info"
|
|
89
|
+
*/
|
|
90
|
+
diagnosticLevel?: "error" | "warn" | "info";
|
|
91
|
+
/**
|
|
92
|
+
* Fixes lint rule violations with comment suppressions instead of using a rule code action (fix)
|
|
93
|
+
*/
|
|
94
|
+
suppress?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The reason for suppressing a lint rule violation.
|
|
97
|
+
*/
|
|
98
|
+
reason?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Run only the given rule, group of rules or domain. If the severity level of a rule is `off`, then the severity level of the rule is set to `error` if it is a recommended rule or `warn` otherwise.
|
|
101
|
+
*/
|
|
102
|
+
only?: string[];
|
|
103
|
+
/**
|
|
104
|
+
* Skip the given rule, group of rules or domain by setting the severity level of the rules to `off`. This option takes precedence over {@link only}.
|
|
105
|
+
*/
|
|
106
|
+
skip?: string[];
|
|
107
|
+
/**
|
|
108
|
+
* Use this option when you want to format code piped from stdin, and print the output to stdout.
|
|
109
|
+
*/
|
|
110
|
+
stdinFilePath?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Whether to enable version control system integration.
|
|
113
|
+
*/
|
|
114
|
+
vcsEnabled?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* The kind of version control system client.
|
|
117
|
+
*
|
|
118
|
+
* @defaultValue "git"
|
|
119
|
+
*/
|
|
120
|
+
vcsClientKind?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Whether to use the VCS ignore file to exclude files from linting.
|
|
123
|
+
*/
|
|
124
|
+
vcsUseIgnoreFile?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* The default branch name in the version control system.
|
|
127
|
+
*
|
|
128
|
+
* @defaultValue "main"
|
|
129
|
+
*/
|
|
130
|
+
vcsDefaultBranch?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Whether to lint only staged files in the version control system.
|
|
133
|
+
*/
|
|
134
|
+
staged?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Whether to lint only changed files in the version control system.
|
|
137
|
+
*/
|
|
138
|
+
changed?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Additional parameters to pass to the Biome CLI
|
|
141
|
+
*/
|
|
142
|
+
params?: string;
|
|
143
|
+
/**
|
|
144
|
+
* The path to the Biome binary
|
|
145
|
+
*/
|
|
146
|
+
biomePath?: string;
|
|
147
|
+
}
|
|
148
|
+
interface BiomePluginUserConfig extends UserConfig {
|
|
149
|
+
/**
|
|
150
|
+
* Options for the Biome plugin.
|
|
151
|
+
*/
|
|
152
|
+
lint?: {
|
|
153
|
+
biome?: BiomePluginOptions;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
interface BiomePluginResolvedConfig extends ResolvedConfig {
|
|
157
|
+
/**
|
|
158
|
+
* Options for the Biome plugin.
|
|
159
|
+
*/
|
|
160
|
+
lint: {
|
|
161
|
+
biome: BiomePluginOptions;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
type BiomePluginContext<TResolvedConfig extends BiomePluginResolvedConfig = BiomePluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
165
|
+
declare type __ΩBiomePluginOptions = any[];
|
|
166
|
+
declare type __ΩBiomePluginUserConfig = any[];
|
|
167
|
+
declare type __ΩBiomePluginResolvedConfig = any[];
|
|
168
|
+
declare type __ΩBiomePluginContext = any[];
|
|
169
|
+
//#endregion
|
|
2
170
|
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,170 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
2
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
3
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
interface BiomePluginOptions {
|
|
7
|
+
/**
|
|
8
|
+
* A glob pattern or path to ignore files and directories.
|
|
9
|
+
*/
|
|
10
|
+
ignorePatterns?: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* The path to the Biome configuration file.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue "biome.json"
|
|
15
|
+
*/
|
|
16
|
+
configFile?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Whether to write changes to disk.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue false
|
|
21
|
+
*/
|
|
22
|
+
fix?: boolean | "unsafe";
|
|
23
|
+
/**
|
|
24
|
+
* Whether to enable the JavaScript linter.
|
|
25
|
+
*/
|
|
26
|
+
javascriptLinterEnabled?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to enable the JSON linter.
|
|
29
|
+
*/
|
|
30
|
+
jsonLinterEnabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum file size to lint.
|
|
33
|
+
*/
|
|
34
|
+
filesMaxSize?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to ignore unknown files.
|
|
37
|
+
*/
|
|
38
|
+
filesIgnoreUnknown?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Set the formatting mode for markup: `false` prints everything as plain text, `“force”` forces the formatting of markup using ANSI even if the console output is determined to be incompatible.
|
|
41
|
+
*/
|
|
42
|
+
colors?: false | "force";
|
|
43
|
+
/**
|
|
44
|
+
* The output format to use.
|
|
45
|
+
*
|
|
46
|
+
* @defaultValue "stylish"
|
|
47
|
+
*/
|
|
48
|
+
format?: "stylish" | "compact" | "json" | "json-pretty" | "junit" | "github";
|
|
49
|
+
/**
|
|
50
|
+
* The maximum number of diagnostics to report.
|
|
51
|
+
*
|
|
52
|
+
* @defaultValue 20
|
|
53
|
+
*/
|
|
54
|
+
maxDiagnostics?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Skip over files containing syntax errors instead of emitting an error diagnostic.
|
|
57
|
+
*/
|
|
58
|
+
skipParseErrors?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Silence errors that would be emitted in case no files were processed during the execution of the command.
|
|
61
|
+
*/
|
|
62
|
+
noErrorsOnUnmatched?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Tell Biome to exit with an error code if some diagnostics emit warnings.
|
|
65
|
+
*/
|
|
66
|
+
errorOnWarnings?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Allows JSON files with comments to be used as configuration files.
|
|
69
|
+
*/
|
|
70
|
+
jsonParseAllowComments?: true;
|
|
71
|
+
/**
|
|
72
|
+
* Allows JSON files with trailing commas to be used as configuration files.
|
|
73
|
+
*/
|
|
74
|
+
jsonParseAllowTrailingCommas?: true;
|
|
75
|
+
/**
|
|
76
|
+
* Allows to change how diagnostics and summary are reported.
|
|
77
|
+
*/
|
|
78
|
+
reporter?: "json" | "json-pretty" | "github" | "junit" | "summary" | "gitlab" | "checkstyle" | "rdjson";
|
|
79
|
+
/**
|
|
80
|
+
* The output format to use.
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue "pretty"
|
|
83
|
+
*/
|
|
84
|
+
logKind?: "pretty" | "compact" | "json";
|
|
85
|
+
/**
|
|
86
|
+
* The level of diagnostics to report.
|
|
87
|
+
*
|
|
88
|
+
* @defaultValue "info"
|
|
89
|
+
*/
|
|
90
|
+
diagnosticLevel?: "error" | "warn" | "info";
|
|
91
|
+
/**
|
|
92
|
+
* Fixes lint rule violations with comment suppressions instead of using a rule code action (fix)
|
|
93
|
+
*/
|
|
94
|
+
suppress?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The reason for suppressing a lint rule violation.
|
|
97
|
+
*/
|
|
98
|
+
reason?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Run only the given rule, group of rules or domain. If the severity level of a rule is `off`, then the severity level of the rule is set to `error` if it is a recommended rule or `warn` otherwise.
|
|
101
|
+
*/
|
|
102
|
+
only?: string[];
|
|
103
|
+
/**
|
|
104
|
+
* Skip the given rule, group of rules or domain by setting the severity level of the rules to `off`. This option takes precedence over {@link only}.
|
|
105
|
+
*/
|
|
106
|
+
skip?: string[];
|
|
107
|
+
/**
|
|
108
|
+
* Use this option when you want to format code piped from stdin, and print the output to stdout.
|
|
109
|
+
*/
|
|
110
|
+
stdinFilePath?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Whether to enable version control system integration.
|
|
113
|
+
*/
|
|
114
|
+
vcsEnabled?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* The kind of version control system client.
|
|
117
|
+
*
|
|
118
|
+
* @defaultValue "git"
|
|
119
|
+
*/
|
|
120
|
+
vcsClientKind?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Whether to use the VCS ignore file to exclude files from linting.
|
|
123
|
+
*/
|
|
124
|
+
vcsUseIgnoreFile?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* The default branch name in the version control system.
|
|
127
|
+
*
|
|
128
|
+
* @defaultValue "main"
|
|
129
|
+
*/
|
|
130
|
+
vcsDefaultBranch?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Whether to lint only staged files in the version control system.
|
|
133
|
+
*/
|
|
134
|
+
staged?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Whether to lint only changed files in the version control system.
|
|
137
|
+
*/
|
|
138
|
+
changed?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Additional parameters to pass to the Biome CLI
|
|
141
|
+
*/
|
|
142
|
+
params?: string;
|
|
143
|
+
/**
|
|
144
|
+
* The path to the Biome binary
|
|
145
|
+
*/
|
|
146
|
+
biomePath?: string;
|
|
147
|
+
}
|
|
148
|
+
interface BiomePluginUserConfig extends UserConfig {
|
|
149
|
+
/**
|
|
150
|
+
* Options for the Biome plugin.
|
|
151
|
+
*/
|
|
152
|
+
lint?: {
|
|
153
|
+
biome?: BiomePluginOptions;
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
interface BiomePluginResolvedConfig extends ResolvedConfig {
|
|
157
|
+
/**
|
|
158
|
+
* Options for the Biome plugin.
|
|
159
|
+
*/
|
|
160
|
+
lint: {
|
|
161
|
+
biome: BiomePluginOptions;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
type BiomePluginContext<TResolvedConfig extends BiomePluginResolvedConfig = BiomePluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
165
|
+
declare type __ΩBiomePluginOptions = any[];
|
|
166
|
+
declare type __ΩBiomePluginUserConfig = any[];
|
|
167
|
+
declare type __ΩBiomePluginResolvedConfig = any[];
|
|
168
|
+
declare type __ΩBiomePluginContext = any[];
|
|
169
|
+
//#endregion
|
|
2
170
|
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-biome",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.64",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Biome linting on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -102,20 +102,20 @@
|
|
|
102
102
|
"peerDependencies": { "@biomejs/biome": ">=2.0.0" },
|
|
103
103
|
"peerDependenciesMeta": { "@biomejs/biome": { "optional": false } },
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@storm-software/config-tools": "^1.188.
|
|
106
|
-
"@stryke/cli": "^0.12.
|
|
107
|
-
"@stryke/convert": "^0.6.
|
|
108
|
-
"@stryke/fs": "^0.33.
|
|
109
|
-
"@stryke/path": "^0.22.
|
|
105
|
+
"@storm-software/config-tools": "^1.188.60",
|
|
106
|
+
"@stryke/cli": "^0.12.30",
|
|
107
|
+
"@stryke/convert": "^0.6.24",
|
|
108
|
+
"@stryke/fs": "^0.33.20",
|
|
109
|
+
"@stryke/path": "^0.22.11",
|
|
110
110
|
"defu": "^6.1.4",
|
|
111
|
-
"powerlines": "^0.30.
|
|
111
|
+
"powerlines": "^0.30.10"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@biomejs/biome": "^2.3.8",
|
|
115
|
-
"@powerlines/nx": "^0.10.
|
|
116
|
-
"@storm-software/tsup": "^0.2.
|
|
115
|
+
"@powerlines/nx": "^0.10.59",
|
|
116
|
+
"@storm-software/tsup": "^0.2.58",
|
|
117
117
|
"@types/node": "^24.10.1"
|
|
118
118
|
},
|
|
119
119
|
"publishConfig": { "access": "public" },
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "1fa17406f69248e0a35ca56c09b1f4589e4d49d7"
|
|
121
121
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|