@powerlines/plugin-eslint 0.8.257 → 0.8.259

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 (77) hide show
  1. package/dist/helpers/format-message.cjs +27 -3
  2. package/dist/helpers/format-message.d.cts +18 -2
  3. package/dist/helpers/format-message.d.cts.map +1 -0
  4. package/dist/helpers/format-message.d.mts +18 -2
  5. package/dist/helpers/format-message.d.mts.map +1 -0
  6. package/dist/helpers/format-message.mjs +27 -2
  7. package/dist/helpers/format-message.mjs.map +1 -0
  8. package/dist/helpers/index.cjs +3 -4
  9. package/dist/helpers/index.d.cts +1 -2
  10. package/dist/helpers/index.d.mts +1 -2
  11. package/dist/helpers/index.mjs +1 -2
  12. package/dist/index.cjs +7 -173
  13. package/dist/index.d.cts +4 -4
  14. package/dist/index.d.cts.map +1 -1
  15. package/dist/index.d.mts +4 -4
  16. package/dist/index.d.mts.map +1 -1
  17. package/dist/index.mjs +3 -169
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/get-object-tag.cjs +15 -0
  20. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/get-object-tag.mjs +15 -0
  21. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/get-object-tag.mjs.map +1 -0
  22. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-empty.cjs +20 -0
  23. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-empty.mjs +21 -0
  24. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-empty.mjs.map +1 -0
  25. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-non-null-object.cjs +16 -0
  26. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs +17 -0
  27. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-non-null-object.mjs.map +1 -0
  28. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-null.cjs +12 -0
  29. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-null.mjs +12 -0
  30. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-null.mjs.map +1 -0
  31. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-object.cjs +19 -0
  32. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-object.mjs +20 -0
  33. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-object.mjs.map +1 -0
  34. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-plain-object.cjs +63 -0
  35. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-plain-object.mjs +64 -0
  36. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-plain-object.mjs.map +1 -0
  37. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-set-object.cjs +19 -0
  38. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-set-object.mjs +20 -0
  39. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-set-object.mjs.map +1 -0
  40. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-set.cjs +19 -0
  41. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-set.mjs +20 -0
  42. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-set.mjs.map +1 -0
  43. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-undefined.cjs +8 -0
  44. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-undefined.mjs +8 -0
  45. package/dist/node_modules/.pnpm/@stryke_type-checks@0.5.23/node_modules/@stryke/type-checks/dist/is-undefined.mjs.map +1 -0
  46. package/dist/types/index.cjs +0 -2
  47. package/dist/types/index.d.cts +1 -2
  48. package/dist/types/index.d.mts +1 -2
  49. package/dist/types/index.mjs +0 -3
  50. package/dist/types/plugin.cjs +0 -1
  51. package/dist/types/plugin.d.cts +71 -2
  52. package/dist/types/plugin.d.cts.map +1 -0
  53. package/dist/types/plugin.d.mts +71 -2
  54. package/dist/types/plugin.d.mts.map +1 -0
  55. package/dist/types/plugin.mjs +0 -2
  56. package/package.json +3 -3
  57. package/dist/format-message-B0zrT_tN.d.cts +0 -18
  58. package/dist/format-message-B0zrT_tN.d.cts.map +0 -1
  59. package/dist/format-message-Bt4W9wqe.cjs +0 -38
  60. package/dist/format-message-CKuUKX7C.mjs +0 -28
  61. package/dist/format-message-CKuUKX7C.mjs.map +0 -1
  62. package/dist/format-message-Ck01aLfz.d.mts +0 -18
  63. package/dist/format-message-Ck01aLfz.d.mts.map +0 -1
  64. package/dist/helpers-B15z10jN.mjs +0 -1
  65. package/dist/helpers-LF26RHol.cjs +0 -0
  66. package/dist/index-9iG2qHLe.d.mts +0 -1
  67. package/dist/index-D-CYNcT9.d.mts +0 -1
  68. package/dist/index-D4ELpJXS.d.cts +0 -1
  69. package/dist/index-DLoAMD9J.d.cts +0 -1
  70. package/dist/plugin-0NJpq6om.d.cts +0 -71
  71. package/dist/plugin-0NJpq6om.d.cts.map +0 -1
  72. package/dist/plugin-CaqHREhr.d.mts +0 -71
  73. package/dist/plugin-CaqHREhr.d.mts.map +0 -1
  74. package/dist/plugin-ifZVa20V.mjs +0 -1
  75. package/dist/plugin-pBKbb5K9.cjs +0 -0
  76. package/dist/types-U3zd8PTP.mjs +0 -1
  77. package/dist/types-o3zWarRp.cjs +0 -0
@@ -1,2 +1,71 @@
1
- import { a as __ΩESLintPluginContext, c as __ΩESLintPluginUserConfig, i as ESLintPluginUserConfig, n as ESLintPluginOptions, o as __ΩESLintPluginOptions, r as ESLintPluginResolvedConfig, s as __ΩESLintPluginResolvedConfig, t as ESLintPluginContext } from "../plugin-0NJpq6om.cjs";
2
- export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
1
+ import { ESLint } from "eslint";
2
+ import { LegacyESLint } from "eslint/use-at-your-own-risk";
3
+ import { UserConfig } from "powerlines/types/config";
4
+ import { PluginContext } from "powerlines/types/context";
5
+ import { ResolvedConfig } from "powerlines/types/resolved";
6
+
7
+ //#region src/types/plugin.d.ts
8
+ interface ESLintPluginOptions {
9
+ /**
10
+ * The path to the ESLint configuration file.
11
+ */
12
+ configFile?: string;
13
+ /**
14
+ * Whether to report errors only
15
+ */
16
+ reportErrorsOnly?: boolean;
17
+ /**
18
+ * The maximum number of warnings to allow before failing the process
19
+ */
20
+ maxWarnings?: number;
21
+ /**
22
+ * The output file to write the results to.
23
+ */
24
+ outputFile?: string | null;
25
+ /**
26
+ * Whether to automatically fix problems
27
+ *
28
+ * @defaultValue true
29
+ */
30
+ fix?: boolean;
31
+ /**
32
+ * The type of ESLint configuration to use.
33
+ */
34
+ type?: "base" | "recommended" | "strict";
35
+ /**
36
+ * Options to be passed to the ESLint generator.
37
+ *
38
+ * @remarks
39
+ * These options will be override any other values passed to the ESLint generator.
40
+ */
41
+ override?: Partial<ESLint.Options>;
42
+ }
43
+ interface ESLintPluginUserConfig extends UserConfig {
44
+ /**
45
+ * Options for the ESLint plugin.
46
+ */
47
+ lint?: {
48
+ eslint?: ESLintPluginOptions;
49
+ };
50
+ }
51
+ interface ESLintPluginResolvedConfig extends ResolvedConfig {
52
+ /**
53
+ * Options for the ESLint plugin.
54
+ */
55
+ lint: {
56
+ eslint: ESLintPluginOptions;
57
+ };
58
+ }
59
+ type ESLintPluginContext<TResolvedConfig extends ESLintPluginResolvedConfig = ESLintPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
60
+ /**
61
+ * The initialized ESLint application.
62
+ */
63
+ eslint: ESLint | LegacyESLint;
64
+ };
65
+ declare type __ΩESLintPluginOptions = any[];
66
+ declare type __ΩESLintPluginUserConfig = any[];
67
+ declare type __ΩESLintPluginResolvedConfig = any[];
68
+ declare type __ΩESLintPluginContext = any[];
69
+ //#endregion
70
+ export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
71
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;UAyBiB,mBAAA;EAAA;AA0CjB;AASA;EASY,UAAA,CAAA,EAAA,MAAA;EAER;;;EACA,gBAAA,CAAA,EAAA,OAAA;EAIM;;;;;;;;;;;;;;;;;;;;;;;;aA5BG,QAAQ,MAAA,CAAO;;UAGX,sBAAA,SAA+B;;;;;aAKnC;;;UAII,0BAAA,SAAmC;;;;;YAKxC;;;KAIA,4CAER,6BAA6B,8BAC7B,cAAc;;;;UAIR,SAAa"}
@@ -1,2 +1,71 @@
1
- import { a as __ΩESLintPluginContext, c as __ΩESLintPluginUserConfig, i as ESLintPluginUserConfig, n as ESLintPluginOptions, o as __ΩESLintPluginOptions, r as ESLintPluginResolvedConfig, s as __ΩESLintPluginResolvedConfig, t as ESLintPluginContext } from "../plugin-CaqHREhr.mjs";
2
- export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
1
+ import { ESLint } from "eslint";
2
+ import { LegacyESLint } from "eslint/use-at-your-own-risk";
3
+ import { UserConfig } from "powerlines/types/config";
4
+ import { PluginContext } from "powerlines/types/context";
5
+ import { ResolvedConfig } from "powerlines/types/resolved";
6
+
7
+ //#region src/types/plugin.d.ts
8
+ interface ESLintPluginOptions {
9
+ /**
10
+ * The path to the ESLint configuration file.
11
+ */
12
+ configFile?: string;
13
+ /**
14
+ * Whether to report errors only
15
+ */
16
+ reportErrorsOnly?: boolean;
17
+ /**
18
+ * The maximum number of warnings to allow before failing the process
19
+ */
20
+ maxWarnings?: number;
21
+ /**
22
+ * The output file to write the results to.
23
+ */
24
+ outputFile?: string | null;
25
+ /**
26
+ * Whether to automatically fix problems
27
+ *
28
+ * @defaultValue true
29
+ */
30
+ fix?: boolean;
31
+ /**
32
+ * The type of ESLint configuration to use.
33
+ */
34
+ type?: "base" | "recommended" | "strict";
35
+ /**
36
+ * Options to be passed to the ESLint generator.
37
+ *
38
+ * @remarks
39
+ * These options will be override any other values passed to the ESLint generator.
40
+ */
41
+ override?: Partial<ESLint.Options>;
42
+ }
43
+ interface ESLintPluginUserConfig extends UserConfig {
44
+ /**
45
+ * Options for the ESLint plugin.
46
+ */
47
+ lint?: {
48
+ eslint?: ESLintPluginOptions;
49
+ };
50
+ }
51
+ interface ESLintPluginResolvedConfig extends ResolvedConfig {
52
+ /**
53
+ * Options for the ESLint plugin.
54
+ */
55
+ lint: {
56
+ eslint: ESLintPluginOptions;
57
+ };
58
+ }
59
+ type ESLintPluginContext<TResolvedConfig extends ESLintPluginResolvedConfig = ESLintPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
60
+ /**
61
+ * The initialized ESLint application.
62
+ */
63
+ eslint: ESLint | LegacyESLint;
64
+ };
65
+ declare type __ΩESLintPluginOptions = any[];
66
+ declare type __ΩESLintPluginUserConfig = any[];
67
+ declare type __ΩESLintPluginResolvedConfig = any[];
68
+ declare type __ΩESLintPluginContext = any[];
69
+ //#endregion
70
+ export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
71
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;UAyBiB,mBAAA;EAAA;AA0CjB;AASA;EASY,UAAA,CAAA,EAAA,MAAA;EAER;;;EACA,gBAAA,CAAA,EAAA,OAAA;EAIM;;;;;;;;;;;;;;;;;;;;;;;;aA5BG,QAAQ,MAAA,CAAO;;UAGX,sBAAA,SAA+B;;;;;aAKnC;;;UAII,0BAAA,SAAmC;;;;;YAKxC;;;KAIA,4CAER,6BAA6B,8BAC7B,cAAc;;;;UAIR,SAAa"}
@@ -1,3 +1 @@
1
- import "../plugin-ifZVa20V.mjs";
2
-
3
1
  export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-eslint",
3
- "version": "0.8.257",
3
+ "version": "0.8.259",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for running ESLint on the codebase.",
6
6
  "repository": {
@@ -119,12 +119,12 @@
119
119
  "@stryke/path": "^0.26.4",
120
120
  "defu": "^6.1.4",
121
121
  "eslint": "^9.39.2",
122
- "powerlines": "^0.38.20"
122
+ "powerlines": "^0.38.22"
123
123
  },
124
124
  "devDependencies": { "@types/node": "^24.10.9" },
125
125
  "publishConfig": { "access": "public" },
126
126
  "main": "./dist/index.cjs",
127
127
  "module": "./dist/index.mjs",
128
128
  "types": "./dist/index.d.cts",
129
- "gitHead": "54a89805dd69f77013ebbd3282232563d7af4e7b"
129
+ "gitHead": "02ca3097aeae5f5bb4838b4263e8cf7cc44fa3bd"
130
130
  }
@@ -1,18 +0,0 @@
1
- //#region src/helpers/format-message.d.ts
2
- declare enum MessageSeverity {
3
- Warning = 1,
4
- Error = 2,
5
- }
6
- interface LintMessage {
7
- ruleId: string | null;
8
- severity: MessageSeverity;
9
- message: string;
10
- line: number;
11
- column: number;
12
- }
13
- declare function formatMessage(dir: string, messages: LintMessage[], filePath: string): string;
14
- declare type __ΩMessageSeverity = any[];
15
- declare type __ΩLintMessage = any[];
16
- //#endregion
17
- export { formatMessage as a, __ΩMessageSeverity as i, MessageSeverity as n, __ΩLintMessage as r, LintMessage as t };
18
- //# sourceMappingURL=format-message-B0zrT_tN.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-message-B0zrT_tN.d.cts","names":[],"sources":["../src/helpers/format-message.ts"],"sourcesContent":[],"mappings":";aAqBY,eAAA;EAAA,OAAA,GAAA,CAAA;EAKK,KAAA,GAAA,CAAA;AAQjB;UARiB,WAAA;;YAEL;;;;;iBAMI,aAAA,wBAEJ"}
@@ -1,38 +0,0 @@
1
- let __stryke_path_find = require("@stryke/path/find");
2
- let __stryke_path_normalize = require("@stryke/path/normalize");
3
-
4
- //#region src/helpers/format-message.ts
5
- let MessageSeverity = /* @__PURE__ */ function(MessageSeverity$1) {
6
- MessageSeverity$1[MessageSeverity$1["Warning"] = 1] = "Warning";
7
- MessageSeverity$1[MessageSeverity$1["Error"] = 2] = "Error";
8
- return MessageSeverity$1;
9
- }({});
10
- function formatMessage(dir, messages, filePath) {
11
- let fileName = (0, __stryke_path_normalize.correctPath)((0, __stryke_path_find.relative)(dir, filePath));
12
- if (!fileName.startsWith(".")) fileName = `./${fileName}`;
13
- let output = `\n${fileName}`;
14
- for (let i = 0; i < messages.length; i++) {
15
- const { message, severity, line, column, ruleId } = messages[i];
16
- output += "\n";
17
- if (line && column) output = `${output + line.toString()}:${column.toString()} `;
18
- if (severity === MessageSeverity.Warning) output += `Warning: `;
19
- else output += `Error: `;
20
- output += message;
21
- if (ruleId) output += ` ${ruleId}`;
22
- }
23
- return output;
24
- }
25
-
26
- //#endregion
27
- Object.defineProperty(exports, 'MessageSeverity', {
28
- enumerable: true,
29
- get: function () {
30
- return MessageSeverity;
31
- }
32
- });
33
- Object.defineProperty(exports, 'formatMessage', {
34
- enumerable: true,
35
- get: function () {
36
- return formatMessage;
37
- }
38
- });
@@ -1,28 +0,0 @@
1
- import { relative } from "@stryke/path/find";
2
- import { correctPath } from "@stryke/path/normalize";
3
-
4
- //#region src/helpers/format-message.ts
5
- let MessageSeverity = /* @__PURE__ */ function(MessageSeverity$1) {
6
- MessageSeverity$1[MessageSeverity$1["Warning"] = 1] = "Warning";
7
- MessageSeverity$1[MessageSeverity$1["Error"] = 2] = "Error";
8
- return MessageSeverity$1;
9
- }({});
10
- function formatMessage(dir, messages, filePath) {
11
- let fileName = correctPath(relative(dir, filePath));
12
- if (!fileName.startsWith(".")) fileName = `./${fileName}`;
13
- let output = `\n${fileName}`;
14
- for (let i = 0; i < messages.length; i++) {
15
- const { message, severity, line, column, ruleId } = messages[i];
16
- output += "\n";
17
- if (line && column) output = `${output + line.toString()}:${column.toString()} `;
18
- if (severity === MessageSeverity.Warning) output += `Warning: `;
19
- else output += `Error: `;
20
- output += message;
21
- if (ruleId) output += ` ${ruleId}`;
22
- }
23
- return output;
24
- }
25
-
26
- //#endregion
27
- export { formatMessage as n, MessageSeverity as t };
28
- //# sourceMappingURL=format-message-CKuUKX7C.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-message-CKuUKX7C.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,8DAAL;AACL;AACA;;;AAWF,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,18 +0,0 @@
1
- //#region src/helpers/format-message.d.ts
2
- declare enum MessageSeverity {
3
- Warning = 1,
4
- Error = 2,
5
- }
6
- interface LintMessage {
7
- ruleId: string | null;
8
- severity: MessageSeverity;
9
- message: string;
10
- line: number;
11
- column: number;
12
- }
13
- declare function formatMessage(dir: string, messages: LintMessage[], filePath: string): string;
14
- declare type __ΩMessageSeverity = any[];
15
- declare type __ΩLintMessage = any[];
16
- //#endregion
17
- export { formatMessage as a, __ΩMessageSeverity as i, MessageSeverity as n, __ΩLintMessage as r, LintMessage as t };
18
- //# sourceMappingURL=format-message-Ck01aLfz.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"format-message-Ck01aLfz.d.mts","names":[],"sources":["../src/helpers/format-message.ts"],"sourcesContent":[],"mappings":";aAqBY,eAAA;EAAA,OAAA,GAAA,CAAA;EAKK,KAAA,GAAA,CAAA;AAQjB;UARiB,WAAA;;YAEL;;;;;iBAMI,aAAA,wBAEJ"}
@@ -1 +0,0 @@
1
- export { };
File without changes
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export { };
@@ -1,71 +0,0 @@
1
- import { ESLint } from "eslint";
2
- import { LegacyESLint } from "eslint/use-at-your-own-risk";
3
- import { UserConfig } from "powerlines/types/config";
4
- import { PluginContext } from "powerlines/types/context";
5
- import { ResolvedConfig } from "powerlines/types/resolved";
6
-
7
- //#region src/types/plugin.d.ts
8
- interface ESLintPluginOptions {
9
- /**
10
- * The path to the ESLint configuration file.
11
- */
12
- configFile?: string;
13
- /**
14
- * Whether to report errors only
15
- */
16
- reportErrorsOnly?: boolean;
17
- /**
18
- * The maximum number of warnings to allow before failing the process
19
- */
20
- maxWarnings?: number;
21
- /**
22
- * The output file to write the results to.
23
- */
24
- outputFile?: string | null;
25
- /**
26
- * Whether to automatically fix problems
27
- *
28
- * @defaultValue true
29
- */
30
- fix?: boolean;
31
- /**
32
- * The type of ESLint configuration to use.
33
- */
34
- type?: "base" | "recommended" | "strict";
35
- /**
36
- * Options to be passed to the ESLint generator.
37
- *
38
- * @remarks
39
- * These options will be override any other values passed to the ESLint generator.
40
- */
41
- override?: Partial<ESLint.Options>;
42
- }
43
- interface ESLintPluginUserConfig extends UserConfig {
44
- /**
45
- * Options for the ESLint plugin.
46
- */
47
- lint?: {
48
- eslint?: ESLintPluginOptions;
49
- };
50
- }
51
- interface ESLintPluginResolvedConfig extends ResolvedConfig {
52
- /**
53
- * Options for the ESLint plugin.
54
- */
55
- lint: {
56
- eslint: ESLintPluginOptions;
57
- };
58
- }
59
- type ESLintPluginContext<TResolvedConfig extends ESLintPluginResolvedConfig = ESLintPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
60
- /**
61
- * The initialized ESLint application.
62
- */
63
- eslint: ESLint | LegacyESLint;
64
- };
65
- declare type __ΩESLintPluginOptions = any[];
66
- declare type __ΩESLintPluginUserConfig = any[];
67
- declare type __ΩESLintPluginResolvedConfig = any[];
68
- declare type __ΩESLintPluginContext = any[];
69
- //#endregion
70
- export { __ΩESLintPluginContext as a, __ΩESLintPluginUserConfig as c, ESLintPluginUserConfig as i, ESLintPluginOptions as n, __ΩESLintPluginOptions as o, ESLintPluginResolvedConfig as r, __ΩESLintPluginResolvedConfig as s, ESLintPluginContext as t };
71
- //# sourceMappingURL=plugin-0NJpq6om.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-0NJpq6om.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;UAyBiB,mBAAA;EAAA;AA0CjB;AASA;EASY,UAAA,CAAA,EAAA,MAAA;EAER;;;EACA,gBAAA,CAAA,EAAA,OAAA;EAIM;;;;;;;;;;;;;;;;;;;;;;;;aA5BG,QAAQ,MAAA,CAAO;;UAGX,sBAAA,SAA+B;;;;;aAKnC;;;UAII,0BAAA,SAAmC;;;;;YAKxC;;;KAIA,4CAER,6BAA6B,8BAC7B,cAAc;;;;UAIR,SAAa"}
@@ -1,71 +0,0 @@
1
- import { ESLint } from "eslint";
2
- import { LegacyESLint } from "eslint/use-at-your-own-risk";
3
- import { UserConfig } from "powerlines/types/config";
4
- import { PluginContext } from "powerlines/types/context";
5
- import { ResolvedConfig } from "powerlines/types/resolved";
6
-
7
- //#region src/types/plugin.d.ts
8
- interface ESLintPluginOptions {
9
- /**
10
- * The path to the ESLint configuration file.
11
- */
12
- configFile?: string;
13
- /**
14
- * Whether to report errors only
15
- */
16
- reportErrorsOnly?: boolean;
17
- /**
18
- * The maximum number of warnings to allow before failing the process
19
- */
20
- maxWarnings?: number;
21
- /**
22
- * The output file to write the results to.
23
- */
24
- outputFile?: string | null;
25
- /**
26
- * Whether to automatically fix problems
27
- *
28
- * @defaultValue true
29
- */
30
- fix?: boolean;
31
- /**
32
- * The type of ESLint configuration to use.
33
- */
34
- type?: "base" | "recommended" | "strict";
35
- /**
36
- * Options to be passed to the ESLint generator.
37
- *
38
- * @remarks
39
- * These options will be override any other values passed to the ESLint generator.
40
- */
41
- override?: Partial<ESLint.Options>;
42
- }
43
- interface ESLintPluginUserConfig extends UserConfig {
44
- /**
45
- * Options for the ESLint plugin.
46
- */
47
- lint?: {
48
- eslint?: ESLintPluginOptions;
49
- };
50
- }
51
- interface ESLintPluginResolvedConfig extends ResolvedConfig {
52
- /**
53
- * Options for the ESLint plugin.
54
- */
55
- lint: {
56
- eslint: ESLintPluginOptions;
57
- };
58
- }
59
- type ESLintPluginContext<TResolvedConfig extends ESLintPluginResolvedConfig = ESLintPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
60
- /**
61
- * The initialized ESLint application.
62
- */
63
- eslint: ESLint | LegacyESLint;
64
- };
65
- declare type __ΩESLintPluginOptions = any[];
66
- declare type __ΩESLintPluginUserConfig = any[];
67
- declare type __ΩESLintPluginResolvedConfig = any[];
68
- declare type __ΩESLintPluginContext = any[];
69
- //#endregion
70
- export { __ΩESLintPluginContext as a, __ΩESLintPluginUserConfig as c, ESLintPluginUserConfig as i, ESLintPluginOptions as n, __ΩESLintPluginOptions as o, ESLintPluginResolvedConfig as r, __ΩESLintPluginResolvedConfig as s, ESLintPluginContext as t };
71
- //# sourceMappingURL=plugin-CaqHREhr.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-CaqHREhr.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;UAyBiB,mBAAA;EAAA;AA0CjB;AASA;EASY,UAAA,CAAA,EAAA,MAAA;EAER;;;EACA,gBAAA,CAAA,EAAA,OAAA;EAIM;;;;;;;;;;;;;;;;;;;;;;;;aA5BG,QAAQ,MAAA,CAAO;;UAGX,sBAAA,SAA+B;;;;;aAKnC;;;UAII,0BAAA,SAAmC;;;;;YAKxC;;;KAIA,4CAER,6BAA6B,8BAC7B,cAAc;;;;UAIR,SAAa"}
@@ -1 +0,0 @@
1
- export { };
File without changes
@@ -1 +0,0 @@
1
- export { };
File without changes