@powerlines/plugin-eslint 0.8.183 → 0.8.184

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.
Files changed (22) hide show
  1. package/dist/packages/plugin-eslint/src/helpers/index.cjs +4 -0
  2. package/dist/{types/plugin.d.mts → packages/plugin-eslint/src/types/plugin.d.cts} +3 -3
  3. package/dist/{types/plugin.d.cts → packages/plugin-eslint/src/types/plugin.d.mts} +3 -3
  4. package/dist/{index.cjs → src/index.cjs} +6 -6
  5. package/dist/{index.d.cts → src/index.d.cts} +3 -3
  6. package/dist/{index.d.mts → src/index.d.mts} +4 -4
  7. package/dist/{index.mjs → src/index.mjs} +3 -3
  8. package/package.json +3 -3
  9. package/dist/helpers/index.cjs +0 -4
  10. /package/dist/{helpers → packages/plugin-eslint/src/helpers}/format-message.cjs +0 -0
  11. /package/dist/{helpers → packages/plugin-eslint/src/helpers}/format-message.d.cts +0 -0
  12. /package/dist/{helpers → packages/plugin-eslint/src/helpers}/format-message.d.mts +0 -0
  13. /package/dist/{helpers → packages/plugin-eslint/src/helpers}/format-message.mjs +0 -0
  14. /package/dist/{helpers → packages/plugin-eslint/src/helpers}/index.d.cts +0 -0
  15. /package/dist/{helpers → packages/plugin-eslint/src/helpers}/index.d.mts +0 -0
  16. /package/dist/{helpers → packages/plugin-eslint/src/helpers}/index.mjs +0 -0
  17. /package/dist/{types → packages/plugin-eslint/src/types}/index.cjs +0 -0
  18. /package/dist/{types → packages/plugin-eslint/src/types}/index.d.cts +0 -0
  19. /package/dist/{types → packages/plugin-eslint/src/types}/index.d.mts +0 -0
  20. /package/dist/{types → packages/plugin-eslint/src/types}/index.mjs +0 -0
  21. /package/dist/{types → packages/plugin-eslint/src/types}/plugin.cjs +0 -0
  22. /package/dist/{types → packages/plugin-eslint/src/types}/plugin.mjs +0 -0
@@ -0,0 +1,4 @@
1
+ const require_packages_plugin_eslint_src_helpers_format_message = require('./format-message.cjs');
2
+
3
+ exports.MessageSeverity = require_packages_plugin_eslint_src_helpers_format_message.MessageSeverity;
4
+ exports.formatMessage = require_packages_plugin_eslint_src_helpers_format_message.formatMessage;
@@ -1,6 +1,6 @@
1
- import { UserConfig } from "../packages/powerlines/src/types/config.mjs";
2
- import { ResolvedConfig } from "../packages/powerlines/src/types/resolved.mjs";
3
- import { PluginContext } from "../packages/powerlines/src/types/context.mjs";
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
4
  import { ESLint } from "eslint";
5
5
  import { LegacyESLint } from "eslint/use-at-your-own-risk";
6
6
 
@@ -1,6 +1,6 @@
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";
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
4
  import { ESLint } from "eslint";
5
5
  import { LegacyESLint } from "eslint/use-at-your-own-risk";
6
6
 
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_is_set_object = require('./node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.cjs');
3
- const require_helpers_format_message = require('./helpers/format-message.cjs');
4
- require('./helpers/index.cjs');
2
+ const require_is_set_object = require('../node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.cjs');
3
+ const require_packages_plugin_eslint_src_helpers_format_message = require('../packages/plugin-eslint/src/helpers/format-message.cjs');
4
+ require('../packages/plugin-eslint/src/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");
7
7
  let __stryke_fs_get_parent_path = require("@stryke/fs/get-parent-path");
@@ -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 }) => require_helpers_format_message.formatMessage(this.config.projectRoot, messages, filePath)).join("\n");
96
+ const output = results.filter(({ messages }) => messages?.length).map(({ messages, filePath }) => require_packages_plugin_eslint_src_helpers_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 = require_helpers_format_message.MessageSeverity;
105
+ exports.MessageSeverity = require_packages_plugin_eslint_src_helpers_format_message.MessageSeverity;
106
106
  exports.default = src_default;
107
- exports.formatMessage = require_helpers_format_message.formatMessage;
107
+ exports.formatMessage = require_packages_plugin_eslint_src_helpers_format_message.formatMessage;
108
108
  exports.plugin = plugin;
@@ -1,6 +1,6 @@
1
- import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.cjs";
2
- import { Plugin } from "./powerlines/src/types/plugin.cjs";
3
- import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./types/plugin.cjs";
1
+ import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "../packages/plugin-eslint/src/helpers/format-message.cjs";
2
+ import { Plugin } from "../powerlines/src/types/plugin.cjs";
3
+ import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "../packages/plugin-eslint/src/types/plugin.cjs";
4
4
 
5
5
  //#region src/index.d.ts
6
6
 
@@ -1,7 +1,7 @@
1
- import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.mjs";
2
- import { Plugin } from "./packages/powerlines/src/types/plugin.mjs";
3
- import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./types/plugin.mjs";
4
- import "./types/index.mjs";
1
+ import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "../packages/plugin-eslint/src/helpers/format-message.mjs";
2
+ import { Plugin } from "../packages/powerlines/src/types/plugin.mjs";
3
+ import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "../packages/plugin-eslint/src/types/plugin.mjs";
4
+ import "../packages/plugin-eslint/src/types/index.mjs";
5
5
 
6
6
  //#region src/index.d.ts
7
7
 
@@ -1,6 +1,6 @@
1
- import { isSetObject } from "./node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.mjs";
2
- import { MessageSeverity, formatMessage } from "./helpers/format-message.mjs";
3
- import "./helpers/index.mjs";
1
+ import { isSetObject } from "../node_modules/.pnpm/@stryke_type-checks@0.5.19/node_modules/@stryke/type-checks/dist/is-set-object.mjs";
2
+ import { MessageSeverity, formatMessage } from "../packages/plugin-eslint/src/helpers/format-message.mjs";
3
+ import "../packages/plugin-eslint/src/helpers/index.mjs";
4
4
  import { LogLevelLabel } from "@storm-software/config-tools/types";
5
5
  import { existsSync } from "@stryke/fs/exists";
6
6
  import { getParentPath } from "@stryke/fs/get-parent-path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-eslint",
3
- "version": "0.8.183",
3
+ "version": "0.8.184",
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.25.3",
106
106
  "defu": "^6.1.4",
107
107
  "eslint": "^9.39.2",
108
- "powerlines": "^0.37.53"
108
+ "powerlines": "^0.37.54"
109
109
  },
110
110
  "devDependencies": { "@types/node": "^24.10.9" },
111
111
  "publishConfig": { "access": "public" },
112
- "gitHead": "5f1905e411abd4cb78962bc0cae6ddaf19ffd9bd"
112
+ "gitHead": "0030560b882e0e314b3085cc9607bc387e6bcba3"
113
113
  }
@@ -1,4 +0,0 @@
1
- const require_helpers_format_message = require('./format-message.cjs');
2
-
3
- exports.MessageSeverity = require_helpers_format_message.MessageSeverity;
4
- exports.formatMessage = require_helpers_format_message.formatMessage;