@powerlines/plugin-oxlint 0.7.673 → 0.7.674
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/generate-config.d.cts +1 -1
- package/dist/helpers/generate-config.d.mts +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -0
- package/dist/plugin-iulHDbbP.d.cts +73 -0
- package/dist/plugin-iulHDbbP.d.cts.map +1 -0
- package/dist/plugin-iulHDbbP.d.mts +73 -0
- package/dist/plugin-iulHDbbP.d.mts.map +1 -0
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/plugin.d.cts +2 -73
- package/dist/types/plugin.d.mts +2 -73
- package/package.json +3 -3
- package/dist/types/plugin.d.cts.map +0 -1
- package/dist/types/plugin.d.mts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
require('./types/index.cjs');
|
|
2
3
|
let _stryke_cli_execute = require("@stryke/cli/execute");
|
|
3
4
|
let _stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
4
5
|
let _stryke_fs_exists = require("@stryke/fs/exists");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as OxlintPluginUserConfig, n as OxlintPluginOptions, r as OxlintPluginResolvedConfig, t as OxlintPluginContext } from "./plugin-iulHDbbP.cjs";
|
|
2
2
|
import "./types/index.cjs";
|
|
3
3
|
import { Plugin } from "powerlines";
|
|
4
4
|
//#region src/index.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as OxlintPluginUserConfig, n as OxlintPluginOptions, r as OxlintPluginResolvedConfig, t as OxlintPluginContext } from "./plugin-iulHDbbP.mjs";
|
|
2
2
|
import "./types/index.mjs";
|
|
3
3
|
import { Plugin } from "powerlines";
|
|
4
4
|
//#region src/index.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
+
//#region src/types/plugin.d.ts
|
|
3
|
+
interface OxlintPluginOptions {
|
|
4
|
+
/**
|
|
5
|
+
* A glob pattern or path to ignore files and directories.
|
|
6
|
+
*/
|
|
7
|
+
ignorePatterns?: string | string[];
|
|
8
|
+
/**
|
|
9
|
+
* The path to the Oxlint configuration file.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue ".oxlintrc.json"
|
|
12
|
+
*/
|
|
13
|
+
configFile?: string;
|
|
14
|
+
/**
|
|
15
|
+
* An array of rules to deny
|
|
16
|
+
*/
|
|
17
|
+
deny?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* An array of rules to allow
|
|
20
|
+
*/
|
|
21
|
+
allow?: string[];
|
|
22
|
+
/**
|
|
23
|
+
* An array of rules to warn about
|
|
24
|
+
*/
|
|
25
|
+
warn?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* Additional parameters to pass to the Oxlint CLI
|
|
28
|
+
*/
|
|
29
|
+
params?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The path to the Oxlint binary
|
|
32
|
+
*/
|
|
33
|
+
oxlintPath?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
|
|
36
|
+
*
|
|
37
|
+
* @defaultValue true
|
|
38
|
+
*/
|
|
39
|
+
typeAware?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether to automatically fix fixable issues.
|
|
42
|
+
*
|
|
43
|
+
* - `true` - Automatically fix fixable issues.
|
|
44
|
+
* - `false` - Do not fix any issues.
|
|
45
|
+
* - `"suggestions"` - Only apply fixes that are considered suggestions.
|
|
46
|
+
* - `"dangerously"` - Apply all fixes, including those that may change code behavior.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue true
|
|
49
|
+
*/
|
|
50
|
+
fix?: boolean | "suggestions" | "dangerously";
|
|
51
|
+
/**
|
|
52
|
+
* The output format for linting results.
|
|
53
|
+
*
|
|
54
|
+
* @defaultValue "stylish"
|
|
55
|
+
*/
|
|
56
|
+
format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
|
|
57
|
+
}
|
|
58
|
+
interface OxlintPluginUserConfig extends UserConfig {
|
|
59
|
+
/**
|
|
60
|
+
* Options for the Oxlint plugin.
|
|
61
|
+
*/
|
|
62
|
+
oxlint?: OxlintPluginOptions;
|
|
63
|
+
}
|
|
64
|
+
interface OxlintPluginResolvedConfig extends ResolvedConfig {
|
|
65
|
+
/**
|
|
66
|
+
* Options for the Oxlint plugin.
|
|
67
|
+
*/
|
|
68
|
+
oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
|
|
69
|
+
}
|
|
70
|
+
type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
71
|
+
//#endregion
|
|
72
|
+
export { OxlintPluginUserConfig as i, OxlintPluginOptions as n, OxlintPluginResolvedConfig as r, OxlintPluginContext as t };
|
|
73
|
+
//# sourceMappingURL=plugin-iulHDbbP.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-iulHDbbP.d.cts","names":[],"sources":["../src/types/plugin.ts"],"mappings":";;UAoBiB;;;;EAIf;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;EAOA;;;;;;;;;;;EAYA;;;;;;EAOA;;UAUe,+BAA+B;;;;EAI9C,SAAS;;UAGM,mCAAmC;;;;EAIlD,QAAQ,KACN,kGAGA,SACE,KACE;;KAYI,oBACV,wBAAwB,6BACtB,8BACA,cAAc"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { PluginContext, ResolvedConfig, UserConfig } from "powerlines";
|
|
2
|
+
//#region src/types/plugin.d.ts
|
|
3
|
+
interface OxlintPluginOptions {
|
|
4
|
+
/**
|
|
5
|
+
* A glob pattern or path to ignore files and directories.
|
|
6
|
+
*/
|
|
7
|
+
ignorePatterns?: string | string[];
|
|
8
|
+
/**
|
|
9
|
+
* The path to the Oxlint configuration file.
|
|
10
|
+
*
|
|
11
|
+
* @defaultValue ".oxlintrc.json"
|
|
12
|
+
*/
|
|
13
|
+
configFile?: string;
|
|
14
|
+
/**
|
|
15
|
+
* An array of rules to deny
|
|
16
|
+
*/
|
|
17
|
+
deny?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* An array of rules to allow
|
|
20
|
+
*/
|
|
21
|
+
allow?: string[];
|
|
22
|
+
/**
|
|
23
|
+
* An array of rules to warn about
|
|
24
|
+
*/
|
|
25
|
+
warn?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* Additional parameters to pass to the Oxlint CLI
|
|
28
|
+
*/
|
|
29
|
+
params?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The path to the Oxlint binary
|
|
32
|
+
*/
|
|
33
|
+
oxlintPath?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
|
|
36
|
+
*
|
|
37
|
+
* @defaultValue true
|
|
38
|
+
*/
|
|
39
|
+
typeAware?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether to automatically fix fixable issues.
|
|
42
|
+
*
|
|
43
|
+
* - `true` - Automatically fix fixable issues.
|
|
44
|
+
* - `false` - Do not fix any issues.
|
|
45
|
+
* - `"suggestions"` - Only apply fixes that are considered suggestions.
|
|
46
|
+
* - `"dangerously"` - Apply all fixes, including those that may change code behavior.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue true
|
|
49
|
+
*/
|
|
50
|
+
fix?: boolean | "suggestions" | "dangerously";
|
|
51
|
+
/**
|
|
52
|
+
* The output format for linting results.
|
|
53
|
+
*
|
|
54
|
+
* @defaultValue "stylish"
|
|
55
|
+
*/
|
|
56
|
+
format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
|
|
57
|
+
}
|
|
58
|
+
interface OxlintPluginUserConfig extends UserConfig {
|
|
59
|
+
/**
|
|
60
|
+
* Options for the Oxlint plugin.
|
|
61
|
+
*/
|
|
62
|
+
oxlint?: OxlintPluginOptions;
|
|
63
|
+
}
|
|
64
|
+
interface OxlintPluginResolvedConfig extends ResolvedConfig {
|
|
65
|
+
/**
|
|
66
|
+
* Options for the Oxlint plugin.
|
|
67
|
+
*/
|
|
68
|
+
oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
|
|
69
|
+
}
|
|
70
|
+
type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
71
|
+
//#endregion
|
|
72
|
+
export { OxlintPluginUserConfig as i, OxlintPluginOptions as n, OxlintPluginResolvedConfig as r, OxlintPluginContext as t };
|
|
73
|
+
//# sourceMappingURL=plugin-iulHDbbP.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-iulHDbbP.d.mts","names":[],"sources":["../src/types/plugin.ts"],"mappings":""}
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as OxlintPluginUserConfig, n as OxlintPluginOptions, r as OxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-iulHDbbP.cjs";
|
|
2
2
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as OxlintPluginUserConfig, n as OxlintPluginOptions, r as OxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-iulHDbbP.mjs";
|
|
2
2
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig };
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,73 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface OxlintPluginOptions {
|
|
4
|
-
/**
|
|
5
|
-
* A glob pattern or path to ignore files and directories.
|
|
6
|
-
*/
|
|
7
|
-
ignorePatterns?: string | string[];
|
|
8
|
-
/**
|
|
9
|
-
* The path to the Oxlint configuration file.
|
|
10
|
-
*
|
|
11
|
-
* @defaultValue ".oxlintrc.json"
|
|
12
|
-
*/
|
|
13
|
-
configFile?: string;
|
|
14
|
-
/**
|
|
15
|
-
* An array of rules to deny
|
|
16
|
-
*/
|
|
17
|
-
deny?: string[];
|
|
18
|
-
/**
|
|
19
|
-
* An array of rules to allow
|
|
20
|
-
*/
|
|
21
|
-
allow?: string[];
|
|
22
|
-
/**
|
|
23
|
-
* An array of rules to warn about
|
|
24
|
-
*/
|
|
25
|
-
warn?: string[];
|
|
26
|
-
/**
|
|
27
|
-
* Additional parameters to pass to the Oxlint CLI
|
|
28
|
-
*/
|
|
29
|
-
params?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The path to the Oxlint binary
|
|
32
|
-
*/
|
|
33
|
-
oxlintPath?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
|
|
36
|
-
*
|
|
37
|
-
* @defaultValue true
|
|
38
|
-
*/
|
|
39
|
-
typeAware?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether to automatically fix fixable issues.
|
|
42
|
-
*
|
|
43
|
-
* - `true` - Automatically fix fixable issues.
|
|
44
|
-
* - `false` - Do not fix any issues.
|
|
45
|
-
* - `"suggestions"` - Only apply fixes that are considered suggestions.
|
|
46
|
-
* - `"dangerously"` - Apply all fixes, including those that may change code behavior.
|
|
47
|
-
*
|
|
48
|
-
* @defaultValue true
|
|
49
|
-
*/
|
|
50
|
-
fix?: boolean | "suggestions" | "dangerously";
|
|
51
|
-
/**
|
|
52
|
-
* The output format for linting results.
|
|
53
|
-
*
|
|
54
|
-
* @defaultValue "stylish"
|
|
55
|
-
*/
|
|
56
|
-
format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
|
|
57
|
-
}
|
|
58
|
-
interface OxlintPluginUserConfig extends UserConfig {
|
|
59
|
-
/**
|
|
60
|
-
* Options for the Oxlint plugin.
|
|
61
|
-
*/
|
|
62
|
-
oxlint?: OxlintPluginOptions;
|
|
63
|
-
}
|
|
64
|
-
interface OxlintPluginResolvedConfig extends ResolvedConfig {
|
|
65
|
-
/**
|
|
66
|
-
* Options for the Oxlint plugin.
|
|
67
|
-
*/
|
|
68
|
-
oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
|
|
69
|
-
}
|
|
70
|
-
type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
71
|
-
//#endregion
|
|
72
|
-
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig };
|
|
73
|
-
//# sourceMappingURL=plugin.d.cts.map
|
|
1
|
+
import { i as OxlintPluginUserConfig, n as OxlintPluginOptions, r as OxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-iulHDbbP.cjs";
|
|
2
|
+
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,73 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
interface OxlintPluginOptions {
|
|
4
|
-
/**
|
|
5
|
-
* A glob pattern or path to ignore files and directories.
|
|
6
|
-
*/
|
|
7
|
-
ignorePatterns?: string | string[];
|
|
8
|
-
/**
|
|
9
|
-
* The path to the Oxlint configuration file.
|
|
10
|
-
*
|
|
11
|
-
* @defaultValue ".oxlintrc.json"
|
|
12
|
-
*/
|
|
13
|
-
configFile?: string;
|
|
14
|
-
/**
|
|
15
|
-
* An array of rules to deny
|
|
16
|
-
*/
|
|
17
|
-
deny?: string[];
|
|
18
|
-
/**
|
|
19
|
-
* An array of rules to allow
|
|
20
|
-
*/
|
|
21
|
-
allow?: string[];
|
|
22
|
-
/**
|
|
23
|
-
* An array of rules to warn about
|
|
24
|
-
*/
|
|
25
|
-
warn?: string[];
|
|
26
|
-
/**
|
|
27
|
-
* Additional parameters to pass to the Oxlint CLI
|
|
28
|
-
*/
|
|
29
|
-
params?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The path to the Oxlint binary
|
|
32
|
-
*/
|
|
33
|
-
oxlintPath?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
|
|
36
|
-
*
|
|
37
|
-
* @defaultValue true
|
|
38
|
-
*/
|
|
39
|
-
typeAware?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether to automatically fix fixable issues.
|
|
42
|
-
*
|
|
43
|
-
* - `true` - Automatically fix fixable issues.
|
|
44
|
-
* - `false` - Do not fix any issues.
|
|
45
|
-
* - `"suggestions"` - Only apply fixes that are considered suggestions.
|
|
46
|
-
* - `"dangerously"` - Apply all fixes, including those that may change code behavior.
|
|
47
|
-
*
|
|
48
|
-
* @defaultValue true
|
|
49
|
-
*/
|
|
50
|
-
fix?: boolean | "suggestions" | "dangerously";
|
|
51
|
-
/**
|
|
52
|
-
* The output format for linting results.
|
|
53
|
-
*
|
|
54
|
-
* @defaultValue "stylish"
|
|
55
|
-
*/
|
|
56
|
-
format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
|
|
57
|
-
}
|
|
58
|
-
interface OxlintPluginUserConfig extends UserConfig {
|
|
59
|
-
/**
|
|
60
|
-
* Options for the Oxlint plugin.
|
|
61
|
-
*/
|
|
62
|
-
oxlint?: OxlintPluginOptions;
|
|
63
|
-
}
|
|
64
|
-
interface OxlintPluginResolvedConfig extends ResolvedConfig {
|
|
65
|
-
/**
|
|
66
|
-
* Options for the Oxlint plugin.
|
|
67
|
-
*/
|
|
68
|
-
oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
|
|
69
|
-
}
|
|
70
|
-
type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
71
|
-
//#endregion
|
|
72
|
-
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig };
|
|
73
|
-
//# sourceMappingURL=plugin.d.mts.map
|
|
1
|
+
import { i as OxlintPluginUserConfig, n as OxlintPluginOptions, r as OxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-iulHDbbP.mjs";
|
|
2
|
+
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-oxlint",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.674",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Oxlint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -125,12 +125,12 @@
|
|
|
125
125
|
"powerlines": "^0.47.208"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
128
|
+
"@powerlines/plugin-plugin": "^0.12.621",
|
|
129
129
|
"@types/node": "^25.9.5"
|
|
130
130
|
},
|
|
131
131
|
"publishConfig": { "access": "public" },
|
|
132
132
|
"main": "./dist/index.cjs",
|
|
133
133
|
"module": "./dist/index.mjs",
|
|
134
134
|
"types": "./dist/index.d.cts",
|
|
135
|
-
"gitHead": "
|
|
135
|
+
"gitHead": "a060bb776b719e7628c30f82d4fb4305fbcd1581"
|
|
136
136
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;UAoBiB;;;;EAIf;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;;;;;EAOA;;;;;;;;;;;EAYA;;;;;;EAOA;;UAUe,+BAA+B;;;;EAI9C,SAAS;;UAGM,mCAAmC;;;;EAIlD,QAAQ,KACN,kGAGA,SACE,KACE;;KAYI,oBACV,wBAAwB,6BACtB,8BACA,cAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":""}
|