@powerlines/plugin-eslint 0.8.61 → 0.8.63
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/format-message.cjs +2 -1
- package/dist/helpers/format-message.d.cts +16 -1
- package/dist/helpers/format-message.d.mts +16 -1
- package/dist/helpers/format-message.mjs +2 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.d.cts +1 -2
- package/dist/helpers/index.d.mts +1 -2
- package/dist/helpers/index.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +2 -2
- package/dist/powerlines/src/types/babel.d.mts +2 -0
- package/dist/powerlines/src/types/build.d.cts +139 -0
- package/dist/powerlines/src/types/build.d.mts +139 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +345 -0
- package/dist/powerlines/src/types/config.d.mts +345 -0
- package/dist/powerlines/src/types/context.d.cts +347 -0
- package/dist/powerlines/src/types/context.d.mts +349 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +232 -0
- package/dist/powerlines/src/types/plugin.d.mts +232 -0
- package/dist/powerlines/src/types/resolved.d.cts +81 -0
- package/dist/powerlines/src/types/resolved.d.mts +81 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +69 -1
- package/dist/types/plugin.d.mts +69 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +8 -8
- package/dist/format-message-B0zrT_tN.d.cts +0 -17
- package/dist/format-message-BNWPERd9.mjs +0 -2
- package/dist/format-message-C3QDTJhy.cjs +0 -2
- package/dist/format-message-Ck01aLfz.d.mts +0 -17
- package/dist/helpers-CRPRhztf.mjs +0 -1
- package/dist/helpers-LF26RHol.cjs +0 -0
- package/dist/index-9iG2qHLe.d.mts +0 -1
- package/dist/index-D-CYNcT9.d.mts +0 -1
- package/dist/index-D4ELpJXS.d.cts +0 -1
- package/dist/index-DLoAMD9J.d.cts +0 -1
- package/dist/plugin-BJ2qjy3J.d.cts +0 -1704
- package/dist/plugin-BjiGfRHE.mjs +0 -1
- package/dist/plugin-Dgo7IQv-.d.mts +0 -1704
- package/dist/plugin-pBKbb5K9.cjs +0 -0
- package/dist/types-n6NgD0QK.mjs +0 -1
- package/dist/types-o3zWarRp.cjs +0 -0
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,70 @@
|
|
|
1
|
-
import {
|
|
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 };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-eslint",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.63",
|
|
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.
|
|
104
|
-
"@stryke/fs": "^0.33.
|
|
105
|
-
"@stryke/path": "^0.22.
|
|
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.
|
|
108
|
+
"powerlines": "^0.30.10"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@powerlines/nx": "^0.10.
|
|
112
|
-
"@storm-software/tsup": "^0.2.
|
|
111
|
+
"@powerlines/nx": "^0.10.59",
|
|
112
|
+
"@storm-software/tsup": "^0.2.58",
|
|
113
113
|
"@types/node": "^24.10.1"
|
|
114
114
|
},
|
|
115
115
|
"publishConfig": { "access": "public" },
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "1fa17406f69248e0a35ca56c09b1f4589e4d49d7"
|
|
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 { };
|