@powerlines/plugin-eslint 0.8.164 → 0.8.165
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/index.cjs +1 -4
- package/dist/helpers/index.mjs +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/packages/powerlines/src/types/config.d.mts +3 -3
- package/dist/powerlines/src/types/config.d.cts +3 -3
- package/dist/types/index.d.mts +1 -2
- package/package.json +3 -3
- package/dist/helpers/index.d.cts +0 -2
- package/dist/helpers/index.d.mts +0 -2
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +0 -2
- package/dist/types/index.mjs +0 -1
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.mjs +0 -1
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
exports.MessageSeverity = require_helpers_format_message.MessageSeverity;
|
|
4
|
-
exports.formatMessage = require_helpers_format_message.formatMessage;
|
|
1
|
+
const require_format_message = require('./format-message.cjs');
|
package/dist/helpers/index.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_is_set_object = require('./node_modules/.pnpm/@stryke_type-checks@0.5.17/node_modules/@stryke/type-checks/dist/is-set-object.cjs');
|
|
3
|
-
const
|
|
3
|
+
const require_format_message = require('./helpers/format-message.cjs');
|
|
4
4
|
require('./helpers/index.cjs');
|
|
5
5
|
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
6
6
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
@@ -93,7 +93,7 @@ function plugin(options = {}) {
|
|
|
93
93
|
if ("loadESLint" in module$1) ESLint = await module$1.loadESLint({ useFlatConfig: this.config.lint.eslint.configFile ? (0, __stryke_path_find.findFileName)(this.config.lint.eslint.configFile).startsWith("eslint.config.") : true });
|
|
94
94
|
if (this.config.lint.eslint.fix) await ESLint.outputFixes(results);
|
|
95
95
|
if (this.config.lint.eslint.reportErrorsOnly) results = ESLint.getErrorResults(results);
|
|
96
|
-
const output = results.filter(({ messages }) => messages?.length).map(({ messages, filePath }) =>
|
|
96
|
+
const output = results.filter(({ messages }) => messages?.length).map(({ messages, filePath }) => require_format_message.formatMessage(this.config.projectRoot, messages, filePath)).join("\n");
|
|
97
97
|
if (this.config.lint.eslint.outputFile) await this.fs.write(this.config.lint.eslint.outputFile, output);
|
|
98
98
|
else this.log(__storm_software_config_tools_types.LogLevelLabel.INFO, output);
|
|
99
99
|
}
|
|
@@ -102,7 +102,7 @@ function plugin(options = {}) {
|
|
|
102
102
|
var src_default = plugin;
|
|
103
103
|
|
|
104
104
|
//#endregion
|
|
105
|
-
exports.MessageSeverity =
|
|
105
|
+
exports.MessageSeverity = require_format_message.MessageSeverity;
|
|
106
106
|
exports.default = src_default;
|
|
107
|
-
exports.formatMessage =
|
|
107
|
+
exports.formatMessage = require_format_message.formatMessage;
|
|
108
108
|
exports.plugin = plugin;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.cjs";
|
|
2
1
|
import { Plugin } from "./powerlines/src/types/plugin.cjs";
|
|
3
2
|
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./types/plugin.cjs";
|
|
3
|
+
import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.mjs";
|
|
2
1
|
import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
|
|
3
2
|
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
+
import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.mjs";
|
|
4
4
|
import "./types/index.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
|
@@ -297,14 +297,14 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
297
297
|
*/
|
|
298
298
|
configFile?: string;
|
|
299
299
|
/**
|
|
300
|
-
* Should the Powerlines
|
|
300
|
+
* Should the Powerlines processes automatically install missing package dependencies?
|
|
301
301
|
*
|
|
302
302
|
* @remarks
|
|
303
|
-
* This
|
|
303
|
+
* When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
|
|
304
304
|
*
|
|
305
305
|
* @defaultValue false
|
|
306
306
|
*/
|
|
307
|
-
|
|
307
|
+
autoInstall?: boolean;
|
|
308
308
|
/**
|
|
309
309
|
* Should the compiler processes skip any improvements that make use of cache?
|
|
310
310
|
*
|
|
@@ -297,14 +297,14 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
297
297
|
*/
|
|
298
298
|
configFile?: string;
|
|
299
299
|
/**
|
|
300
|
-
* Should the Powerlines
|
|
300
|
+
* Should the Powerlines processes automatically install missing package dependencies?
|
|
301
301
|
*
|
|
302
302
|
* @remarks
|
|
303
|
-
* This
|
|
303
|
+
* When set to `true`, Powerlines will attempt to install any missing dependencies using the package manager detected in the project (e.g., npm, yarn, pnpm). This can be useful for ensuring that all required packages are available during the build and preparation phases.
|
|
304
304
|
*
|
|
305
305
|
* @defaultValue false
|
|
306
306
|
*/
|
|
307
|
-
|
|
307
|
+
autoInstall?: boolean;
|
|
308
308
|
/**
|
|
309
309
|
* Should the compiler processes skip any improvements that make use of cache?
|
|
310
310
|
*
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./plugin.mjs";
|
|
2
|
-
export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
|
|
1
|
+
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./plugin.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-eslint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.165",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running ESLint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
"@stryke/path": "^0.24.3",
|
|
106
106
|
"defu": "^6.1.4",
|
|
107
107
|
"eslint": "^9.39.2",
|
|
108
|
-
"powerlines": "^0.37.
|
|
108
|
+
"powerlines": "^0.37.35"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": { "@types/node": "^24.10.8" },
|
|
111
111
|
"publishConfig": { "access": "public" },
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "65656903e05b8a85e4d46f7449a8c2bd8f90332e"
|
|
113
113
|
}
|
package/dist/helpers/index.d.cts
DELETED
package/dist/helpers/index.d.mts
DELETED
package/dist/types/index.cjs
DELETED
|
File without changes
|
package/dist/types/index.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./plugin.cjs";
|
|
2
|
-
export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
|
package/dist/types/index.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/types/plugin.cjs
DELETED
|
File without changes
|
package/dist/types/plugin.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|