@powerlines/plugin-eslint 0.8.62 → 0.8.64

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 (55) hide show
  1. package/dist/helpers/format-message.cjs +2 -1
  2. package/dist/helpers/format-message.d.cts +16 -1
  3. package/dist/helpers/format-message.d.mts +16 -1
  4. package/dist/helpers/format-message.mjs +2 -1
  5. package/dist/helpers/index.cjs +1 -1
  6. package/dist/helpers/index.d.cts +1 -2
  7. package/dist/helpers/index.d.mts +1 -2
  8. package/dist/helpers/index.mjs +1 -1
  9. package/dist/index.cjs +2 -2
  10. package/dist/index.d.cts +3 -4
  11. package/dist/index.d.mts +4 -4
  12. package/dist/index.mjs +2 -2
  13. package/dist/powerlines/src/types/babel.d.mts +2 -0
  14. package/dist/powerlines/src/types/build.d.cts +139 -0
  15. package/dist/powerlines/src/types/build.d.mts +139 -0
  16. package/dist/powerlines/src/types/commands.d.cts +8 -0
  17. package/dist/powerlines/src/types/commands.d.mts +9 -0
  18. package/dist/powerlines/src/types/config.d.cts +345 -0
  19. package/dist/powerlines/src/types/config.d.mts +345 -0
  20. package/dist/powerlines/src/types/context.d.cts +347 -0
  21. package/dist/powerlines/src/types/context.d.mts +349 -0
  22. package/dist/powerlines/src/types/fs.d.cts +458 -0
  23. package/dist/powerlines/src/types/fs.d.mts +458 -0
  24. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  25. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  26. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  27. package/dist/powerlines/src/types/resolved.d.cts +81 -0
  28. package/dist/powerlines/src/types/resolved.d.mts +81 -0
  29. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  30. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  31. package/dist/types/index.cjs +0 -1
  32. package/dist/types/index.d.cts +1 -2
  33. package/dist/types/index.d.mts +1 -2
  34. package/dist/types/index.mjs +1 -1
  35. package/dist/types/plugin.cjs +0 -1
  36. package/dist/types/plugin.d.cts +69 -1
  37. package/dist/types/plugin.d.mts +69 -1
  38. package/dist/types/plugin.mjs +1 -1
  39. package/package.json +8 -8
  40. package/dist/format-message-B0zrT_tN.d.cts +0 -17
  41. package/dist/format-message-BNWPERd9.mjs +0 -2
  42. package/dist/format-message-C3QDTJhy.cjs +0 -2
  43. package/dist/format-message-Ck01aLfz.d.mts +0 -17
  44. package/dist/helpers-CRPRhztf.mjs +0 -1
  45. package/dist/helpers-LF26RHol.cjs +0 -0
  46. package/dist/index-9iG2qHLe.d.mts +0 -1
  47. package/dist/index-D-CYNcT9.d.mts +0 -1
  48. package/dist/index-D4ELpJXS.d.cts +0 -1
  49. package/dist/index-DLoAMD9J.d.cts +0 -1
  50. package/dist/plugin-BNnhcGu2.d.cts +0 -1701
  51. package/dist/plugin-BjiGfRHE.mjs +0 -1
  52. package/dist/plugin-JUG_g4X_.d.mts +0 -1701
  53. package/dist/plugin-pBKbb5K9.cjs +0 -0
  54. package/dist/types-n6NgD0QK.mjs +0 -1
  55. package/dist/types-o3zWarRp.cjs +0 -0
@@ -1,2 +1,70 @@
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-JUG_g4X_.mjs";
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
+ import { ESLint } from "eslint";
5
+ import { LegacyESLint } from "eslint/use-at-your-own-risk";
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
2
70
  export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
@@ -1 +1 @@
1
- import"../plugin-BjiGfRHE.mjs";export{};
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-eslint",
3
- "version": "0.8.62",
3
+ "version": "0.8.64",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin for running ESLint on the codebase.",
6
6
  "repository": {
@@ -100,18 +100,18 @@
100
100
  "files": ["dist/**/*"],
101
101
  "keywords": ["eslint", "powerlines", "storm-software", "powerlines-plugin"],
102
102
  "dependencies": {
103
- "@storm-software/config-tools": "^1.188.59",
104
- "@stryke/fs": "^0.33.9",
105
- "@stryke/path": "^0.22.0",
103
+ "@storm-software/config-tools": "^1.188.60",
104
+ "@stryke/fs": "^0.33.20",
105
+ "@stryke/path": "^0.22.11",
106
106
  "defu": "^6.1.4",
107
107
  "eslint": "^9.39.1",
108
- "powerlines": "^0.30.9"
108
+ "powerlines": "^0.30.11"
109
109
  },
110
110
  "devDependencies": {
111
- "@powerlines/nx": "^0.10.58",
112
- "@storm-software/tsup": "^0.2.57",
111
+ "@powerlines/nx": "^0.10.60",
112
+ "@storm-software/tsup": "^0.2.58",
113
113
  "@types/node": "^24.10.1"
114
114
  },
115
115
  "publishConfig": { "access": "public" },
116
- "gitHead": "00fa339177561d404892937d2c24fe2a5b3df4e7"
116
+ "gitHead": "1613e8b201d74470d5c3275e2049374c231287af"
117
117
  }
@@ -1,17 +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 };
@@ -1,2 +0,0 @@
1
- import{relative as e}from"@stryke/path/find";import{correctPath as t}from"@stryke/path/normalize";let n=function(e){return e[e.Warning=1]=`Warning`,e[e.Error=2]=`Error`,e}({});function r(r,i,a){let o=t(e(r,a));o.startsWith(`.`)||(o=`./${o}`);let s=`\n${o}`;for(let e=0;e<i.length;e++){let{message:t,severity:r,line:a,column:o,ruleId:c}=i[e];s+=`
2
- `,a&&o&&(s=`${s+a.toString()}:${o.toString()} `),r===n.Warning?s+=`Warning: `:s+=`Error: `,s+=t,c&&(s+=` ${c}`)}return s}export{r as n,n as t};
@@ -1,2 +0,0 @@
1
- let e=require(`@stryke/path/find`),t=require(`@stryke/path/normalize`),n=function(e){return e[e.Warning=1]=`Warning`,e[e.Error=2]=`Error`,e}({});function r(r,i,a){let o=(0,t.correctPath)((0,e.relative)(r,a));o.startsWith(`.`)||(o=`./${o}`);let s=`\n${o}`;for(let e=0;e<i.length;e++){let{message:t,severity:r,line:a,column:o,ruleId:c}=i[e];s+=`
2
- `,a&&o&&(s=`${s+a.toString()}:${o.toString()} `),r===n.Warning?s+=`Warning: `:s+=`Error: `,s+=t,c&&(s+=` ${c}`)}return s}Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
@@ -1,17 +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 };
@@ -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 { };