@powerlines/plugin-eslint 0.8.184 → 0.8.186
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 +4 -0
- package/dist/{src/index.cjs → index.cjs} +6 -6
- package/dist/{src/index.d.cts → index.d.cts} +3 -3
- package/dist/{src/index.d.mts → index.d.mts} +4 -4
- package/dist/{src/index.mjs → index.mjs} +3 -3
- package/dist/{packages/plugin-eslint/src/types/plugin.d.mts → types/plugin.d.cts} +3 -3
- package/dist/{packages/plugin-eslint/src/types/plugin.d.cts → types/plugin.d.mts} +3 -3
- package/package.json +3 -3
- package/dist/packages/plugin-eslint/src/helpers/index.cjs +0 -4
- /package/dist/{packages/plugin-eslint/src/helpers → helpers}/format-message.cjs +0 -0
- /package/dist/{packages/plugin-eslint/src/helpers → helpers}/format-message.d.cts +0 -0
- /package/dist/{packages/plugin-eslint/src/helpers → helpers}/format-message.d.mts +0 -0
- /package/dist/{packages/plugin-eslint/src/helpers → helpers}/format-message.mjs +0 -0
- /package/dist/{packages/plugin-eslint/src/helpers → helpers}/index.d.cts +0 -0
- /package/dist/{packages/plugin-eslint/src/helpers → helpers}/index.d.mts +0 -0
- /package/dist/{packages/plugin-eslint/src/helpers → helpers}/index.mjs +0 -0
- /package/dist/{packages/plugin-eslint/src/types → types}/index.cjs +0 -0
- /package/dist/{packages/plugin-eslint/src/types → types}/index.d.cts +0 -0
- /package/dist/{packages/plugin-eslint/src/types → types}/index.d.mts +0 -0
- /package/dist/{packages/plugin-eslint/src/types → types}/index.mjs +0 -0
- /package/dist/{packages/plugin-eslint/src/types → types}/plugin.cjs +0 -0
- /package/dist/{packages/plugin-eslint/src/types → types}/plugin.mjs +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const require_is_set_object = require('
|
|
3
|
-
const
|
|
4
|
-
require('
|
|
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');
|
|
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 }) =>
|
|
96
|
+
const output = results.filter(({ messages }) => messages?.length).map(({ messages, filePath }) => require_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 =
|
|
105
|
+
exports.MessageSeverity = require_helpers_format_message.MessageSeverity;
|
|
106
106
|
exports.default = src_default;
|
|
107
|
-
exports.formatMessage =
|
|
107
|
+
exports.formatMessage = require_helpers_format_message.formatMessage;
|
|
108
108
|
exports.plugin = plugin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "
|
|
2
|
-
import { Plugin } from "
|
|
3
|
-
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "
|
|
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";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "
|
|
2
|
-
import { Plugin } from "
|
|
3
|
-
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "
|
|
4
|
-
import "
|
|
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";
|
|
5
5
|
|
|
6
6
|
//#region src/index.d.ts
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isSetObject } from "
|
|
2
|
-
import { MessageSeverity, formatMessage } from "
|
|
3
|
-
import "
|
|
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";
|
|
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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { UserConfig } from "
|
|
2
|
-
import { ResolvedConfig } from "
|
|
3
|
-
import { PluginContext } from "
|
|
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 "
|
|
2
|
-
import { ResolvedConfig } from "
|
|
3
|
-
import { PluginContext } from "
|
|
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";
|
|
4
4
|
import { ESLint } from "eslint";
|
|
5
5
|
import { LegacyESLint } from "eslint/use-at-your-own-risk";
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-eslint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.186",
|
|
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.
|
|
108
|
+
"powerlines": "^0.37.56"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": { "@types/node": "^24.10.9" },
|
|
111
111
|
"publishConfig": { "access": "public" },
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "7af3632002c069b20d1ce8fc08866a8c52cb7256"
|
|
113
113
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|