@powerlines/plugin-biome 0.2.244 → 0.2.245
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-BgAdqTbb.d.mts +1 -0
- package/dist/index-CEgs-Dz2.d.cts +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +4 -3
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +4 -3
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-C3MaN5jp.mjs +1 -0
- package/dist/plugin-CazGcv_f.d.mts +171 -0
- package/dist/plugin-CazGcv_f.d.mts.map +1 -0
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-Dlvfastv.d.cts +171 -0
- package/dist/plugin-Dlvfastv.d.cts.map +1 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -169
- package/dist/types/plugin.d.mts +1 -169
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-CTUnla4x.mjs +1 -0
- package/dist/types-DHkg7xmX.cjs +0 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
require('./plugin-DHXHjv16.cjs');
|
|
3
|
+
require('./types-DHkg7xmX.cjs');
|
|
2
4
|
let __stryke_cli_execute = require("@stryke/cli/execute");
|
|
3
5
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
4
6
|
let __stryke_fs_package_fns = require("@stryke/fs/package-fns");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BiomePluginContext,
|
|
2
|
-
import "./
|
|
1
|
+
import { a as __ΩBiomePluginContext, c as __ΩBiomePluginUserConfig, i as BiomePluginUserConfig, n as BiomePluginOptions, o as __ΩBiomePluginOptions, r as BiomePluginResolvedConfig, s as __ΩBiomePluginResolvedConfig, t as BiomePluginContext } from "./plugin-Dlvfastv.cjs";
|
|
2
|
+
import "./index-CEgs-Dz2.cjs";
|
|
3
3
|
import { Plugin } from "powerlines/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -9,4 +9,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
9
9
|
*/
|
|
10
10
|
declare function plugin(options?: BiomePluginOptions): Plugin<BiomePluginContext>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig, plugin as default, plugin };
|
|
12
|
+
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig, plugin as default, plugin };
|
|
13
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmCA;AACW,iBADK,MAAA,CACL,OAAA,CAAA,EAAA,kBAAA,CAAA,EACR,MADQ,CACD,kBADC,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BiomePluginContext,
|
|
2
|
-
import "./
|
|
1
|
+
import { a as __ΩBiomePluginContext, c as __ΩBiomePluginUserConfig, i as BiomePluginUserConfig, n as BiomePluginOptions, o as __ΩBiomePluginOptions, r as BiomePluginResolvedConfig, s as __ΩBiomePluginResolvedConfig, t as BiomePluginContext } from "./plugin-CazGcv_f.mjs";
|
|
2
|
+
import "./index-BgAdqTbb.mjs";
|
|
3
3
|
import { Plugin } from "powerlines/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -9,4 +9,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
9
9
|
*/
|
|
10
10
|
declare function plugin(options?: BiomePluginOptions): Plugin<BiomePluginContext>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig, plugin as default, plugin };
|
|
12
|
+
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig, plugin as default, plugin };
|
|
13
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmCA;AACW,iBADK,MAAA,CACL,OAAA,CAAA,EAAA,kBAAA,CAAA,EACR,MADQ,CACD,kBADC,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "./plugin-C3MaN5jp.mjs";
|
|
2
|
+
import "./types-CTUnla4x.mjs";
|
|
1
3
|
import { execute, executePackage } from "@stryke/cli/execute";
|
|
2
4
|
import { existsSync } from "@stryke/fs/exists";
|
|
3
5
|
import { isPackageListed } from "@stryke/fs/package-fns";
|
|
@@ -81,4 +83,5 @@ function plugin(options = {}) {
|
|
|
81
83
|
var src_default = plugin;
|
|
82
84
|
|
|
83
85
|
//#endregion
|
|
84
|
-
export { src_default as default, plugin };
|
|
86
|
+
export { src_default as default, plugin };
|
|
87
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["args: string[]"],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { execute, executePackage } from \"@stryke/cli/execute\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { isPackageListed } from \"@stryke/fs/package-fns\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport {\n BiomePluginContext,\n BiomePluginOptions,\n BiomePluginUserConfig\n} from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to assist in linting a project with Biome.\n */\nexport function plugin(\n options: BiomePluginOptions = {}\n): Plugin<BiomePluginContext> {\n return {\n name: \"biome\",\n async config() {\n this.debug(\n \"Providing default configuration for the Powerlines `biome` linting plugin.\"\n );\n\n let configFile = options.configFile;\n if (!configFile) {\n if (\n existsSync(\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot,\n \"biome.json\"\n )\n )\n ) {\n configFile = joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot,\n \"biome.json\"\n );\n } else if (\n existsSync(\n joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot,\n \"biome.jsonc\"\n )\n )\n ) {\n configFile = joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot,\n \"biome.jsonc\"\n );\n } else if (\n existsSync(\n joinPaths(this.workspaceConfig.workspaceRoot, \"biome.json\")\n )\n ) {\n configFile = joinPaths(\n this.workspaceConfig.workspaceRoot,\n \"biome.json\"\n );\n } else if (\n existsSync(\n joinPaths(this.workspaceConfig.workspaceRoot, \"biome.jsonc\")\n )\n ) {\n configFile = joinPaths(\n this.workspaceConfig.workspaceRoot,\n \"biome.jsonc\"\n );\n } else {\n throw new Error(\n `No Biome configuration file found. Please specify a valid config file path in the Biome plugin's \\`configFile\\` options.`\n );\n }\n }\n\n return {\n lint: {\n biome: {\n configFile,\n maxDiagnostics: 20,\n diagnosticLevel: \"info\",\n fix: true,\n logKind: \"pretty\",\n format: \"stylish\",\n vcsEnabled: true,\n vcsDefaultBranch: this.workspaceConfig.branch || \"main\",\n ...options\n }\n }\n } as BiomePluginUserConfig;\n },\n async lint() {\n this.debug(`Linting project files with Biome.`);\n\n const args: string[] = [];\n\n if (this.config.lint.biome.params) {\n args.push(...this.config.lint.biome.params.split(\" \").filter(Boolean));\n }\n\n if (!args.includes(\"--log-level\")) {\n args.push(\n \"--log-level\",\n !this.config.logLevel ||\n this.config.logLevel === \"trace\" ||\n this.config.logLevel === \"debug\"\n ? \"info\"\n : this.config.logLevel\n );\n }\n\n if (\n !args.includes(\"--verbose\") &&\n (this.config.logLevel === \"trace\" ||\n this.config.logLevel === \"debug\" ||\n this.config.mode === \"development\")\n ) {\n args.push(\"--verbose\");\n }\n\n if (this.config.lint.biome.fix !== false && !args.includes(\"--fix\")) {\n args.push(\"--fix\");\n if (\n this.config.lint.biome.fix === \"unsafe\" &&\n !args.includes(\"--unsafe\")\n ) {\n args.push(\"--unsafe\");\n }\n }\n\n if (\n this.config.lint.biome.configFile &&\n !args.includes(\"--config-path\")\n ) {\n args.push(\"--config-path\", this.config.lint.biome.configFile);\n }\n\n if (this.config.lint.biome.changed && !args.includes(\"--changed\")) {\n args.push(\"--changed\");\n }\n\n if (this.config.lint.biome.staged && !args.includes(\"--staged\")) {\n args.push(\"--staged\");\n }\n\n if (this.config.lint.biome.ignorePatterns && !args.includes(\"--ignore\")) {\n args.push(\n \"--ignore\",\n Array.isArray(this.config.lint.biome.ignorePatterns)\n ? this.config.lint.biome.ignorePatterns.join(\",\")\n : this.config.lint.biome.ignorePatterns\n );\n }\n\n if (this.config.lint.biome.suppress && !args.includes(\"--suppress\")) {\n args.push(\"--suppress\");\n }\n\n if (this.config.lint.biome.only && !args.includes(\"--only\")) {\n args.push(\n \"--only\",\n Array.isArray(this.config.lint.biome.only)\n ? this.config.lint.biome.only.join(\",\")\n : this.config.lint.biome.only\n );\n }\n\n if (this.config.lint.biome.skip && !args.includes(\"--skip\")) {\n args.push(\n \"--skip\",\n Array.isArray(this.config.lint.biome.skip)\n ? this.config.lint.biome.skip.join(\",\")\n : this.config.lint.biome.skip\n );\n }\n\n if (\n this.config.lint.biome.stdinFilePath &&\n !args.includes(\"--stdin-file-path\")\n ) {\n args.push(\"--stdin-file-path\", this.config.lint.biome.stdinFilePath);\n }\n\n if (\n this.config.lint.biome.maxDiagnostics !== undefined &&\n !args.includes(\"--max-diagnostics\")\n ) {\n args.push(\n \"--max-diagnostics\",\n this.config.lint.biome.maxDiagnostics.toString()\n );\n }\n\n if (\n this.config.lint.biome.diagnosticLevel &&\n !args.includes(\"--diagnostic-level\")\n ) {\n args.push(\"--diagnostic-level\", this.config.lint.biome.diagnosticLevel);\n }\n\n if (\n this.config.lint.biome.errorOnWarnings &&\n !args.includes(\"--error-on-warnings\")\n ) {\n args.push(\"--error-on-warnings\");\n }\n\n if (\n this.config.lint.biome.jsonParseAllowComments &&\n !args.includes(\"--json-parse-allow-comments\")\n ) {\n args.push(\"--json-parse-allow-comments\");\n }\n\n if (\n this.config.lint.biome.jsonParseAllowTrailingCommas &&\n !args.includes(\"--json-parse-allow-trailing-commas\")\n ) {\n args.push(\"--json-parse-allow-trailing-commas\");\n }\n\n if (this.config.lint.biome.reporter && !args.includes(\"--reporter\")) {\n args.push(\"--reporter\", this.config.lint.biome.reporter);\n }\n\n if (this.config.lint.biome.logKind && !args.includes(\"--log-kind\")) {\n args.push(\"--log-kind\", this.config.lint.biome.logKind);\n }\n\n if (\n this.config.lint.biome.filesMaxSize &&\n !args.includes(\"--files-max-size\")\n ) {\n args.push(\n \"--files-max-size\",\n this.config.lint.biome.filesMaxSize.toString()\n );\n }\n\n if (\n this.config.lint.biome.filesIgnoreUnknown &&\n !args.includes(\"--files-ignore-unknown\")\n ) {\n args.push(\"--files-ignore-unknown\");\n }\n\n if (\n this.config.lint.biome.vcsEnabled &&\n !args.includes(\"--vcs-enabled\")\n ) {\n args.push(\"--vcs-enabled\");\n\n if (!args.includes(\"--vcs-root\")) {\n args.push(\"--vcs-root\", this.workspaceConfig.workspaceRoot);\n }\n\n if (\n this.config.lint.biome.vcsClientKind &&\n !args.includes(\"--vcs-client-kind\")\n ) {\n args.push(\"--vcs-client-kind\", this.config.lint.biome.vcsClientKind);\n }\n\n if (\n this.config.lint.biome.vcsUseIgnoreFile &&\n !args.includes(\"--vcs-use-ignore-file\")\n ) {\n args.push(\"--vcs-use-ignore-file\");\n }\n\n if (\n this.config.lint.biome.vcsDefaultBranch &&\n !args.includes(\"--vcs-default-branch\")\n ) {\n args.push(\n \"--vcs-default-branch\",\n this.config.lint.biome.vcsDefaultBranch\n );\n }\n }\n\n if (!this.config.lint.biome.biomePath) {\n const isBiomeListed = await isPackageListed(\n \"@biomejs/biome\",\n this.config.projectRoot\n );\n\n args.unshift(\n isBiomeListed\n ? replacePath(this.config.sourceRoot, this.config.projectRoot)\n : this.config.sourceRoot\n );\n\n const result = await executePackage(\n \"biome\",\n args,\n isBiomeListed\n ? joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot\n )\n : this.config.projectRoot\n );\n if (result.failed) {\n throw new Error(`Biome process exited with code ${result.exitCode}.`);\n }\n } else {\n args.unshift(this.config.lint.biome.biomePath, this.config.sourceRoot);\n\n const result = await execute(\n args.join(\" \"),\n this.workspaceConfig.workspaceRoot\n );\n if (result.failed) {\n throw new Error(`Biome process exited with code ${result.exitCode}.`);\n }\n }\n }\n };\n}\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;AAmCA,SAAgB,OACd,UAA8B,EAAE,EACJ;AAC5B,QAAO;EACL,MAAM;EACN,MAAM,SAAS;AACb,QAAK,MACH,6EACD;GAED,IAAI,aAAa,QAAQ;AACzB,OAAI,CAAC,WACH,KACE,WACE,UACE,KAAK,gBAAgB,eACrB,KAAK,OAAO,aACZ,aACD,CACF,CAED,cAAa,UACX,KAAK,gBAAgB,eACrB,KAAK,OAAO,aACZ,aACD;YAED,WACE,UACE,KAAK,gBAAgB,eACrB,KAAK,OAAO,aACZ,cACD,CACF,CAED,cAAa,UACX,KAAK,gBAAgB,eACrB,KAAK,OAAO,aACZ,cACD;YAED,WACE,UAAU,KAAK,gBAAgB,eAAe,aAAa,CAC5D,CAED,cAAa,UACX,KAAK,gBAAgB,eACrB,aACD;YAED,WACE,UAAU,KAAK,gBAAgB,eAAe,cAAc,CAC7D,CAED,cAAa,UACX,KAAK,gBAAgB,eACrB,cACD;OAED,OAAM,IAAI,MACR,2HACD;AAIL,UAAO,EACL,MAAM,EACJ,OAAO;IACL;IACA,gBAAgB;IAChB,iBAAiB;IACjB,KAAK;IACL,SAAS;IACT,QAAQ;IACR,YAAY;IACZ,kBAAkB,KAAK,gBAAgB,UAAU;IACjD,GAAG;IACJ,EACF,EACF;;EAEH,MAAM,OAAO;AACX,QAAK,MAAM,oCAAoC;GAE/C,MAAMA,OAAiB,EAAE;AAEzB,OAAI,KAAK,OAAO,KAAK,MAAM,OACzB,MAAK,KAAK,GAAG,KAAK,OAAO,KAAK,MAAM,OAAO,MAAM,IAAI,CAAC,OAAO,QAAQ,CAAC;AAGxE,OAAI,CAAC,KAAK,SAAS,cAAc,CAC/B,MAAK,KACH,eACA,CAAC,KAAK,OAAO,YACX,KAAK,OAAO,aAAa,WACzB,KAAK,OAAO,aAAa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,OAAO,SAAS,GAAG;;;EAI5E;;AAGH,kBAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { UserConfig } from "powerlines/types/config";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
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
|
|
170
|
+
export { __ΩBiomePluginContext as a, __ΩBiomePluginUserConfig as c, BiomePluginUserConfig as i, BiomePluginOptions as n, __ΩBiomePluginOptions as o, BiomePluginResolvedConfig as r, __ΩBiomePluginResolvedConfig as s, BiomePluginContext as t };
|
|
171
|
+
//# sourceMappingURL=plugin-CazGcv_f.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-CazGcv_f.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;UAsBiB,kBAAA;;AAAjB;AAqLA;EASiB,cAAA,CAAA,EAAA,MAAA,GAAA,MAA0B,EAAA;EAS/B;;;;;EAEK,UAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UApBA,qBAAA,SAA8B;;;;;YAKnC;;;UAIK,yBAAA,SAAkC;;;;;WAKxC;;;KAIC,2CACc,4BAA4B,6BAClD,cAAc"}
|
|
File without changes
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { UserConfig } from "powerlines/types/config";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
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
|
|
170
|
+
export { __ΩBiomePluginContext as a, __ΩBiomePluginUserConfig as c, BiomePluginUserConfig as i, BiomePluginOptions as n, __ΩBiomePluginOptions as o, BiomePluginResolvedConfig as r, __ΩBiomePluginResolvedConfig as s, BiomePluginContext as t };
|
|
171
|
+
//# sourceMappingURL=plugin-Dlvfastv.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-Dlvfastv.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;UAsBiB,kBAAA;;AAAjB;AAqLA;EASiB,cAAA,CAAA,EAAA,MAAA,GAAA,MAA0B,EAAA;EAS/B;;;;;EAEK,UAAA,CAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UApBA,qBAAA,SAA8B;;;;;YAKnC;;;UAIK,yBAAA,SAAkC;;;;;WAKxC;;;KAIC,2CACc,4BAA4B,6BAClD,cAAc"}
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { BiomePluginContext,
|
|
1
|
+
import { a as __ΩBiomePluginContext, c as __ΩBiomePluginUserConfig, i as BiomePluginUserConfig, n as BiomePluginOptions, o as __ΩBiomePluginOptions, r as BiomePluginResolvedConfig, s as __ΩBiomePluginResolvedConfig, t as BiomePluginContext } from "../plugin-Dlvfastv.cjs";
|
|
2
|
+
import "../index-CEgs-Dz2.cjs";
|
|
2
3
|
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { BiomePluginContext,
|
|
1
|
+
import { a as __ΩBiomePluginContext, c as __ΩBiomePluginUserConfig, i as BiomePluginUserConfig, n as BiomePluginOptions, o as __ΩBiomePluginOptions, r as BiomePluginResolvedConfig, s as __ΩBiomePluginResolvedConfig, t as BiomePluginContext } from "../plugin-CazGcv_f.mjs";
|
|
2
|
+
import "../index-BgAdqTbb.mjs";
|
|
2
3
|
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../plugin-DHXHjv16.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,170 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
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
|
|
1
|
+
import { a as __ΩBiomePluginContext, c as __ΩBiomePluginUserConfig, i as BiomePluginUserConfig, n as BiomePluginOptions, o as __ΩBiomePluginOptions, r as BiomePluginResolvedConfig, s as __ΩBiomePluginResolvedConfig, t as BiomePluginContext } from "../plugin-Dlvfastv.cjs";
|
|
170
2
|
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,170 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
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
|
|
1
|
+
import { a as __ΩBiomePluginContext, c as __ΩBiomePluginUserConfig, i as BiomePluginUserConfig, n as BiomePluginOptions, o as __ΩBiomePluginOptions, r as BiomePluginResolvedConfig, s as __ΩBiomePluginResolvedConfig, t as BiomePluginContext } from "../plugin-CazGcv_f.mjs";
|
|
170
2
|
export { BiomePluginContext, BiomePluginOptions, BiomePluginResolvedConfig, BiomePluginUserConfig, __ΩBiomePluginContext, __ΩBiomePluginOptions, __ΩBiomePluginResolvedConfig, __ΩBiomePluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-biome",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.245",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Biome linting on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -94,15 +94,15 @@
|
|
|
94
94
|
"@stryke/fs": "^0.33.39",
|
|
95
95
|
"@stryke/path": "^0.26.3",
|
|
96
96
|
"defu": "^6.1.4",
|
|
97
|
-
"powerlines": "^0.38.
|
|
97
|
+
"powerlines": "^0.38.6"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
100
|
+
"@powerlines/plugin-plugin": "^0.12.190",
|
|
101
101
|
"@types/node": "^24.10.9"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": { "access": "public" },
|
|
104
104
|
"main": "./dist/index.cjs",
|
|
105
105
|
"module": "./dist/index.mjs",
|
|
106
106
|
"types": "./dist/index.d.cts",
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "f90d675c44d4323d447a46c8a4c833420543cc0a"
|
|
108
108
|
}
|