@powerlines/plugin-biome 0.2.204 → 0.2.205
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 +2 -3
- package/dist/index.d.mts +0 -1
- package/dist/index.mjs +2 -3
- package/dist/powerlines/src/internal/helpers/hooks.d.mts +0 -2
- package/dist/powerlines/src/types/commands.d.mts +0 -1
- package/dist/powerlines/src/types/config.d.cts +3 -2
- package/dist/powerlines/src/types/config.d.mts +5 -4
- package/dist/powerlines/src/types/resolved.d.cts +2 -2
- package/dist/powerlines/src/types/resolved.d.mts +2 -2
- package/dist/powerlines/src/types/unplugin.d.mts +0 -1
- package/package.json +4 -4
- package/dist/powerlines/src/types/babel.d.mts +0 -2
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
3
2
|
let __stryke_cli_execute = require("@stryke/cli/execute");
|
|
4
3
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
5
4
|
let __stryke_fs_package_fns = require("@stryke/fs/package-fns");
|
|
@@ -14,7 +13,7 @@ function plugin(options = {}) {
|
|
|
14
13
|
return {
|
|
15
14
|
name: "biome",
|
|
16
15
|
async config() {
|
|
17
|
-
this.
|
|
16
|
+
this.debug("Providing default configuration for the Powerlines `biome` linting plugin.");
|
|
18
17
|
let configFile = options.configFile;
|
|
19
18
|
if (!configFile) if ((0, __stryke_fs_exists.existsSync)((0, __stryke_path_join.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "biome.json"))) configFile = (0, __stryke_path_join.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "biome.json");
|
|
20
19
|
else if ((0, __stryke_fs_exists.existsSync)((0, __stryke_path_join.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "biome.jsonc"))) configFile = (0, __stryke_path_join.joinPaths)(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "biome.jsonc");
|
|
@@ -34,7 +33,7 @@ function plugin(options = {}) {
|
|
|
34
33
|
} } };
|
|
35
34
|
},
|
|
36
35
|
async lint() {
|
|
37
|
-
this.
|
|
36
|
+
this.debug(`Linting project files with Biome.`);
|
|
38
37
|
const args = [];
|
|
39
38
|
if (this.config.lint.biome.params) args.push(...this.config.lint.biome.params.split(" ").filter(Boolean));
|
|
40
39
|
if (!args.includes("--log-level")) args.push("--log-level", !this.config.logLevel || this.config.logLevel === "trace" || this.config.logLevel === "debug" ? "info" : this.config.logLevel);
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
2
|
import { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
-
import "./types/index.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/index.d.ts
|
|
6
5
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
2
1
|
import { execute, executePackage } from "@stryke/cli/execute";
|
|
3
2
|
import { existsSync } from "@stryke/fs/exists";
|
|
4
3
|
import { isPackageListed } from "@stryke/fs/package-fns";
|
|
@@ -13,7 +12,7 @@ function plugin(options = {}) {
|
|
|
13
12
|
return {
|
|
14
13
|
name: "biome",
|
|
15
14
|
async config() {
|
|
16
|
-
this.
|
|
15
|
+
this.debug("Providing default configuration for the Powerlines `biome` linting plugin.");
|
|
17
16
|
let configFile = options.configFile;
|
|
18
17
|
if (!configFile) if (existsSync(joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "biome.json"))) configFile = joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "biome.json");
|
|
19
18
|
else if (existsSync(joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "biome.jsonc"))) configFile = joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "biome.jsonc");
|
|
@@ -33,7 +32,7 @@ function plugin(options = {}) {
|
|
|
33
32
|
} } };
|
|
34
33
|
},
|
|
35
34
|
async lint() {
|
|
36
|
-
this.
|
|
35
|
+
this.debug(`Linting project files with Biome.`);
|
|
37
36
|
const args = [];
|
|
38
37
|
if (this.config.lint.biome.params) args.push(...this.config.lint.biome.params.split(" ").filter(Boolean));
|
|
39
38
|
if (!args.includes("--log-level")) args.push("--log-level", !this.config.logLevel || this.config.logLevel === "trace" || this.config.logLevel === "debug" ? "info" : this.config.logLevel);
|
|
@@ -14,6 +14,7 @@ import { DateString } from "compatx";
|
|
|
14
14
|
|
|
15
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
16
|
|
|
17
|
+
type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
|
|
17
18
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
18
19
|
/**
|
|
19
20
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -253,7 +254,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
253
254
|
*
|
|
254
255
|
* @defaultValue "info"
|
|
255
256
|
*/
|
|
256
|
-
logLevel?:
|
|
257
|
+
logLevel?: LogLevel | null;
|
|
257
258
|
/**
|
|
258
259
|
* A custom logger function to use for logging messages
|
|
259
260
|
*/
|
|
@@ -420,4 +421,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
|
|
|
420
421
|
command: "deploy";
|
|
421
422
|
};
|
|
422
423
|
//#endregion
|
|
423
|
-
export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
424
|
+
export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { BuildConfig, BuildResolvedConfig, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, RolldownBuildConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsdownBuildConfig, TsdownResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig } from "./build.mjs";
|
|
2
|
-
import "./babel.mjs";
|
|
3
2
|
import { StoragePort, StoragePreset } from "./fs.mjs";
|
|
4
3
|
import { TSConfig } from "./tsconfig.mjs";
|
|
5
4
|
import { PluginContext } from "./context.mjs";
|
|
6
5
|
import { Plugin } from "./plugin.mjs";
|
|
7
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
8
6
|
import { MaybePromise } from "@stryke/types/base";
|
|
9
7
|
import { PreviewOptions } from "vite";
|
|
10
8
|
import { Format } from "@storm-software/build-tools/types";
|
|
9
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
11
10
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
12
11
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
13
12
|
import { AssetGlob } from "@stryke/types/file";
|
|
14
13
|
import { DateString } from "compatx";
|
|
15
14
|
|
|
16
15
|
//#region ../powerlines/src/types/config.d.ts
|
|
16
|
+
|
|
17
|
+
type LogLevel = "error" | "warn" | "info" | "debug" | "trace";
|
|
17
18
|
type LogFn = (type: LogLevelLabel, ...args: string[]) => void;
|
|
18
19
|
/**
|
|
19
20
|
* The {@link StormWorkspaceConfig | configuration} object for an entire Powerlines workspace
|
|
@@ -253,7 +254,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
253
254
|
*
|
|
254
255
|
* @defaultValue "info"
|
|
255
256
|
*/
|
|
256
|
-
logLevel?:
|
|
257
|
+
logLevel?: LogLevel | null;
|
|
257
258
|
/**
|
|
258
259
|
* A custom logger function to use for logging messages
|
|
259
260
|
*/
|
|
@@ -420,4 +421,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Inlin
|
|
|
420
421
|
command: "deploy";
|
|
421
422
|
};
|
|
422
423
|
//#endregion
|
|
423
|
-
export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
424
|
+
export { BuildInlineConfig, CleanInlineConfig, DeployInlineConfig, DocsInlineConfig, ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LintInlineConfig, LogFn, LogLevel, NewInlineConfig, OutputConfig, PluginConfig, PrepareInlineConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig$1 as UserConfig, ViteUserConfig, WebpackUserConfig, WorkspaceConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.cjs";
|
|
2
|
-
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
2
|
+
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.cjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
4
|
import { ResolvedPreviewOptions } from "vite";
|
|
5
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
@@ -76,7 +76,7 @@ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUse
|
|
|
76
76
|
*
|
|
77
77
|
* @defaultValue "info"
|
|
78
78
|
*/
|
|
79
|
-
logLevel:
|
|
79
|
+
logLevel: LogLevel | null;
|
|
80
80
|
};
|
|
81
81
|
type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
|
|
82
82
|
type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BuilderVariant } from "./build.mjs";
|
|
2
|
-
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
|
|
2
|
+
import { ESBuildUserConfig, EnvironmentConfig, FarmUserConfig, InlineConfig, LogLevel, OutputConfig, RolldownUserConfig, RollupUserConfig, RspackUserConfig, TsdownUserConfig, TsupUserConfig, UnbuildUserConfig, UserConfig as UserConfig$1, ViteUserConfig, WebpackUserConfig } from "./config.mjs";
|
|
3
3
|
import { NonUndefined } from "@stryke/types/base";
|
|
4
4
|
import { ResolvedPreviewOptions } from "vite";
|
|
5
5
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
@@ -76,7 +76,7 @@ type ResolvedConfig<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUse
|
|
|
76
76
|
*
|
|
77
77
|
* @defaultValue "info"
|
|
78
78
|
*/
|
|
79
|
-
logLevel:
|
|
79
|
+
logLevel: LogLevel | null;
|
|
80
80
|
};
|
|
81
81
|
type ViteResolvedConfig = ResolvedConfig<ViteUserConfig>;
|
|
82
82
|
type WebpackResolvedConfig = ResolvedConfig<WebpackUserConfig>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-biome",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.205",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Biome linting on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -108,12 +108,12 @@
|
|
|
108
108
|
"@stryke/fs": "^0.33.36",
|
|
109
109
|
"@stryke/path": "^0.26.0",
|
|
110
110
|
"defu": "^6.1.4",
|
|
111
|
-
"powerlines": "^0.37.
|
|
111
|
+
"powerlines": "^0.37.73"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
114
|
+
"@powerlines/plugin-plugin": "^0.12.151",
|
|
115
115
|
"@types/node": "^24.10.9"
|
|
116
116
|
},
|
|
117
117
|
"publishConfig": { "access": "public" },
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "df743ef7ebac849eb4ce90899884df4758b61172"
|
|
119
119
|
}
|