@powerlines/plugin-oxlint 0.7.3 → 0.7.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.
- package/dist/chunk-FBBMZ4NC.cjs +7 -0
- package/dist/chunk-UCUR73HG.js +7 -0
- package/dist/helpers/generate-config.cjs +51 -0
- package/dist/helpers/generate-config.d.cts +31 -0
- package/dist/helpers/generate-config.d.ts +31 -0
- package/dist/helpers/generate-config.js +51 -0
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/index.d.cts +22 -0
- package/dist/helpers/index.d.ts +22 -0
- package/dist/helpers/index.js +1 -0
- package/dist/index-Dc_OruZK.d.cts +1377 -0
- package/dist/index-Dc_OruZK.d.ts +1377 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +29 -0
- package/dist/src/index.d.ts +29 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +21 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +21 -0
- package/dist/types/plugin.d.ts +21 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +11 -11
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),types$1=require('@storm-software/config-tools/types'),execute=require('@stryke/cli/execute'),exists=require('@stryke/fs/exists'),getParentPath=require('@stryke/fs/get-parent-path'),packageFns=require('@stryke/fs/package-fns'),join=require('@stryke/path/join'),replace=require('@stryke/path/replace'),types=require('./types');/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
function u(r={}){return {name:"oxlint",async config(){return this.log(types$1.LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `oxlint` linting plugin."),{lint:{oxlint:{configFile:".oxlintrc.json",deny:[],allow:[],warn:[],typeAware:true,fix:true,format:"stylish",...r}}}},configResolved(){this.devDependencies.oxlint="^1.24.0",this.config.lint.oxlint.typeAware&&(this.devDependencies["oxlint-tsgolint"]="^0.2.1");},async lint(){this.log(types$1.LogLevelLabel.TRACE,"Linting project files with Oxlint.");const i=[];if(this.config.lint.oxlint.params&&i.push(...this.config.lint.oxlint.params.split(" ").filter(Boolean)),!i.includes("--ignore-pattern")&&this.config.lint.oxlint.ignorePatterns&&i.push(`--ignore-pattern=${this.config.lint.oxlint.ignorePatterns}`),this.config.lint.oxlint.deny.forEach(t=>i.push("-D",t)),this.config.lint.oxlint.allow.forEach(t=>i.push("-A",t)),this.config.lint.oxlint.warn.forEach(t=>i.push("-W",t)),!i.includes("-c")&&!i.includes("--config")){let t=getParentPath.getParentPath(this.config.lint.oxlint.configFile,this.config.projectRoot,{ignoreCase:true,skipCwd:false,includeNameInResults:true});t&&!exists.existsSync(t)&&this.config.lint.oxlint.configFile!==".oxlintrc.json"&&(t=getParentPath.getParentPath(".oxlintrc.json",this.config.projectRoot,{ignoreCase:true,skipCwd:false,includeNameInResults:true})),t&&exists.existsSync(t)&&i.push("-c",t);}if(!i.includes("--type-aware")&&this.config.lint.oxlint.typeAware&&i.push("--type-aware"),i.includes("--tsconfig")||i.push("--tsconfig",this.tsconfig.tsconfigFilePath),!i.includes("-f")&&!i.includes("--format")&&i.push("-f",this.config.lint.oxlint.format||"stylish"),this.config.lint.oxlint.fix!==false&&!i.includes("--fix")&&!i.includes("--fix-suggestions")&&!i.includes("--fix-dangerously")&&(this.config.lint.oxlint.fix===true?i.push("--fix"):this.config.lint.oxlint.fix==="suggestions"?i.push("--fix-suggestions"):this.config.lint.oxlint.fix==="dangerously"&&i.push("--fix-dangerously")),this.config.lint.oxlint.oxlintPath){i.unshift(this.config.lint.oxlint.oxlintPath,this.config.sourceRoot);const t=await execute.execute(i.join(" "),this.workspaceConfig.workspaceRoot);if(t.failed)throw new Error(`Oxlint process exited with code ${t.exitCode}.`)}else {const t=await packageFns.isPackageListed("oxlint",this.config.projectRoot);i.unshift(t?replace.replacePath(this.config.sourceRoot,this.config.projectRoot):this.config.sourceRoot);const o=await execute.executePackage("oxlint",i,t?join.joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot):this.workspaceConfig.workspaceRoot);if(o.failed)throw new Error(`Oxlint process exited with code ${o.exitCode}.`)}}}}chunkFBBMZ4NC_cjs.a(u,"plugin");var A=u;exports.default=A;exports.plugin=u;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { O as OxlintPluginOptions, P as Plugin, a as OxlintPluginContext } from '../index-Dc_OruZK.cjs';
|
|
2
|
+
export { c as OxlintPluginResolvedConfig, b as OxlintPluginUserConfig } from '../index-Dc_OruZK.cjs';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A Powerlines plugin to assist in linting a project with Biome.
|
|
26
|
+
*/
|
|
27
|
+
declare function plugin(options?: OxlintPluginOptions): Plugin<OxlintPluginContext>;
|
|
28
|
+
|
|
29
|
+
export { OxlintPluginContext, OxlintPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { O as OxlintPluginOptions, P as Plugin, a as OxlintPluginContext } from '../index-Dc_OruZK.js';
|
|
2
|
+
export { c as OxlintPluginResolvedConfig, b as OxlintPluginUserConfig } from '../index-Dc_OruZK.js';
|
|
3
|
+
import '@storm-software/build-tools/types';
|
|
4
|
+
import '@storm-software/config-tools/types';
|
|
5
|
+
import '@storm-software/config/types';
|
|
6
|
+
import '@stryke/types/base';
|
|
7
|
+
import '@stryke/types/configuration';
|
|
8
|
+
import '@stryke/types/file';
|
|
9
|
+
import 'vite';
|
|
10
|
+
import '@stryke/env/get-env-paths';
|
|
11
|
+
import '@stryke/types/package-json';
|
|
12
|
+
import 'jiti';
|
|
13
|
+
import 'oxc-parser';
|
|
14
|
+
import 'semver';
|
|
15
|
+
import 'unplugin';
|
|
16
|
+
import '@stryke/types/tsconfig';
|
|
17
|
+
import 'typescript';
|
|
18
|
+
import '@stryke/json/types';
|
|
19
|
+
import 'memfs';
|
|
20
|
+
import 'node:fs';
|
|
21
|
+
import 'unionfs';
|
|
22
|
+
import '@stryke/types/array';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A Powerlines plugin to assist in linting a project with Biome.
|
|
26
|
+
*/
|
|
27
|
+
declare function plugin(options?: OxlintPluginOptions): Plugin<OxlintPluginContext>;
|
|
28
|
+
|
|
29
|
+
export { OxlintPluginContext, OxlintPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {a}from'../chunk-UCUR73HG.js';import {LogLevelLabel}from'@storm-software/config-tools/types';import {execute,executePackage}from'@stryke/cli/execute';import {existsSync}from'@stryke/fs/exists';import {getParentPath}from'@stryke/fs/get-parent-path';import {isPackageListed}from'@stryke/fs/package-fns';import {joinPaths}from'@stryke/path/join';import {replacePath}from'@stryke/path/replace';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
function u(r={}){return {name:"oxlint",async config(){return this.log(LogLevelLabel.TRACE,"Providing default configuration for the Powerlines `oxlint` linting plugin."),{lint:{oxlint:{configFile:".oxlintrc.json",deny:[],allow:[],warn:[],typeAware:true,fix:true,format:"stylish",...r}}}},configResolved(){this.devDependencies.oxlint="^1.24.0",this.config.lint.oxlint.typeAware&&(this.devDependencies["oxlint-tsgolint"]="^0.2.1");},async lint(){this.log(LogLevelLabel.TRACE,"Linting project files with Oxlint.");const i=[];if(this.config.lint.oxlint.params&&i.push(...this.config.lint.oxlint.params.split(" ").filter(Boolean)),!i.includes("--ignore-pattern")&&this.config.lint.oxlint.ignorePatterns&&i.push(`--ignore-pattern=${this.config.lint.oxlint.ignorePatterns}`),this.config.lint.oxlint.deny.forEach(t=>i.push("-D",t)),this.config.lint.oxlint.allow.forEach(t=>i.push("-A",t)),this.config.lint.oxlint.warn.forEach(t=>i.push("-W",t)),!i.includes("-c")&&!i.includes("--config")){let t=getParentPath(this.config.lint.oxlint.configFile,this.config.projectRoot,{ignoreCase:true,skipCwd:false,includeNameInResults:true});t&&!existsSync(t)&&this.config.lint.oxlint.configFile!==".oxlintrc.json"&&(t=getParentPath(".oxlintrc.json",this.config.projectRoot,{ignoreCase:true,skipCwd:false,includeNameInResults:true})),t&&existsSync(t)&&i.push("-c",t);}if(!i.includes("--type-aware")&&this.config.lint.oxlint.typeAware&&i.push("--type-aware"),i.includes("--tsconfig")||i.push("--tsconfig",this.tsconfig.tsconfigFilePath),!i.includes("-f")&&!i.includes("--format")&&i.push("-f",this.config.lint.oxlint.format||"stylish"),this.config.lint.oxlint.fix!==false&&!i.includes("--fix")&&!i.includes("--fix-suggestions")&&!i.includes("--fix-dangerously")&&(this.config.lint.oxlint.fix===true?i.push("--fix"):this.config.lint.oxlint.fix==="suggestions"?i.push("--fix-suggestions"):this.config.lint.oxlint.fix==="dangerously"&&i.push("--fix-dangerously")),this.config.lint.oxlint.oxlintPath){i.unshift(this.config.lint.oxlint.oxlintPath,this.config.sourceRoot);const t=await execute(i.join(" "),this.workspaceConfig.workspaceRoot);if(t.failed)throw new Error(`Oxlint process exited with code ${t.exitCode}.`)}else {const t=await isPackageListed("oxlint",this.config.projectRoot);i.unshift(t?replacePath(this.config.sourceRoot,this.config.projectRoot):this.config.sourceRoot);const o=await executePackage("oxlint",i,t?joinPaths(this.workspaceConfig.workspaceRoot,this.config.projectRoot):this.workspaceConfig.workspaceRoot);if(o.failed)throw new Error(`Oxlint process exited with code ${o.exitCode}.`)}}}}a(u,"plugin");var L=u;export{L as default,u as plugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { a as OxlintPluginContext, O as OxlintPluginOptions, c as OxlintPluginResolvedConfig, b as OxlintPluginUserConfig } from '../index-Dc_OruZK.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { a as OxlintPluginContext, O as OxlintPluginOptions, c as OxlintPluginResolvedConfig, b as OxlintPluginUserConfig } from '../index-Dc_OruZK.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { a as OxlintPluginContext, O as OxlintPluginOptions, c as OxlintPluginResolvedConfig, b as OxlintPluginUserConfig } from '../index-Dc_OruZK.cjs';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { a as OxlintPluginContext, O as OxlintPluginOptions, c as OxlintPluginResolvedConfig, b as OxlintPluginUserConfig } from '../index-Dc_OruZK.js';
|
|
2
|
+
import '@storm-software/build-tools/types';
|
|
3
|
+
import '@storm-software/config-tools/types';
|
|
4
|
+
import '@storm-software/config/types';
|
|
5
|
+
import '@stryke/types/base';
|
|
6
|
+
import '@stryke/types/configuration';
|
|
7
|
+
import '@stryke/types/file';
|
|
8
|
+
import 'vite';
|
|
9
|
+
import '@stryke/env/get-env-paths';
|
|
10
|
+
import '@stryke/types/package-json';
|
|
11
|
+
import 'jiti';
|
|
12
|
+
import 'oxc-parser';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'unplugin';
|
|
15
|
+
import '@stryke/types/tsconfig';
|
|
16
|
+
import 'typescript';
|
|
17
|
+
import '@stryke/json/types';
|
|
18
|
+
import 'memfs';
|
|
19
|
+
import 'node:fs';
|
|
20
|
+
import 'unionfs';
|
|
21
|
+
import '@stryke/types/array';
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-oxlint",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Oxlint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -88,21 +88,21 @@
|
|
|
88
88
|
"files": ["dist/**/*"],
|
|
89
89
|
"keywords": ["oxlint", "powerlines", "storm-software", "powerlines-plugin"],
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@storm-software/config-tools": "^1.188.
|
|
92
|
-
"@stryke/cli": "^0.12.
|
|
91
|
+
"@storm-software/config-tools": "^1.188.19",
|
|
92
|
+
"@stryke/cli": "^0.12.4",
|
|
93
93
|
"@stryke/convert": "^0.6.0",
|
|
94
|
-
"@stryke/fs": "^0.32.
|
|
95
|
-
"@stryke/path": "^0.
|
|
94
|
+
"@stryke/fs": "^0.32.10",
|
|
95
|
+
"@stryke/path": "^0.18.5",
|
|
96
96
|
"defu": "^6.1.4",
|
|
97
|
-
"oxlint": "^1.
|
|
97
|
+
"oxlint": "^1.25.0",
|
|
98
98
|
"oxlint-tsgolint": "^0.2.1",
|
|
99
|
-
"powerlines": "^0.
|
|
99
|
+
"powerlines": "^0.16.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
|
-
"@powerlines/nx": "^0.
|
|
103
|
-
"@storm-software/tsup": "^0.2.
|
|
104
|
-
"@types/node": "^22.
|
|
102
|
+
"@powerlines/nx": "^0.10.1",
|
|
103
|
+
"@storm-software/tsup": "^0.2.17",
|
|
104
|
+
"@types/node": "^22.19.0"
|
|
105
105
|
},
|
|
106
106
|
"publishConfig": { "access": "public" },
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "097e9f257b733719a3aead815ef79686f4c46f25"
|
|
108
108
|
}
|