@powerlines/plugin-eslint 0.8.3 → 0.8.5

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.
@@ -0,0 +1,7 @@
1
+ 'use strict';/*****************************************
2
+ *
3
+ * ⚡ Built by Storm Software
4
+ *
5
+ *****************************************/
6
+
7
+ var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:true});exports.a=d;
@@ -0,0 +1,7 @@
1
+ /*****************************************
2
+ *
3
+ * ⚡ Built by Storm Software
4
+ *
5
+ *****************************************/
6
+
7
+ var c=Object.defineProperty;var d=(a,b)=>c(a,"name",{value:b,configurable:true});export{d as a};
@@ -0,0 +1,9 @@
1
+ 'use strict';var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),find=require('@stryke/path/find'),normalize=require('@stryke/path/normalize');/*****************************************
2
+ *
3
+ * ⚡ Built by Storm Software
4
+ *
5
+ *****************************************/
6
+
7
+ var p=(t=>(t[t.Warning=1]="Warning",t[t.Error=2]="Error",t))(p||{});function x(m,i,t){let n=normalize.correctPath(find.relative(m,t));n.startsWith(".")||(n=`./${n}`);let r=`
8
+ ${n}`;for(let e=0;e<i.length;e++){const{message:u,severity:a,line:o,column:l,ruleId:s}=i[e];r+=`
9
+ `,o&&l&&(r=`${r+o.toString()}:${l.toString()} `),a===1?r+="Warning: ":r+="Error: ",r+=u,s&&(r+=` ${s}`);}return r}chunkFBBMZ4NC_cjs.a(x,"formatMessage");exports.MessageSeverity=p;exports.formatMessage=x;
@@ -0,0 +1,14 @@
1
+ declare enum MessageSeverity {
2
+ Warning = 1,
3
+ Error = 2
4
+ }
5
+ interface LintMessage {
6
+ ruleId: string | null;
7
+ severity: MessageSeverity;
8
+ message: string;
9
+ line: number;
10
+ column: number;
11
+ }
12
+ declare function formatMessage(dir: string, messages: LintMessage[], filePath: string): string;
13
+
14
+ export { type LintMessage, MessageSeverity, formatMessage };
@@ -0,0 +1,14 @@
1
+ declare enum MessageSeverity {
2
+ Warning = 1,
3
+ Error = 2
4
+ }
5
+ interface LintMessage {
6
+ ruleId: string | null;
7
+ severity: MessageSeverity;
8
+ message: string;
9
+ line: number;
10
+ column: number;
11
+ }
12
+ declare function formatMessage(dir: string, messages: LintMessage[], filePath: string): string;
13
+
14
+ export { type LintMessage, MessageSeverity, formatMessage };
@@ -0,0 +1,9 @@
1
+ import {a}from'../chunk-UCUR73HG.js';import {relative}from'@stryke/path/find';import {correctPath}from'@stryke/path/normalize';/*****************************************
2
+ *
3
+ * ⚡ Built by Storm Software
4
+ *
5
+ *****************************************/
6
+
7
+ var p=(t=>(t[t.Warning=1]="Warning",t[t.Error=2]="Error",t))(p||{});function b(m,i,t){let n=correctPath(relative(m,t));n.startsWith(".")||(n=`./${n}`);let r=`
8
+ ${n}`;for(let e=0;e<i.length;e++){const{message:u,severity:a,line:o,column:l,ruleId:s}=i[e];r+=`
9
+ `,o&&l&&(r=`${r+o.toString()}:${l.toString()} `),a===1?r+="Warning: ":r+="Error: ",r+=u,s&&(r+=` ${s}`);}return r}a(b,"formatMessage");export{p as MessageSeverity,b as formatMessage};
@@ -0,0 +1 @@
1
+ 'use strict';var formatMessage=require('./format-message');Object.keys(formatMessage).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return formatMessage[k]}})});
@@ -0,0 +1 @@
1
+ export { LintMessage, MessageSeverity, formatMessage } from './format-message.cjs';
@@ -0,0 +1 @@
1
+ export { LintMessage, MessageSeverity, formatMessage } from './format-message.js';
@@ -0,0 +1 @@
1
+ export*from'./format-message';