@powerlines/plugin-oxlint 0.7.62 → 0.7.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/generate-config.cjs +45 -1
- package/dist/helpers/generate-config.d.cts +12 -2
- package/dist/helpers/generate-config.d.mts +12 -2
- package/dist/helpers/generate-config.mjs +45 -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 +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- 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 +82 -1
- package/dist/types/plugin.d.mts +82 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +10 -10
- package/dist/generate-config-BDBLhrMm.d.cts +0 -13
- package/dist/generate-config-C-r5Jx4F.mjs +0 -45
- package/dist/generate-config-ClmGm8Rq.cjs +0 -45
- package/dist/generate-config-CsYKvWjE.d.mts +0 -13
- package/dist/index-D-CYNcT9.d.mts +0 -1
- package/dist/index-D6CnpA_r.d.cts +0 -1
- package/dist/plugin-CUo9w01f.d.cts +0 -1714
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-DzeYlbKJ.mjs +0 -1
- package/dist/plugin-eW19BkU3.d.mts +0 -1714
- package/dist/types-BKeuN6sy.mjs +0 -1
- package/dist/types-DHkg7xmX.cjs +0 -0
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,2 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResolvedConfig } from "../powerlines/src/types/resolved.mjs";
|
|
2
|
+
import { PluginContext } from "../powerlines/src/types/context.mjs";
|
|
3
|
+
import { UserConfig } from "../powerlines/src/types/config.mjs";
|
|
4
|
+
|
|
5
|
+
//#region src/types/plugin.d.ts
|
|
6
|
+
interface OxlintPluginOptions {
|
|
7
|
+
/**
|
|
8
|
+
* A glob pattern or path to ignore files and directories.
|
|
9
|
+
*/
|
|
10
|
+
ignorePatterns?: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* The path to the Oxlint configuration file.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue ".oxlintrc.json"
|
|
15
|
+
*/
|
|
16
|
+
configFile?: string;
|
|
17
|
+
/**
|
|
18
|
+
* An array of rules to deny
|
|
19
|
+
*/
|
|
20
|
+
deny?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* An array of rules to allow
|
|
23
|
+
*/
|
|
24
|
+
allow?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* An array of rules to warn about
|
|
27
|
+
*/
|
|
28
|
+
warn?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Additional parameters to pass to the Oxlint CLI
|
|
31
|
+
*/
|
|
32
|
+
params?: string;
|
|
33
|
+
/**
|
|
34
|
+
* The path to the Oxlint binary
|
|
35
|
+
*/
|
|
36
|
+
oxlintPath?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to enable [type-aware linting](https://oxc.rs/docs/guide/usage/linter/type-aware.html)
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue true
|
|
41
|
+
*/
|
|
42
|
+
typeAware?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether to automatically fix fixable issues.
|
|
45
|
+
*
|
|
46
|
+
* - `true` - Automatically fix fixable issues.
|
|
47
|
+
* - `false` - Do not fix any issues.
|
|
48
|
+
* - `"suggestions"` - Only apply fixes that are considered suggestions.
|
|
49
|
+
* - `"dangerously"` - Apply all fixes, including those that may change code behavior.
|
|
50
|
+
*
|
|
51
|
+
* @defaultValue true
|
|
52
|
+
*/
|
|
53
|
+
fix?: boolean | "suggestions" | "dangerously";
|
|
54
|
+
/**
|
|
55
|
+
* The output format for linting results.
|
|
56
|
+
*
|
|
57
|
+
* @defaultValue "stylish"
|
|
58
|
+
*/
|
|
59
|
+
format?: "stylish" | "checkstyle" | "github" | "gitlab" | "json" | "junit" | "unix";
|
|
60
|
+
}
|
|
61
|
+
interface OxlintPluginUserConfig extends UserConfig {
|
|
62
|
+
/**
|
|
63
|
+
* Options for the Oxlint plugin.
|
|
64
|
+
*/
|
|
65
|
+
lint?: {
|
|
66
|
+
oxlint?: OxlintPluginOptions;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
interface OxlintPluginResolvedConfig extends ResolvedConfig {
|
|
70
|
+
/**
|
|
71
|
+
* Options for the Oxlint plugin.
|
|
72
|
+
*/
|
|
73
|
+
lint: {
|
|
74
|
+
oxlint: Omit<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format"> & Required<Pick<OxlintPluginOptions, "configFile" | "deny" | "allow" | "warn" | "typeAware" | "fix" | "format">>;
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
type OxlintPluginContext<TResolvedConfig extends OxlintPluginResolvedConfig = OxlintPluginResolvedConfig> = PluginContext<TResolvedConfig>;
|
|
78
|
+
declare type __ΩOxlintPluginOptions = any[];
|
|
79
|
+
declare type __ΩOxlintPluginUserConfig = any[];
|
|
80
|
+
declare type __ΩOxlintPluginResolvedConfig = any[];
|
|
81
|
+
declare type __ΩOxlintPluginContext = any[];
|
|
82
|
+
//#endregion
|
|
2
83
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
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-oxlint",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Oxlint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -100,21 +100,21 @@
|
|
|
100
100
|
"files": ["dist/**/*"],
|
|
101
101
|
"keywords": ["oxlint", "powerlines", "storm-software", "powerlines-plugin"],
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@storm-software/config-tools": "^1.188.
|
|
104
|
-
"@stryke/cli": "^0.12.
|
|
105
|
-
"@stryke/convert": "^0.6.
|
|
106
|
-
"@stryke/fs": "^0.33.
|
|
107
|
-
"@stryke/path": "^0.22.
|
|
103
|
+
"@storm-software/config-tools": "^1.188.60",
|
|
104
|
+
"@stryke/cli": "^0.12.30",
|
|
105
|
+
"@stryke/convert": "^0.6.24",
|
|
106
|
+
"@stryke/fs": "^0.33.20",
|
|
107
|
+
"@stryke/path": "^0.22.11",
|
|
108
108
|
"defu": "^6.1.4",
|
|
109
109
|
"oxlint": "^1.31.0",
|
|
110
110
|
"oxlint-tsgolint": "^0.2.1",
|
|
111
|
-
"powerlines": "^0.30.
|
|
111
|
+
"powerlines": "^0.30.10"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@powerlines/nx": "^0.10.
|
|
115
|
-
"@storm-software/tsup": "^0.2.
|
|
114
|
+
"@powerlines/nx": "^0.10.59",
|
|
115
|
+
"@storm-software/tsup": "^0.2.58",
|
|
116
116
|
"@types/node": "^24.10.1"
|
|
117
117
|
},
|
|
118
118
|
"publishConfig": { "access": "public" },
|
|
119
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "1fa17406f69248e0a35ca56c09b1f4589e4d49d7"
|
|
120
120
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { n as OxlintPluginOptions } from "./plugin-CUo9w01f.cjs";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/generate-config.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generates an Oxlint configuration file content based on the provided options.
|
|
7
|
-
*
|
|
8
|
-
* @param options - The options for the Oxlint plugin.
|
|
9
|
-
* @returns The generated configuration as a string.
|
|
10
|
-
*/
|
|
11
|
-
declare function generateConfig(options?: OxlintPluginOptions): string;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { generateConfig as t };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import{toArray as e}from"@stryke/convert/neutral";function t(t={}){return`{
|
|
2
|
-
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": [
|
|
4
|
-
"import",
|
|
5
|
-
"jsdoc",
|
|
6
|
-
"unicorn",
|
|
7
|
-
"typescript",
|
|
8
|
-
"oxc"
|
|
9
|
-
],
|
|
10
|
-
"ignorePatterns": [
|
|
11
|
-
"crates/**",
|
|
12
|
-
"dist/**",
|
|
13
|
-
"build/**",
|
|
14
|
-
"coverage/**",
|
|
15
|
-
"node_modules/**",
|
|
16
|
-
"temp/**",
|
|
17
|
-
"tests/fixtures/**"${t.ignorePatterns?`,
|
|
18
|
-
${e(t.ignorePatterns).map(e=>`"${e}"`).join(`,
|
|
19
|
-
`)}`:``}
|
|
20
|
-
],
|
|
21
|
-
"rules": {
|
|
22
|
-
"import/named": "error",
|
|
23
|
-
"import/namespace": [
|
|
24
|
-
"error",
|
|
25
|
-
{
|
|
26
|
-
"allowComputed": true
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"no-unused-expressions": [
|
|
30
|
-
"warn",
|
|
31
|
-
{
|
|
32
|
-
"allowShortCircuit": true,
|
|
33
|
-
"allowTaggedTemplates": true
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"no-unused-vars": [
|
|
37
|
-
"warn",
|
|
38
|
-
{
|
|
39
|
-
"varsIgnorePattern": "^_",
|
|
40
|
-
"argsIgnorePattern": "^_"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"unicorn/prefer-node-protocol": "error"
|
|
44
|
-
}
|
|
45
|
-
}`}export{t};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
let e=require(`@stryke/convert/neutral`);function t(t={}){return`{
|
|
2
|
-
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": [
|
|
4
|
-
"import",
|
|
5
|
-
"jsdoc",
|
|
6
|
-
"unicorn",
|
|
7
|
-
"typescript",
|
|
8
|
-
"oxc"
|
|
9
|
-
],
|
|
10
|
-
"ignorePatterns": [
|
|
11
|
-
"crates/**",
|
|
12
|
-
"dist/**",
|
|
13
|
-
"build/**",
|
|
14
|
-
"coverage/**",
|
|
15
|
-
"node_modules/**",
|
|
16
|
-
"temp/**",
|
|
17
|
-
"tests/fixtures/**"${t.ignorePatterns?`,
|
|
18
|
-
${(0,e.toArray)(t.ignorePatterns).map(e=>`"${e}"`).join(`,
|
|
19
|
-
`)}`:``}
|
|
20
|
-
],
|
|
21
|
-
"rules": {
|
|
22
|
-
"import/named": "error",
|
|
23
|
-
"import/namespace": [
|
|
24
|
-
"error",
|
|
25
|
-
{
|
|
26
|
-
"allowComputed": true
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"no-unused-expressions": [
|
|
30
|
-
"warn",
|
|
31
|
-
{
|
|
32
|
-
"allowShortCircuit": true,
|
|
33
|
-
"allowTaggedTemplates": true
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"no-unused-vars": [
|
|
37
|
-
"warn",
|
|
38
|
-
{
|
|
39
|
-
"varsIgnorePattern": "^_",
|
|
40
|
-
"argsIgnorePattern": "^_"
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
"unicorn/prefer-node-protocol": "error"
|
|
44
|
-
}
|
|
45
|
-
}`}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { n as OxlintPluginOptions } from "./plugin-eW19BkU3.mjs";
|
|
2
|
-
|
|
3
|
-
//#region src/helpers/generate-config.d.ts
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Generates an Oxlint configuration file content based on the provided options.
|
|
7
|
-
*
|
|
8
|
-
* @param options - The options for the Oxlint plugin.
|
|
9
|
-
* @returns The generated configuration as a string.
|
|
10
|
-
*/
|
|
11
|
-
declare function generateConfig(options?: OxlintPluginOptions): string;
|
|
12
|
-
//#endregion
|
|
13
|
-
export { generateConfig as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|