@powerlines/plugin-eslint 0.8.382 → 0.8.384

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/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>🔌 Powerlines</b> monorepo. Powerlines is the "
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.8.352-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.8.382-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/powerlines)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/powerlines/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -4,8 +4,8 @@ let _stryke_path_normalize = require("@stryke/path/normalize");
4
4
 
5
5
  //#region src/helpers/format-message.ts
6
6
  let MessageSeverity = /* @__PURE__ */ function(MessageSeverity) {
7
- MessageSeverity[MessageSeverity["Warning"] = 1] = "Warning";
8
- MessageSeverity[MessageSeverity["Error"] = 2] = "Error";
7
+ MessageSeverity[MessageSeverity["WARNING"] = 1] = "WARNING";
8
+ MessageSeverity[MessageSeverity["ERROR"] = 2] = "ERROR";
9
9
  return MessageSeverity;
10
10
  }({});
11
11
  function formatMessage(dir, messages, filePath) {
@@ -16,7 +16,7 @@ function formatMessage(dir, messages, filePath) {
16
16
  const { message, severity, line, column, ruleId } = messages[i];
17
17
  output += "\n";
18
18
  if (line && column) output = `${output + line.toString()}:${column.toString()} `;
19
- if (severity === MessageSeverity.Warning) output += `Warning: `;
19
+ if (severity === MessageSeverity.WARNING) output += `Warning: `;
20
20
  else output += `Error: `;
21
21
  output += message;
22
22
  if (ruleId) output += ` ${ruleId}`;
@@ -1,7 +1,7 @@
1
1
  //#region src/helpers/format-message.d.ts
2
2
  declare enum MessageSeverity {
3
- Warning = 1,
4
- Error = 2
3
+ WARNING = 1,
4
+ ERROR = 2
5
5
  }
6
6
  interface LintMessage {
7
7
  ruleId: string | null;
@@ -1,7 +1,7 @@
1
1
  //#region src/helpers/format-message.d.ts
2
2
  declare enum MessageSeverity {
3
- Warning = 1,
4
- Error = 2
3
+ WARNING = 1,
4
+ ERROR = 2
5
5
  }
6
6
  interface LintMessage {
7
7
  ruleId: string | null;
@@ -3,8 +3,8 @@ import { correctPath } from "@stryke/path/normalize";
3
3
 
4
4
  //#region src/helpers/format-message.ts
5
5
  let MessageSeverity = /* @__PURE__ */ function(MessageSeverity) {
6
- MessageSeverity[MessageSeverity["Warning"] = 1] = "Warning";
7
- MessageSeverity[MessageSeverity["Error"] = 2] = "Error";
6
+ MessageSeverity[MessageSeverity["WARNING"] = 1] = "WARNING";
7
+ MessageSeverity[MessageSeverity["ERROR"] = 2] = "ERROR";
8
8
  return MessageSeverity;
9
9
  }({});
10
10
  function formatMessage(dir, messages, filePath) {
@@ -15,7 +15,7 @@ function formatMessage(dir, messages, filePath) {
15
15
  const { message, severity, line, column, ruleId } = messages[i];
16
16
  output += "\n";
17
17
  if (line && column) output = `${output + line.toString()}:${column.toString()} `;
18
- if (severity === MessageSeverity.Warning) output += `Warning: `;
18
+ if (severity === MessageSeverity.WARNING) output += `Warning: `;
19
19
  else output += `Error: `;
20
20
  output += message;
21
21
  if (ruleId) output += ` ${ruleId}`;
@@ -1 +1 @@
1
- {"version":3,"file":"format-message.mjs","names":[],"sources":["../../src/helpers/format-message.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 { relative } from \"@stryke/path/find\";\nimport { correctPath } from \"@stryke/path/normalize\";\n\nexport enum MessageSeverity {\n Warning = 1,\n Error = 2\n}\n\nexport interface LintMessage {\n ruleId: string | null;\n severity: MessageSeverity;\n message: string;\n line: number;\n column: number;\n}\n\nexport function formatMessage(\n dir: string,\n messages: LintMessage[],\n filePath: string\n): string {\n let fileName = correctPath(relative(dir, filePath));\n if (!fileName.startsWith(\".\")) {\n fileName = `./${fileName}`;\n }\n\n let output = `\\n${fileName}`;\n\n for (let i = 0; i < messages.length; i++) {\n const { message, severity, line, column, ruleId } = messages[i]!;\n\n output += \"\\n\";\n\n if (line && column) {\n output = `${output + line.toString()}:${column.toString()} `;\n }\n\n if (severity === MessageSeverity.Warning) {\n output += `Warning: `;\n } else {\n output += `Error: `;\n }\n\n output += message;\n\n if (ruleId) {\n output += ` ${ruleId}`;\n }\n }\n\n return output;\n}\n"],"mappings":";;;;AAqBA,IAAY,kBAAL;AACL;AACA;;KACD;AAUD,SAAgB,cACd,KACA,UACA,UACQ;CACR,IAAI,WAAW,YAAY,SAAS,KAAK,SAAS,CAAC;AACnD,KAAI,CAAC,SAAS,WAAW,IAAI,CAC3B,YAAW,KAAK;CAGlB,IAAI,SAAS,KAAK;AAElB,MAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;EACxC,MAAM,EAAE,SAAS,UAAU,MAAM,QAAQ,WAAW,SAAS;AAE7D,YAAU;AAEV,MAAI,QAAQ,OACV,UAAS,GAAG,SAAS,KAAK,UAAU,CAAC,GAAG,OAAO,UAAU,CAAC;AAG5D,MAAI,aAAa,gBAAgB,QAC/B,WAAU;MAEV,WAAU;AAGZ,YAAU;AAEV,MAAI,OACF,WAAU,KAAK;;AAInB,QAAO"}
1
+ {"version":3,"file":"format-message.mjs","names":[],"sources":["../../src/helpers/format-message.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 { relative } from \"@stryke/path/find\";\nimport { correctPath } from \"@stryke/path/normalize\";\n\nexport enum MessageSeverity {\n WARNING = 1,\n ERROR = 2\n}\n\nexport interface LintMessage {\n ruleId: string | null;\n severity: MessageSeverity;\n message: string;\n line: number;\n column: number;\n}\n\nexport function formatMessage(\n dir: string,\n messages: LintMessage[],\n filePath: string\n): string {\n let fileName = correctPath(relative(dir, filePath));\n if (!fileName.startsWith(\".\")) {\n fileName = `./${fileName}`;\n }\n\n let output = `\\n${fileName}`;\n\n for (let i = 0; i < messages.length; i++) {\n const { message, severity, line, column, ruleId } = messages[i]!;\n\n output += \"\\n\";\n\n if (line && column) {\n output = `${output + line.toString()}:${column.toString()} `;\n }\n\n if (severity === MessageSeverity.WARNING) {\n output += `Warning: `;\n } else {\n output += `Error: `;\n }\n\n output += message;\n\n if (ruleId) {\n output += ` ${ruleId}`;\n }\n }\n\n return output;\n}\n"],"mappings":";;;;AAqBA,IAAY,kBAAL;AACL;AACA;;KACD;AAUD,SAAgB,cACd,KACA,UACA,UACQ;CACR,IAAI,WAAW,YAAY,SAAS,KAAK,SAAS,CAAC;AACnD,KAAI,CAAC,SAAS,WAAW,IAAI,CAC3B,YAAW,KAAK;CAGlB,IAAI,SAAS,KAAK;AAElB,MAAK,IAAI,IAAI,GAAG,IAAI,SAAS,QAAQ,KAAK;EACxC,MAAM,EAAE,SAAS,UAAU,MAAM,QAAQ,WAAW,SAAS;AAE7D,YAAU;AAEV,MAAI,QAAQ,OACV,UAAS,GAAG,SAAS,KAAK,UAAU,CAAC,GAAG,OAAO,UAAU,CAAC;AAG5D,MAAI,aAAa,gBAAgB,QAC/B,WAAU;MAEV,WAAU;AAGZ,YAAU;AAEV,MAAI,OACF,WAAU,KAAK;;AAInB,QAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-eslint",
3
- "version": "0.8.382",
3
+ "version": "0.8.384",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for running ESLint on the codebase.",
6
6
  "keywords": ["eslint", "powerlines", "storm-software", "powerlines-plugin"],
@@ -117,15 +117,15 @@
117
117
  "types": "./dist/index.d.cts",
118
118
  "files": ["dist/**/*"],
119
119
  "dependencies": {
120
- "@storm-software/config-tools": "^1.189.46",
121
- "@stryke/fs": "^0.33.63",
122
- "@stryke/path": "^0.27.2",
123
- "@stryke/type-checks": "^0.5.41",
120
+ "@storm-software/config-tools": "^1.189.57",
121
+ "@stryke/fs": "^0.33.64",
122
+ "@stryke/path": "^0.27.3",
123
+ "@stryke/type-checks": "^0.6.0",
124
124
  "defu": "^6.1.4",
125
125
  "eslint": "^9.39.4",
126
- "powerlines": "^0.42.19"
126
+ "powerlines": "^0.42.21"
127
127
  },
128
128
  "devDependencies": { "@types/node": "^25.5.0" },
129
129
  "publishConfig": { "access": "public" },
130
- "gitHead": "d500b0c65a5440cf3a483c6e1b329640dba89568"
130
+ "gitHead": "e4cf83423cc9df85f747265b04d051bdfd4d1156"
131
131
  }
@@ -1,3 +0,0 @@
1
- import "node:module";
2
-
3
- export { };