@powerlines/plugin-eslint 0.8.436 → 0.8.438
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 -0
- package/dist/helpers/format-message.d.cts +18 -0
- package/dist/helpers/format-message.d.cts.map +1 -0
- package/dist/helpers/format-message.d.mts +18 -0
- package/dist/helpers/format-message.d.mts.map +1 -0
- package/dist/helpers/format-message.mjs +3 -0
- package/dist/helpers/format-message.mjs.map +1 -0
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/index.d.cts +2 -0
- package/dist/helpers/index.d.mts +2 -0
- package/dist/helpers/index.mjs +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +17 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +17 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/index.cjs +0 -0
- package/dist/types/index.d.cts +2 -0
- package/dist/types/index.d.mts +2 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +0 -0
- package/dist/types/plugin.d.cts +69 -0
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +69 -0
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});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(n,r,i){let a=(0,t.correctPath)((0,e.relative)(n,i));a.startsWith(`.`)||(a=`./${a}`);let o=`\n${a}`;for(let e=0;e<r.length;e++){let{message:t,severity:n,line:i,column:a,ruleId:s}=r[e];o+=`
|
|
2
|
+
`,i&&a&&(o=`${o+i.toString()}:${a.toString()} `),n===1?o+=`Warning: `:o+=`Error: `,o+=t,s&&(o+=` ${s}`)}return o}exports.MessageSeverity=n,exports.formatMessage=r;
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage };
|
|
18
|
+
//# sourceMappingURL=format-message.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-message.d.cts","names":[],"sources":["../../src/helpers/format-message.ts"],"mappings":";aAqBY,eAAA;EACV,OAAA;EACA,KAAA;AAAA;AAAA,UAGe,WAAA;EACf,MAAA;EACA,QAAA,EAAU,eAAA;EACV,OAAA;EACA,IAAA;EACA,MAAA;AAAA;AAAA,iBAGc,aAAA,CACd,GAAA,UACA,QAAA,EAAU,WAAA,IACV,QAAA;AAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage };
|
|
18
|
+
//# sourceMappingURL=format-message.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-message.d.mts","names":[],"sources":["../../src/helpers/format-message.ts"],"mappings":";aAqBY,eAAA;EACV,OAAA;EACA,KAAA;AAAA;AAAA,UAGe,WAAA;EACf,MAAA;EACA,QAAA,EAAU,eAAA;EACV,OAAA;EACA,IAAA;EACA,MAAA;AAAA;AAAA,iBAGc,aAAA,CACd,GAAA,UACA,QAAA,EAAU,WAAA,IACV,QAAA;AAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
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(n,r,i){let a=t(e(n,i));a.startsWith(`.`)||(a=`./${a}`);let o=`\n${a}`;for(let e=0;e<r.length;e++){let{message:t,severity:n,line:i,column:a,ruleId:s}=r[e];o+=`
|
|
2
|
+
`,i&&a&&(o=`${o+i.toString()}:${a.toString()} `),n===1?o+=`Warning: `:o+=`Error: `,o+=t,s&&(o+=` ${s}`)}return o}export{n as MessageSeverity,r as formatMessage};
|
|
3
|
+
//# sourceMappingURL=format-message.mjs.map
|
|
@@ -0,0 +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":"kGAqBA,IAAY,EAAL,SAAA,EAAA,OACL,GAAA,EAAA,QAAA,GAAA,UACA,EAAA,EAAA,MAAA,GAAA,cACD,CAUD,SAAgB,EACd,EACA,EACA,EACQ,CACR,IAAI,EAAW,EAAY,EAAS,EAAK,EAAS,CAAC,CAC9C,EAAS,WAAW,IAAI,GAC3B,EAAW,KAAK,KAGlB,IAAI,EAAS,KAAK,IAElB,IAAK,IAAI,EAAI,EAAG,EAAI,EAAS,OAAQ,IAAK,CACxC,GAAM,CAAE,UAAS,WAAU,OAAM,SAAQ,UAAW,EAAS,GAE7D,GAAU;EAEN,GAAQ,IACV,EAAS,GAAG,EAAS,EAAK,UAAU,CAAC,GAAG,EAAO,UAAU,CAAC,KAGxD,IAAA,EACF,GAAU,YAEV,GAAU,UAGZ,GAAU,EAEN,IACF,GAAU,KAAK,KAInB,OAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./format-message.cjs`);exports.MessageSeverity=e.MessageSeverity,exports.formatMessage=e.formatMessage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{MessageSeverity as e,formatMessage as t}from"./format-message.mjs";export{e as MessageSeverity,t as formatMessage};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require(`./helpers/format-message.cjs`);require(`./helpers/index.cjs`);let t=require(`@stryke/fs/exists`),n=require(`@stryke/fs/get-parent-path`),r=require(`@stryke/fs/package-fns`),i=require(`@stryke/fs/read-file`),a=require(`@stryke/fs/semver-fns`),o=require(`@stryke/path/find`),s=require(`@stryke/type-checks/is-set-object`),c=require(`defu`);function l(l={}){return{name:`eslint`,async config(){return this.debug("Providing default configuration for the Powerlines `eslint` build plugin."),{eslint:(0,c.defu)(l,{configFile:(0,n.getParentPath)([`eslint.config.js`,`eslint.config.mjs`,`eslint.config.cjs`,`eslint.config.ts`,`eslint.config.mts`,`eslint.config.cts`,`.eslintrc.js`,`.eslintrc.cjs`,`.eslintrc.yaml`,`.eslintrc.yml`,`.eslintrc.json`,`.eslintrc`],this.config.root,{ignoreCase:!0,skipCwd:!1,includeNameInResults:!0}),reportErrorsOnly:!1,maxWarnings:5,fix:!0,outputFile:null,type:`recommended`})}},async configResolved(){if(!(0,s.isSetObject)(this.packageJson.eslintConfig)&&(!this.config.lint.eslint.configFile||!(0,t.existsSync)(this.config.lint.eslint.configFile)))throw Error(`No ESLint configuration file could be found`);if(this.config.lint.eslint.configFile&&(0,t.existsSync)(this.config.lint.eslint.configFile)){let e=await(0,i.readFile)(this.config.lint.eslint.configFile);if(e?.trim().replace(/\s/g,``)||e?.trim().replace(/\s/g,``)===`---`||e?.trim().replace(/\s/g,``)===`{}`||e?.trim().replace(/\s/g,``)===`module.exports={}`)throw Error(`The ESLint configuration file at "${this.config.lint.eslint.configFile}" is empty`)}if(!(0,r.isPackageExists)(`eslint`,{paths:[this.config.cwd,this.config.root]}))throw Error(`ESLint must be installed to use the Powerlines ESLint plugin. Please run: npm install --save-dev eslint`);let e=await this.resolver.import(this.resolver.esmResolve(`eslint`)),n=this.config.lint.eslint.configFile?(0,o.findFileName)(this.config.lint.eslint.configFile).startsWith(`eslint.config.`):!0,c;`loadESLint`in e&&(c=await e.loadESLint({useFlatConfig:n}));let l=(0,a.parseVersion)(c?.version);if(!l||l.compare(`8.57.0`)<0)throw Error(`Error - Your project has an older version of ESLint installed${l?` (${l.major}.${l.minor}.${l.patch})`:``}. Please upgrade to ESLint version 8.57.0 or above`);let u={useEslintrc:!n,baseConfig:{},errorOnUnmatchedPattern:!1,extensions:[`.js`,`.jsx`,`.ts`,`.tsx`],cache:!0};if(l?.compare(`9.0.0`)&&n)for(let e of[`useEslintrc`,`extensions`,`ignorePath`,`reportUnusedDisableDirectives`,`resolvePluginsRelativeTo`,`rulePaths`,`inlineConfig`,`maxWarnings`])e in u&&delete u[e];this.eslint=new c(u)},async lint(){this.debug(`Linting project files with ESLint.`);let t=await this.eslint.lintFiles(this.tsconfig.fileNames.filter(e=>!e.includes(this.artifactsPath)&&!e.includes(`node_modules`))),n=await this.resolver.import(this.resolver.esmResolve(`eslint`)),r;`loadESLint`in n&&(r=await n.loadESLint({useFlatConfig:this.config.lint.eslint.configFile?(0,o.findFileName)(this.config.lint.eslint.configFile).startsWith(`eslint.config.`):!0})),this.config.lint.eslint.fix&&await r.outputFixes(t),this.config.lint.eslint.reportErrorsOnly&&(t=r.getErrorResults(t));let i=t.filter(({messages:e})=>e?.length).map(({messages:t,filePath:n})=>e.formatMessage(this.config.root,t,n)).join(`
|
|
2
|
+
`);this.config.lint.eslint.outputFile?await this.fs.write(this.config.lint.eslint.outputFile,i):this.info(i)}}}exports.MessageSeverity=e.MessageSeverity,exports.default=l,exports.plugin=l,exports.formatMessage=e.formatMessage;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.cjs";
|
|
2
|
+
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./types/plugin.cjs";
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
|
+
|
|
5
|
+
//#region src/index.d.ts
|
|
6
|
+
declare module "powerlines" {
|
|
7
|
+
interface Config {
|
|
8
|
+
eslint?: ESLintPluginOptions;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A Powerlines plugin to lint a project's source code with ESLint.
|
|
13
|
+
*/
|
|
14
|
+
declare function plugin(options?: ESLintPluginOptions): Plugin<ESLintPluginContext>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, LintMessage, MessageSeverity, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig, __ΩLintMessage, __ΩMessageSeverity, plugin as default, plugin, formatMessage };
|
|
17
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAoCY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;iBAOG,MAAA,CACd,OAAA,GAAS,mBAAA,GACR,MAAA,CAAO,mBAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LintMessage, MessageSeverity, __ΩLintMessage, __ΩMessageSeverity, formatMessage } from "./helpers/format-message.mjs";
|
|
2
|
+
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./types/plugin.mjs";
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
|
+
|
|
5
|
+
//#region src/index.d.ts
|
|
6
|
+
declare module "powerlines" {
|
|
7
|
+
interface Config {
|
|
8
|
+
eslint?: ESLintPluginOptions;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A Powerlines plugin to lint a project's source code with ESLint.
|
|
13
|
+
*/
|
|
14
|
+
declare function plugin(options?: ESLintPluginOptions): Plugin<ESLintPluginContext>;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, LintMessage, MessageSeverity, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig, __ΩLintMessage, __ΩMessageSeverity, plugin as default, plugin, formatMessage };
|
|
17
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;YAoCY,MAAA;IACR,MAAA,GAAS,mBAAA;EAAA;AAAA;;;;iBAOG,MAAA,CACd,OAAA,GAAS,mBAAA,GACR,MAAA,CAAO,mBAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{MessageSeverity as e,formatMessage as t}from"./helpers/format-message.mjs";import"./helpers/index.mjs";import{existsSync as n}from"@stryke/fs/exists";import{getParentPath as r}from"@stryke/fs/get-parent-path";import{isPackageExists as i}from"@stryke/fs/package-fns";import{readFile as a}from"@stryke/fs/read-file";import{parseVersion as o}from"@stryke/fs/semver-fns";import{findFileName as s}from"@stryke/path/find";import{isSetObject as c}from"@stryke/type-checks/is-set-object";import{defu as l}from"defu";function u(e={}){return{name:`eslint`,async config(){return this.debug("Providing default configuration for the Powerlines `eslint` build plugin."),{eslint:l(e,{configFile:r([`eslint.config.js`,`eslint.config.mjs`,`eslint.config.cjs`,`eslint.config.ts`,`eslint.config.mts`,`eslint.config.cts`,`.eslintrc.js`,`.eslintrc.cjs`,`.eslintrc.yaml`,`.eslintrc.yml`,`.eslintrc.json`,`.eslintrc`],this.config.root,{ignoreCase:!0,skipCwd:!1,includeNameInResults:!0}),reportErrorsOnly:!1,maxWarnings:5,fix:!0,outputFile:null,type:`recommended`})}},async configResolved(){if(!c(this.packageJson.eslintConfig)&&(!this.config.lint.eslint.configFile||!n(this.config.lint.eslint.configFile)))throw Error(`No ESLint configuration file could be found`);if(this.config.lint.eslint.configFile&&n(this.config.lint.eslint.configFile)){let e=await a(this.config.lint.eslint.configFile);if(e?.trim().replace(/\s/g,``)||e?.trim().replace(/\s/g,``)===`---`||e?.trim().replace(/\s/g,``)===`{}`||e?.trim().replace(/\s/g,``)===`module.exports={}`)throw Error(`The ESLint configuration file at "${this.config.lint.eslint.configFile}" is empty`)}if(!i(`eslint`,{paths:[this.config.cwd,this.config.root]}))throw Error(`ESLint must be installed to use the Powerlines ESLint plugin. Please run: npm install --save-dev eslint`);let e=await this.resolver.import(this.resolver.esmResolve(`eslint`)),t=this.config.lint.eslint.configFile?s(this.config.lint.eslint.configFile).startsWith(`eslint.config.`):!0,r;`loadESLint`in e&&(r=await e.loadESLint({useFlatConfig:t}));let l=o(r?.version);if(!l||l.compare(`8.57.0`)<0)throw Error(`Error - Your project has an older version of ESLint installed${l?` (${l.major}.${l.minor}.${l.patch})`:``}. Please upgrade to ESLint version 8.57.0 or above`);let u={useEslintrc:!t,baseConfig:{},errorOnUnmatchedPattern:!1,extensions:[`.js`,`.jsx`,`.ts`,`.tsx`],cache:!0};if(l?.compare(`9.0.0`)&&t)for(let e of[`useEslintrc`,`extensions`,`ignorePath`,`reportUnusedDisableDirectives`,`resolvePluginsRelativeTo`,`rulePaths`,`inlineConfig`,`maxWarnings`])e in u&&delete u[e];this.eslint=new r(u)},async lint(){this.debug(`Linting project files with ESLint.`);let e=await this.eslint.lintFiles(this.tsconfig.fileNames.filter(e=>!e.includes(this.artifactsPath)&&!e.includes(`node_modules`))),n=await this.resolver.import(this.resolver.esmResolve(`eslint`)),r;`loadESLint`in n&&(r=await n.loadESLint({useFlatConfig:this.config.lint.eslint.configFile?s(this.config.lint.eslint.configFile).startsWith(`eslint.config.`):!0})),this.config.lint.eslint.fix&&await r.outputFixes(e),this.config.lint.eslint.reportErrorsOnly&&(e=r.getErrorResults(e));let i=e.filter(({messages:e})=>e?.length).map(({messages:e,filePath:n})=>t(this.config.root,e,n)).join(`
|
|
2
|
+
`);this.config.lint.eslint.outputFile?await this.fs.write(this.config.lint.eslint.outputFile,i):this.info(i)}}}export{e as MessageSeverity,u as default,u as plugin,t as formatMessage};
|
|
3
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.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 { existsSync } from \"@stryke/fs/exists\";\nimport { getParentPath } from \"@stryke/fs/get-parent-path\";\nimport { isPackageExists } from \"@stryke/fs/package-fns\";\nimport { readFile } from \"@stryke/fs/read-file\";\nimport { parseVersion } from \"@stryke/fs/semver-fns\";\nimport { findFileName } from \"@stryke/path/find\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport { defu } from \"defu\";\nimport type { ESLint as FlatESLint } from \"eslint\";\nimport type { LegacyESLint } from \"eslint/use-at-your-own-risk\";\nimport { Plugin } from \"powerlines\";\nimport { formatMessage } from \"./helpers/format-message\";\nimport { ESLintPluginContext, ESLintPluginOptions } from \"./types/plugin\";\n\nexport * from \"./helpers\";\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\n eslint?: ESLintPluginOptions;\n }\n}\n\n/**\n * A Powerlines plugin to lint a project's source code with ESLint.\n */\nexport function plugin(\n options: ESLintPluginOptions = {}\n): Plugin<ESLintPluginContext> {\n return {\n name: \"eslint\",\n async config() {\n this.debug(\n \"Providing default configuration for the Powerlines `eslint` build plugin.\"\n );\n\n const configFile = getParentPath(\n [\n \"eslint.config.js\",\n \"eslint.config.mjs\",\n \"eslint.config.cjs\",\n \"eslint.config.ts\",\n \"eslint.config.mts\",\n \"eslint.config.cts\",\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.yaml\",\n \".eslintrc.yml\",\n \".eslintrc.json\",\n \".eslintrc\"\n ],\n this.config.root,\n {\n ignoreCase: true,\n skipCwd: false,\n includeNameInResults: true\n }\n );\n\n return {\n eslint: defu(options, {\n configFile,\n reportErrorsOnly: false,\n maxWarnings: 5,\n fix: true,\n outputFile: null,\n type: \"recommended\"\n })\n };\n },\n async configResolved() {\n if (\n !isSetObject(this.packageJson.eslintConfig) &&\n (!this.config.lint.eslint.configFile ||\n !existsSync(this.config.lint.eslint.configFile))\n ) {\n throw new Error(\"No ESLint configuration file could be found\");\n } else if (\n this.config.lint.eslint.configFile &&\n existsSync(this.config.lint.eslint.configFile)\n ) {\n const content = await readFile(this.config.lint.eslint.configFile);\n if (\n content?.trim().replace(/\\s/g, \"\") ||\n content?.trim().replace(/\\s/g, \"\") === \"---\" ||\n content?.trim().replace(/\\s/g, \"\") === \"{}\" ||\n content?.trim().replace(/\\s/g, \"\") === \"module.exports={}\"\n ) {\n throw new Error(\n `The ESLint configuration file at \"${this.config.lint.eslint.configFile}\" is empty`\n );\n }\n }\n\n const isInstalled = isPackageExists(\"eslint\", {\n paths: [this.config.cwd, this.config.root]\n });\n if (!isInstalled) {\n throw new Error(\n `ESLint must be installed to use the Powerlines ESLint plugin. Please run: npm install --save-dev eslint`\n );\n }\n\n // if (generateReason) {\n // this.log(\n // LogLevelLabel.WARN,\n // `${generateReason}. Generating a default configuration at the project root.`\n // );\n\n // this.devDependencies[\"eslint-config-powerlines\"] = \"*\";\n // this.config.lint.eslint.configFile = joinPaths(\n // this.config.projectRoot,\n // \"eslint.config.js\"\n // );\n\n // await writeFile(\n // this.config.lint.eslint.configFile,\n // `import { defineConfig } from \"eslint-config-powerlines\";\n\n // Error.stackTraceLimit = Number.POSITIVE_INFINITY;\n\n // /** @type {import('eslint').Linter.Config[]} */\n // export default defineConfig({${\n // this.config.name\n // ? `\n // name: \"${this.config.name}\", `\n // : \"\"\n // }\n // powerlines: ${this.config.lint.eslint.type}\n // });\n\n // `\n // );\n // }\n\n const module = await this.resolver.import<typeof import(\"eslint\")>(\n this.resolver.esmResolve(\"eslint\")\n );\n\n const useFlatConfig = this.config.lint.eslint.configFile\n ? findFileName(this.config.lint.eslint.configFile).startsWith(\n \"eslint.config.\"\n )\n : true;\n\n let ESLint!: typeof FlatESLint | typeof LegacyESLint;\n // loadESLint is >= 8.57.0\n // PR https://github.com/eslint/eslint/pull/18098\n // Release https://github.com/eslint/eslint/releases/tag/v8.57.0\n if (\"loadESLint\" in module) {\n // By default, configType is `flat`. If `useFlatConfig` is false, the return value is `LegacyESLint`.\n // https://github.com/eslint/eslint/blob/1def4cdfab1f067c5089df8b36242cdf912b0eb6/lib/types/index.d.ts#L1609-L1613\n ESLint = await module.loadESLint({\n useFlatConfig\n });\n }\n\n const eslintVersion = parseVersion(ESLint?.version);\n if (!eslintVersion || eslintVersion.compare(\"8.57.0\") < 0) {\n throw new Error(\n `Error - Your project has an older version of ESLint installed${\n eslintVersion\n ? ` (${eslintVersion.major}.${eslintVersion.minor}.${eslintVersion.patch})`\n : \"\"\n }. Please upgrade to ESLint version 8.57.0 or above`\n );\n }\n\n const options: any = {\n useEslintrc: !useFlatConfig,\n baseConfig: {},\n errorOnUnmatchedPattern: false,\n extensions: [\".js\", \".jsx\", \".ts\", \".tsx\"],\n cache: true\n };\n\n if (eslintVersion?.compare(\"9.0.0\") && useFlatConfig) {\n for (const option of [\n \"useEslintrc\",\n \"extensions\",\n \"ignorePath\",\n \"reportUnusedDisableDirectives\",\n \"resolvePluginsRelativeTo\",\n \"rulePaths\",\n \"inlineConfig\",\n \"maxWarnings\"\n ]) {\n if (option in options) {\n delete options[option];\n }\n }\n }\n\n this.eslint = new ESLint(options);\n },\n async lint() {\n this.debug(\"Linting project files with ESLint.\");\n\n let results = await this.eslint.lintFiles(\n this.tsconfig.fileNames.filter(\n fileName =>\n !fileName.includes(this.artifactsPath) &&\n !fileName.includes(\"node_modules\")\n )\n );\n\n const module = await this.resolver.import<typeof import(\"eslint\")>(\n this.resolver.esmResolve(\"eslint\")\n );\n\n let ESLint!: typeof FlatESLint | typeof LegacyESLint;\n // loadESLint is >= 8.57.0\n // PR https://github.com/eslint/eslint/pull/18098\n // Release https://github.com/eslint/eslint/releases/tag/v8.57.0\n if (\"loadESLint\" in module) {\n // By default, configType is `flat`. If `useFlatConfig` is false, the return value is `LegacyESLint`.\n // https://github.com/eslint/eslint/blob/1def4cdfab1f067c5089df8b36242cdf912b0eb6/lib/types/index.d.ts#L1609-L1613\n ESLint = await module.loadESLint({\n useFlatConfig: this.config.lint.eslint.configFile\n ? findFileName(this.config.lint.eslint.configFile).startsWith(\n \"eslint.config.\"\n )\n : true\n });\n }\n\n if (this.config.lint.eslint.fix) {\n await ESLint.outputFixes(results);\n }\n\n if (this.config.lint.eslint.reportErrorsOnly) {\n results = ESLint.getErrorResults(results);\n }\n\n const resultsWithMessages = results.filter(\n ({ messages }) => messages?.length\n );\n\n const output = resultsWithMessages\n .map(({ messages, filePath }) =>\n formatMessage(this.config.root, messages, filePath)\n )\n .join(\"\\n\");\n\n if (this.config.lint.eslint.outputFile) {\n await this.fs.write(this.config.lint.eslint.outputFile, output);\n } else {\n this.info(output);\n }\n }\n };\n}\n\nexport default plugin;\n"],"mappings":"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"}
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./plugin.cjs";
|
|
2
|
+
export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig } from "./plugin.mjs";
|
|
2
|
+
export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
File without changes
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
+
import { ESLint } from "eslint";
|
|
3
|
+
import { LegacyESLint } from "eslint/use-at-your-own-risk";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
interface ESLintPluginOptions {
|
|
7
|
+
/**
|
|
8
|
+
* The path to the ESLint configuration file.
|
|
9
|
+
*/
|
|
10
|
+
configFile?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to report errors only
|
|
13
|
+
*/
|
|
14
|
+
reportErrorsOnly?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of warnings to allow before failing the process
|
|
17
|
+
*/
|
|
18
|
+
maxWarnings?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The output file to write the results to.
|
|
21
|
+
*/
|
|
22
|
+
outputFile?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to automatically fix problems
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue true
|
|
27
|
+
*/
|
|
28
|
+
fix?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The type of ESLint configuration to use.
|
|
31
|
+
*/
|
|
32
|
+
type?: "base" | "recommended" | "strict";
|
|
33
|
+
/**
|
|
34
|
+
* Options to be passed to the ESLint generator.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* These options will be override any other values passed to the ESLint generator.
|
|
38
|
+
*/
|
|
39
|
+
override?: Partial<ESLint.Options>;
|
|
40
|
+
}
|
|
41
|
+
interface ESLintPluginUserConfig extends UserConfig {
|
|
42
|
+
/**
|
|
43
|
+
* Options for the ESLint plugin.
|
|
44
|
+
*/
|
|
45
|
+
lint?: {
|
|
46
|
+
eslint?: ESLintPluginOptions;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
interface ESLintPluginResolvedConfig extends ResolvedConfig {
|
|
50
|
+
/**
|
|
51
|
+
* Options for the ESLint plugin.
|
|
52
|
+
*/
|
|
53
|
+
lint: {
|
|
54
|
+
eslint: ESLintPluginOptions;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
type ESLintPluginContext<TResolvedConfig extends ESLintPluginResolvedConfig = ESLintPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
58
|
+
/**
|
|
59
|
+
* The initialized ESLint application.
|
|
60
|
+
*/
|
|
61
|
+
eslint: ESLint | LegacyESLint;
|
|
62
|
+
};
|
|
63
|
+
declare type __ΩESLintPluginOptions = any[];
|
|
64
|
+
declare type __ΩESLintPluginUserConfig = any[];
|
|
65
|
+
declare type __ΩESLintPluginResolvedConfig = any[];
|
|
66
|
+
declare type __ΩESLintPluginContext = any[];
|
|
67
|
+
//#endregion
|
|
68
|
+
export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
|
|
69
|
+
//# sourceMappingURL=plugin.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;UAuBiB,mBAAA;EAAA;;;EAIf,UAAA;EAAA;;;EAKA,gBAAA;EAiBA;;;EAZA,WAAA;EAyBmB;;;EApBnB,UAAA;EAuBe;;;;;EAhBf,GAAA;EAqBE;;;EAhBF,IAAA;EAoBe;;;;;;EAZf,QAAA,GAAW,OAAA,CAAQ,MAAA,CAAO,OAAA;AAAA;AAAA,UAGX,sBAAA,SAA+B,UAAA;EAcjB;AAI/B;;EAdE,IAAA;IACE,MAAA,GAAS,mBAAA;EAAA;AAAA;AAAA,UAII,0BAAA,SAAmC,cAAA;EAgB1C;;;EAZR,IAAA;IACE,MAAA,EAAQ,mBAAA;EAAA;AAAA;AAAA,KAIA,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;EAAA;;;EAIhB,MAAA,EAAQ,MAAA,GAAa,YAAA;AAAA;AAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
+
import { ESLint } from "eslint";
|
|
3
|
+
import { LegacyESLint } from "eslint/use-at-your-own-risk";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
interface ESLintPluginOptions {
|
|
7
|
+
/**
|
|
8
|
+
* The path to the ESLint configuration file.
|
|
9
|
+
*/
|
|
10
|
+
configFile?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Whether to report errors only
|
|
13
|
+
*/
|
|
14
|
+
reportErrorsOnly?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The maximum number of warnings to allow before failing the process
|
|
17
|
+
*/
|
|
18
|
+
maxWarnings?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The output file to write the results to.
|
|
21
|
+
*/
|
|
22
|
+
outputFile?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Whether to automatically fix problems
|
|
25
|
+
*
|
|
26
|
+
* @defaultValue true
|
|
27
|
+
*/
|
|
28
|
+
fix?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* The type of ESLint configuration to use.
|
|
31
|
+
*/
|
|
32
|
+
type?: "base" | "recommended" | "strict";
|
|
33
|
+
/**
|
|
34
|
+
* Options to be passed to the ESLint generator.
|
|
35
|
+
*
|
|
36
|
+
* @remarks
|
|
37
|
+
* These options will be override any other values passed to the ESLint generator.
|
|
38
|
+
*/
|
|
39
|
+
override?: Partial<ESLint.Options>;
|
|
40
|
+
}
|
|
41
|
+
interface ESLintPluginUserConfig extends UserConfig {
|
|
42
|
+
/**
|
|
43
|
+
* Options for the ESLint plugin.
|
|
44
|
+
*/
|
|
45
|
+
lint?: {
|
|
46
|
+
eslint?: ESLintPluginOptions;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
interface ESLintPluginResolvedConfig extends ResolvedConfig {
|
|
50
|
+
/**
|
|
51
|
+
* Options for the ESLint plugin.
|
|
52
|
+
*/
|
|
53
|
+
lint: {
|
|
54
|
+
eslint: ESLintPluginOptions;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
type ESLintPluginContext<TResolvedConfig extends ESLintPluginResolvedConfig = ESLintPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
|
|
58
|
+
/**
|
|
59
|
+
* The initialized ESLint application.
|
|
60
|
+
*/
|
|
61
|
+
eslint: ESLint | LegacyESLint;
|
|
62
|
+
};
|
|
63
|
+
declare type __ΩESLintPluginOptions = any[];
|
|
64
|
+
declare type __ΩESLintPluginUserConfig = any[];
|
|
65
|
+
declare type __ΩESLintPluginResolvedConfig = any[];
|
|
66
|
+
declare type __ΩESLintPluginContext = any[];
|
|
67
|
+
//#endregion
|
|
68
|
+
export { ESLintPluginContext, ESLintPluginOptions, ESLintPluginResolvedConfig, ESLintPluginUserConfig, __ΩESLintPluginContext, __ΩESLintPluginOptions, __ΩESLintPluginResolvedConfig, __ΩESLintPluginUserConfig };
|
|
69
|
+
//# sourceMappingURL=plugin.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;UAuBiB,mBAAA;EAAA;;;EAIf,UAAA;EAAA;;;EAKA,gBAAA;EAiBA;;;EAZA,WAAA;EAyBmB;;;EApBnB,UAAA;EAuBe;;;;;EAhBf,GAAA;EAqBE;;;EAhBF,IAAA;EAoBe;;;;;;EAZf,QAAA,GAAW,OAAA,CAAQ,MAAA,CAAO,OAAA;AAAA;AAAA,UAGX,sBAAA,SAA+B,UAAA;EAcjB;AAI/B;;EAdE,IAAA;IACE,MAAA,GAAS,mBAAA;EAAA;AAAA;AAAA,UAII,0BAAA,SAAmC,cAAA;EAgB1C;;;EAZR,IAAA;IACE,MAAA,EAAQ,mBAAA;EAAA;AAAA;AAAA,KAIA,mBAAA,yBACc,0BAAA,GACtB,0BAAA,IACA,aAAA,CAAc,eAAA;EAAA;;;EAIhB,MAAA,EAAQ,MAAA,GAAa,YAAA;AAAA;AAAA"}
|
|
@@ -0,0 +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.438",
|
|
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"],
|
|
@@ -118,14 +118,14 @@
|
|
|
118
118
|
"files": ["dist/**/*"],
|
|
119
119
|
"dependencies": {
|
|
120
120
|
"@storm-software/config-tools": "^1.189.78",
|
|
121
|
-
"@stryke/fs": "^0.33.
|
|
122
|
-
"@stryke/path": "^0.
|
|
123
|
-
"@stryke/type-checks": "^0.6.
|
|
121
|
+
"@stryke/fs": "^0.33.69",
|
|
122
|
+
"@stryke/path": "^0.28.1",
|
|
123
|
+
"@stryke/type-checks": "^0.6.4",
|
|
124
124
|
"defu": "^6.1.7",
|
|
125
125
|
"eslint": "^9.39.4",
|
|
126
|
-
"powerlines": "^0.43.
|
|
126
|
+
"powerlines": "^0.43.30"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": { "@types/node": "^25.6.0" },
|
|
129
129
|
"publishConfig": { "access": "public" },
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "36f3385b33024e00aafb6c4a10e7a2e3c896aad5"
|
|
131
131
|
}
|