@powerlines/plugin-oxlint 0.7.242 → 0.7.243
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/generate-config-BJgmb4Je.mjs +59 -0
- package/dist/generate-config-BJgmb4Je.mjs.map +1 -0
- package/dist/generate-config-BKQYOLby.d.cts +14 -0
- package/dist/generate-config-BKQYOLby.d.cts.map +1 -0
- package/dist/generate-config-BZjB8irN.cjs +63 -0
- package/dist/generate-config-CtqHlwuj.d.mts +14 -0
- package/dist/generate-config-CtqHlwuj.d.mts.map +1 -0
- package/dist/helpers/generate-config.cjs +2 -57
- package/dist/helpers/generate-config.d.cts +2 -12
- package/dist/helpers/generate-config.d.mts +2 -12
- package/dist/helpers/generate-config.mjs +1 -56
- package/dist/helpers/index.cjs +2 -2
- package/dist/helpers/index.d.cts +2 -1
- package/dist/helpers/index.d.mts +2 -1
- package/dist/helpers/index.mjs +1 -1
- package/dist/index-D-CYNcT9.d.mts +1 -0
- package/dist/index-D6CnpA_r.d.cts +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +4 -3
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +4 -3
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-BsPGUUSA.d.mts +84 -0
- package/dist/plugin-BsPGUUSA.d.mts.map +1 -0
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-DNsqegEV.mjs +1 -0
- package/dist/plugin-n-BO5XLy.d.cts +84 -0
- package/dist/plugin-n-BO5XLy.d.cts.map +1 -0
- package/dist/types/index.cjs +2 -0
- package/dist/types/index.d.cts +2 -1
- package/dist/types/index.d.mts +2 -1
- package/dist/types/index.mjs +3 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +1 -82
- package/dist/types/plugin.d.mts +1 -82
- package/dist/types/plugin.mjs +2 -0
- package/dist/types-CpP_DWx6.mjs +1 -0
- package/dist/types-DHkg7xmX.cjs +0 -0
- package/package.json +4 -4
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { toArray } from "@stryke/convert/neutral";
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/generate-config.ts
|
|
4
|
+
/**
|
|
5
|
+
* Generates an Oxlint configuration file content based on the provided options.
|
|
6
|
+
*
|
|
7
|
+
* @param options - The options for the Oxlint plugin.
|
|
8
|
+
* @returns The generated configuration as a string.
|
|
9
|
+
*/
|
|
10
|
+
function generateConfig(options = {}) {
|
|
11
|
+
return `{
|
|
12
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
13
|
+
"plugins": [
|
|
14
|
+
"import",
|
|
15
|
+
"jsdoc",
|
|
16
|
+
"unicorn",
|
|
17
|
+
"typescript",
|
|
18
|
+
"oxc"
|
|
19
|
+
],
|
|
20
|
+
"ignorePatterns": [
|
|
21
|
+
"crates/**",
|
|
22
|
+
"dist/**",
|
|
23
|
+
"build/**",
|
|
24
|
+
"coverage/**",
|
|
25
|
+
"node_modules/**",
|
|
26
|
+
"temp/**",
|
|
27
|
+
"tests/fixtures/**"${options.ignorePatterns ? `,
|
|
28
|
+
${toArray(options.ignorePatterns).map((pattern) => `"${pattern}"`).join(",\n ")}` : ""}
|
|
29
|
+
],
|
|
30
|
+
"rules": {
|
|
31
|
+
"import/named": "error",
|
|
32
|
+
"import/namespace": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"allowComputed": true
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"no-unused-expressions": [
|
|
39
|
+
"warn",
|
|
40
|
+
{
|
|
41
|
+
"allowShortCircuit": true,
|
|
42
|
+
"allowTaggedTemplates": true
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"no-unused-vars": [
|
|
46
|
+
"warn",
|
|
47
|
+
{
|
|
48
|
+
"varsIgnorePattern": "^_",
|
|
49
|
+
"argsIgnorePattern": "^_"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"unicorn/prefer-node-protocol": "error"
|
|
53
|
+
}
|
|
54
|
+
}`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
export { generateConfig as t };
|
|
59
|
+
//# sourceMappingURL=generate-config-BJgmb4Je.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-config-BJgmb4Je.mjs","names":[],"sources":["../src/helpers/generate-config.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 { toArray } from \"@stryke/convert/neutral\";\nimport { OxlintPluginOptions } from \"../types/plugin\";\n\n/**\n * Generates an Oxlint configuration file content based on the provided options.\n *\n * @param options - The options for the Oxlint plugin.\n * @returns The generated configuration as a string.\n */\nexport function generateConfig(options: OxlintPluginOptions = {}): string {\n return `{\n \"$schema\": \"./node_modules/oxlint/configuration_schema.json\",\n \"plugins\": [\n \"import\",\n \"jsdoc\",\n \"unicorn\",\n \"typescript\",\n \"oxc\"\n ],\n \"ignorePatterns\": [\n \"crates/**\",\n \"dist/**\",\n \"build/**\",\n \"coverage/**\",\n \"node_modules/**\",\n \"temp/**\",\n \"tests/fixtures/**\"${\n options.ignorePatterns\n ? `,\n ${toArray(options.ignorePatterns)\n .map(pattern => `\"${pattern}\"`)\n .join(\",\\n \")}`\n : \"\"\n }\n ],\n \"rules\": {\n \"import/named\": \"error\",\n \"import/namespace\": [\n \"error\",\n {\n \"allowComputed\": true\n }\n ],\n \"no-unused-expressions\": [\n \"warn\",\n {\n \"allowShortCircuit\": true,\n \"allowTaggedTemplates\": true\n }\n ],\n \"no-unused-vars\": [\n \"warn\",\n {\n \"varsIgnorePattern\": \"^_\",\n \"argsIgnorePattern\": \"^_\"\n }\n ],\n \"unicorn/prefer-node-protocol\": \"error\"\n }\n}`;\n}\n"],"mappings":";;;;;;;;;AA2BA,SAAgB,eAAe,UAA+B,EAAE,EAAU;AACxE,QAAO;;;;;;;;;;;;;;;;yBAiBH,QAAQ,iBACJ;MACJ,QAAQ,QAAQ,eAAe,CAC9B,KAAI,YAAW,IAAI,QAAQ,GAAG,CAC9B,KAAK,UAAU,KACZ,GACL"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { n as OxlintPluginOptions } from "./plugin-n-BO5XLy.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 };
|
|
14
|
+
//# sourceMappingURL=generate-config-BKQYOLby.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-config-BKQYOLby.d.cts","names":[],"sources":["../src/helpers/generate-config.ts"],"sourcesContent":[],"mappings":";;;;;;AA2BA;;;;iBAAgB,cAAA,WAAwB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
let __stryke_convert_neutral = require("@stryke/convert/neutral");
|
|
2
|
+
|
|
3
|
+
//#region src/helpers/generate-config.ts
|
|
4
|
+
/**
|
|
5
|
+
* Generates an Oxlint configuration file content based on the provided options.
|
|
6
|
+
*
|
|
7
|
+
* @param options - The options for the Oxlint plugin.
|
|
8
|
+
* @returns The generated configuration as a string.
|
|
9
|
+
*/
|
|
10
|
+
function generateConfig(options = {}) {
|
|
11
|
+
return `{
|
|
12
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
13
|
+
"plugins": [
|
|
14
|
+
"import",
|
|
15
|
+
"jsdoc",
|
|
16
|
+
"unicorn",
|
|
17
|
+
"typescript",
|
|
18
|
+
"oxc"
|
|
19
|
+
],
|
|
20
|
+
"ignorePatterns": [
|
|
21
|
+
"crates/**",
|
|
22
|
+
"dist/**",
|
|
23
|
+
"build/**",
|
|
24
|
+
"coverage/**",
|
|
25
|
+
"node_modules/**",
|
|
26
|
+
"temp/**",
|
|
27
|
+
"tests/fixtures/**"${options.ignorePatterns ? `,
|
|
28
|
+
${(0, __stryke_convert_neutral.toArray)(options.ignorePatterns).map((pattern) => `"${pattern}"`).join(",\n ")}` : ""}
|
|
29
|
+
],
|
|
30
|
+
"rules": {
|
|
31
|
+
"import/named": "error",
|
|
32
|
+
"import/namespace": [
|
|
33
|
+
"error",
|
|
34
|
+
{
|
|
35
|
+
"allowComputed": true
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"no-unused-expressions": [
|
|
39
|
+
"warn",
|
|
40
|
+
{
|
|
41
|
+
"allowShortCircuit": true,
|
|
42
|
+
"allowTaggedTemplates": true
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"no-unused-vars": [
|
|
46
|
+
"warn",
|
|
47
|
+
{
|
|
48
|
+
"varsIgnorePattern": "^_",
|
|
49
|
+
"argsIgnorePattern": "^_"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"unicorn/prefer-node-protocol": "error"
|
|
53
|
+
}
|
|
54
|
+
}`;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
//#endregion
|
|
58
|
+
Object.defineProperty(exports, 'generateConfig', {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return generateConfig;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { n as OxlintPluginOptions } from "./plugin-BsPGUUSA.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 };
|
|
14
|
+
//# sourceMappingURL=generate-config-CtqHlwuj.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-config-CtqHlwuj.d.mts","names":[],"sources":["../src/helpers/generate-config.ts"],"sourcesContent":[],"mappings":";;;;;;AA2BA;;;;iBAAgB,cAAA,WAAwB"}
|
|
@@ -1,58 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
const require_generate_config = require('../generate-config-BZjB8irN.cjs');
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Generates an Oxlint configuration file content based on the provided options.
|
|
6
|
-
*
|
|
7
|
-
* @param options - The options for the Oxlint plugin.
|
|
8
|
-
* @returns The generated configuration as a string.
|
|
9
|
-
*/
|
|
10
|
-
function generateConfig(options = {}) {
|
|
11
|
-
return `{
|
|
12
|
-
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
13
|
-
"plugins": [
|
|
14
|
-
"import",
|
|
15
|
-
"jsdoc",
|
|
16
|
-
"unicorn",
|
|
17
|
-
"typescript",
|
|
18
|
-
"oxc"
|
|
19
|
-
],
|
|
20
|
-
"ignorePatterns": [
|
|
21
|
-
"crates/**",
|
|
22
|
-
"dist/**",
|
|
23
|
-
"build/**",
|
|
24
|
-
"coverage/**",
|
|
25
|
-
"node_modules/**",
|
|
26
|
-
"temp/**",
|
|
27
|
-
"tests/fixtures/**"${options.ignorePatterns ? `,
|
|
28
|
-
${(0, __stryke_convert_neutral.toArray)(options.ignorePatterns).map((pattern) => `"${pattern}"`).join(",\n ")}` : ""}
|
|
29
|
-
],
|
|
30
|
-
"rules": {
|
|
31
|
-
"import/named": "error",
|
|
32
|
-
"import/namespace": [
|
|
33
|
-
"error",
|
|
34
|
-
{
|
|
35
|
-
"allowComputed": true
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"no-unused-expressions": [
|
|
39
|
-
"warn",
|
|
40
|
-
{
|
|
41
|
-
"allowShortCircuit": true,
|
|
42
|
-
"allowTaggedTemplates": true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"no-unused-vars": [
|
|
46
|
-
"warn",
|
|
47
|
-
{
|
|
48
|
-
"varsIgnorePattern": "^_",
|
|
49
|
-
"argsIgnorePattern": "^_"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"unicorn/prefer-node-protocol": "error"
|
|
53
|
-
}
|
|
54
|
-
}`;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
|
-
exports.generateConfig = generateConfig;
|
|
3
|
+
exports.generateConfig = require_generate_config.generateConfig;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import
|
|
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
|
|
1
|
+
import "../plugin-n-BO5XLy.cjs";
|
|
2
|
+
import { t as generateConfig } from "../generate-config-BKQYOLby.cjs";
|
|
13
3
|
export { generateConfig };
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import
|
|
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
|
|
1
|
+
import "../plugin-BsPGUUSA.mjs";
|
|
2
|
+
import { t as generateConfig } from "../generate-config-CtqHlwuj.mjs";
|
|
13
3
|
export { generateConfig };
|
|
@@ -1,58 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as generateConfig } from "../generate-config-BJgmb4Je.mjs";
|
|
2
2
|
|
|
3
|
-
//#region src/helpers/generate-config.ts
|
|
4
|
-
/**
|
|
5
|
-
* Generates an Oxlint configuration file content based on the provided options.
|
|
6
|
-
*
|
|
7
|
-
* @param options - The options for the Oxlint plugin.
|
|
8
|
-
* @returns The generated configuration as a string.
|
|
9
|
-
*/
|
|
10
|
-
function generateConfig(options = {}) {
|
|
11
|
-
return `{
|
|
12
|
-
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
13
|
-
"plugins": [
|
|
14
|
-
"import",
|
|
15
|
-
"jsdoc",
|
|
16
|
-
"unicorn",
|
|
17
|
-
"typescript",
|
|
18
|
-
"oxc"
|
|
19
|
-
],
|
|
20
|
-
"ignorePatterns": [
|
|
21
|
-
"crates/**",
|
|
22
|
-
"dist/**",
|
|
23
|
-
"build/**",
|
|
24
|
-
"coverage/**",
|
|
25
|
-
"node_modules/**",
|
|
26
|
-
"temp/**",
|
|
27
|
-
"tests/fixtures/**"${options.ignorePatterns ? `,
|
|
28
|
-
${toArray(options.ignorePatterns).map((pattern) => `"${pattern}"`).join(",\n ")}` : ""}
|
|
29
|
-
],
|
|
30
|
-
"rules": {
|
|
31
|
-
"import/named": "error",
|
|
32
|
-
"import/namespace": [
|
|
33
|
-
"error",
|
|
34
|
-
{
|
|
35
|
-
"allowComputed": true
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"no-unused-expressions": [
|
|
39
|
-
"warn",
|
|
40
|
-
{
|
|
41
|
-
"allowShortCircuit": true,
|
|
42
|
-
"allowTaggedTemplates": true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"no-unused-vars": [
|
|
46
|
-
"warn",
|
|
47
|
-
{
|
|
48
|
-
"varsIgnorePattern": "^_",
|
|
49
|
-
"argsIgnorePattern": "^_"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"unicorn/prefer-node-protocol": "error"
|
|
53
|
-
}
|
|
54
|
-
}`;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
//#endregion
|
|
58
3
|
export { generateConfig };
|
package/dist/helpers/index.cjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_generate_config = require('../generate-config-BZjB8irN.cjs');
|
|
2
2
|
|
|
3
|
-
exports.generateConfig =
|
|
3
|
+
exports.generateConfig = require_generate_config.generateConfig;
|
package/dist/helpers/index.d.cts
CHANGED
package/dist/helpers/index.d.mts
CHANGED
package/dist/helpers/index.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
+
require('./plugin-DHXHjv16.cjs');
|
|
3
|
+
require('./types-DHkg7xmX.cjs');
|
|
2
4
|
let __stryke_cli_execute = require("@stryke/cli/execute");
|
|
3
5
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
4
6
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OxlintPluginContext,
|
|
2
|
-
import "./
|
|
1
|
+
import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "./plugin-n-BO5XLy.cjs";
|
|
2
|
+
import "./index-D6CnpA_r.cjs";
|
|
3
3
|
import { Plugin } from "powerlines/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -9,4 +9,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
9
9
|
*/
|
|
10
10
|
declare function plugin(options?: OxlintPluginOptions): Plugin<OxlintPluginContext>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig, plugin as default, plugin };
|
|
12
|
+
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig, plugin as default, plugin };
|
|
13
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAiCA;AACW,iBADK,MAAA,CACL,OAAA,CAAA,EAAA,mBAAA,CAAA,EACR,MADQ,CACD,mBADC,CAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OxlintPluginContext,
|
|
2
|
-
import "./
|
|
1
|
+
import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "./plugin-BsPGUUSA.mjs";
|
|
2
|
+
import "./index-D-CYNcT9.mjs";
|
|
3
3
|
import { Plugin } from "powerlines/types/plugin";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -9,4 +9,5 @@ import { Plugin } from "powerlines/types/plugin";
|
|
|
9
9
|
*/
|
|
10
10
|
declare function plugin(options?: OxlintPluginOptions): Plugin<OxlintPluginContext>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig, plugin as default, plugin };
|
|
12
|
+
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig, plugin as default, plugin };
|
|
13
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAiCA;AACW,iBADK,MAAA,CACL,OAAA,CAAA,EAAA,mBAAA,CAAA,EACR,MADQ,CACD,mBADC,CAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "./plugin-DNsqegEV.mjs";
|
|
2
|
+
import "./types-CpP_DWx6.mjs";
|
|
1
3
|
import { execute, executePackage } from "@stryke/cli/execute";
|
|
2
4
|
import { toArray } from "@stryke/convert/to-array";
|
|
3
5
|
import { existsSync } from "@stryke/fs/exists";
|
|
@@ -75,4 +77,5 @@ function plugin(options = {}) {
|
|
|
75
77
|
var src_default = plugin;
|
|
76
78
|
|
|
77
79
|
//#endregion
|
|
78
|
-
export { src_default as default, plugin };
|
|
80
|
+
export { src_default as default, plugin };
|
|
81
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["args: string[]"],"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 { execute, executePackage } from \"@stryke/cli/execute\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { existsSync } from \"@stryke/fs/exists\";\nimport { getParentPath } from \"@stryke/fs/get-parent-path\";\nimport { isPackageListed } from \"@stryke/fs/package-fns\";\nimport { joinPaths } from \"@stryke/path/join\";\nimport { replacePath } from \"@stryke/path/replace\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { OxlintPluginContext, OxlintPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to assist in linting a project with Biome.\n */\nexport function plugin(\n options: OxlintPluginOptions = {}\n): Plugin<OxlintPluginContext> {\n return {\n name: \"oxlint\",\n async config() {\n this.debug(\n \"Providing default configuration for the Powerlines `oxlint` linting plugin.\"\n );\n\n return {\n lint: {\n oxlint: {\n configFile: \".oxlintrc.json\",\n deny: [],\n allow: [],\n warn: [],\n typeAware: true,\n fix: true,\n format: \"stylish\",\n ...options\n }\n }\n };\n },\n configResolved() {\n this.devDependencies.oxlint = \"^1.24.0\";\n if (this.config.lint.oxlint.typeAware) {\n this.devDependencies[\"oxlint-tsgolint\"] = \"^0.2.1\";\n }\n },\n async lint() {\n this.debug(\"Linting project files with Oxlint.\");\n\n const args: string[] = [];\n\n if (this.config.lint.oxlint.params) {\n args.push(...this.config.lint.oxlint.params.split(\" \").filter(Boolean));\n }\n\n if (\n !args.includes(\"--ignore-pattern\") &&\n this.config.lint.oxlint.ignorePatterns\n ) {\n args.push(\n `--ignore-pattern=${toArray(this.config.lint.oxlint.ignorePatterns).join(\",\")}`\n );\n }\n\n this.config.lint.oxlint.deny.forEach(d => args.push(\"-D\", d));\n this.config.lint.oxlint.allow.forEach(a => args.push(\"-A\", a));\n this.config.lint.oxlint.warn.forEach(w => args.push(\"-W\", w));\n\n if (!args.includes(\"-c\") && !args.includes(\"--config\")) {\n let configFile = getParentPath(\n this.config.lint.oxlint.configFile,\n this.config.projectRoot,\n {\n ignoreCase: true,\n skipCwd: false,\n includeNameInResults: true\n }\n );\n if (\n configFile &&\n !existsSync(configFile) &&\n this.config.lint.oxlint.configFile !== \".oxlintrc.json\"\n ) {\n configFile = getParentPath(\n \".oxlintrc.json\",\n this.config.projectRoot,\n {\n ignoreCase: true,\n skipCwd: false,\n includeNameInResults: true\n }\n );\n }\n\n if (configFile && existsSync(configFile)) {\n args.push(\"-c\", configFile);\n }\n }\n\n if (!args.includes(\"--type-aware\") && this.config.lint.oxlint.typeAware) {\n args.push(\"--type-aware\");\n }\n\n if (!args.includes(\"--tsconfig\")) {\n args.push(\"--tsconfig\", this.tsconfig.tsconfigFilePath);\n }\n\n if (!args.includes(\"-f\") && !args.includes(\"--format\")) {\n args.push(\"-f\", this.config.lint.oxlint.format || \"stylish\");\n }\n\n if (\n this.config.lint.oxlint.fix !== false &&\n !args.includes(\"--fix\") &&\n !args.includes(\"--fix-suggestions\") &&\n !args.includes(\"--fix-dangerously\")\n ) {\n if (this.config.lint.oxlint.fix === true) {\n args.push(\"--fix\");\n } else if (this.config.lint.oxlint.fix === \"suggestions\") {\n args.push(\"--fix-suggestions\");\n } else if (this.config.lint.oxlint.fix === \"dangerously\") {\n args.push(\"--fix-dangerously\");\n }\n }\n\n if (!this.config.lint.oxlint.oxlintPath) {\n const isOxlintListed = await isPackageListed(\n \"oxlint\",\n this.config.projectRoot\n );\n\n args.unshift(\n isOxlintListed\n ? replacePath(this.config.sourceRoot, this.config.projectRoot)\n : this.config.sourceRoot\n );\n\n const result = await executePackage(\n \"oxlint\",\n args,\n isOxlintListed\n ? joinPaths(\n this.workspaceConfig.workspaceRoot,\n this.config.projectRoot\n )\n : this.workspaceConfig.workspaceRoot\n );\n if (result.failed) {\n throw new Error(\n `Oxlint process exited with code ${result.exitCode}.`\n );\n }\n } else {\n args.unshift(\n this.config.lint.oxlint.oxlintPath,\n this.config.sourceRoot\n );\n\n const result = await execute(\n args.join(\" \"),\n this.workspaceConfig.workspaceRoot\n );\n if (result.failed) {\n throw new Error(\n `Oxlint process exited with code ${result.exitCode}.`\n );\n }\n }\n }\n };\n}\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;AAiCA,SAAgB,OACd,UAA+B,EAAE,EACJ;AAC7B,QAAO;EACL,MAAM;EACN,MAAM,SAAS;AACb,QAAK,MACH,8EACD;AAED,UAAO,EACL,MAAM,EACJ,QAAQ;IACN,YAAY;IACZ,MAAM,EAAE;IACR,OAAO,EAAE;IACT,MAAM,EAAE;IACR,WAAW;IACX,KAAK;IACL,QAAQ;IACR,GAAG;IACJ,EACF,EACF;;EAEH,iBAAiB;AACf,QAAK,gBAAgB,SAAS;AAC9B,OAAI,KAAK,OAAO,KAAK,OAAO,UAC1B,MAAK,gBAAgB,qBAAqB;;EAG9C,MAAM,OAAO;AACX,QAAK,MAAM,qCAAqC;GAEhD,MAAMA,OAAiB,EAAE;AAEzB,OAAI,KAAK,OAAO,KAAK,OAAO,OAC1B,MAAK,KAAK,GAAG,KAAK,OAAO,KAAK,OAAO,OAAO,MAAM,IAAI,CAAC,OAAO,QAAQ,CAAC;AAGzE,OACE,CAAC,KAAK,SAAS,mBAAmB,IAClC,KAAK,OAAO,KAAK,OAAO,eAExB,MAAK,KACH,oBAAoB,QAAQ,KAAK,OAAO,KAAK,OAAO,eAAe,CAAC,KAAK,IAAI,GAC9E;AAGH,QAAK,OAAO,KAAK,OAAO,KAAK,SAAQ,MAAK,KAAK,KAAK,MAAM,EAAE,CAAC;AAC7D,QAAK,OAAO,KAAK,OAAO,MAAM,SAAQ,MAAK,KAAK,KAAK,MAAM,EAAE,CAAC;AAC9D,QAAK,OAAO,KAAK,OAAO,KAAK,SAAQ,MAAK,KAAK,KAAK,MAAM,EAAE,CAAC;AAE7D,OAAI,CAAC,KAAK,SAAS,KAAK,IAAI,CAAC,KAAK,SAAS,WAAW,EAAE;IACtD,IAAI,aAAa,cACf,KAAK,OAAO,KAAK,OAAO,YACxB,KAAK,OAAO,aACZ;KACE,YAAY;KACZ,SAAS;KACT,sBAAsB;KACvB,CACF;AACD,QACE,cACA,CAAC,WAAW,WAAW,IACvB,KAAK,OAAO,KAAK,OAAO,eAAe,iBAEvC,cAAa,cACX,kBACA,KAAK,OAAO,aACZ;KACE,YAAY;KACZ,SAAS;KACT,sBAAsB;KACvB,CACF;AAGH,QAAI,cAAc,WAAW,WAAW,CACtC,MAAK,KAAK,MAAM,WAAW;;AAI/B,OAAI,CAAC,KAAK,SAAS,eAAe,IAAI,KAAK,OAAO,KAAK,OAAO,UAC5D,MAAK,KAAK,eAAe;AAG3B,OAAI,CAAC,KAAK,SAAS,aAAa,CAC9B,MAAK,KAAK,cAAc,KAAK,SAAS,iBAAiB;AAGzD,OAAI,CAAC,KAAK,SAAS,KAAK,IAAI,CAAC,KAAK,SAAS,WAAW,CACpD,MAAK,KAAK,MAAM,KAAK,OAAO,KAAK,OAAO,UAAU,UAAU;AAG9D,OACE,KAAK,OAAO,KAAK,OAAO,QAAQ,SAChC,CAAC,KAAK,SAAS,QAAQ,IACvB,CAAC,KAAK,SAAS,oBAAoB,IACnC,CAAC,KAAK,SAAS,oBAAoB,EAEnC;QAAI,KAAK,OAAO,KAAK,OAAO,QAAQ,KAClC,MAAK,KAAK,QAAQ;aACT,KAAK,OAAO,KAAK,OAAO,QAAQ,cACzC,MAAK,KAAK,oBAAoB;aACrB,KAAK,OAAO,KAAK,OAAO,QAAQ,cACzC,MAAK,KAAK,oBAAoB;;AAIlC,OAAI,CAAC,KAAK,OAAO,KAAK,OAAO,YAAY;IACvC,MAAM,iBAAiB,MAAM,gBAC3B,UACA,KAAK,OAAO,YACb;AAED,SAAK,QACH,iBACI,YAAY,KAAK,OAAO,YAAY,KAAK,OAAO,YAAY,GAC5D,KAAK,OAAO,WACjB;IAED,MAAM,SAAS,MAAM,eACnB,UACA,MACA,iBACI,UACE,KAAK,gBAAgB,eACrB,KAAK,OAAO,YACb,GACD,KAAK,gBAAgB,cAC1B;AACD,QAAI,OAAO,OACT,OAAM,IAAI,MACR,mCAAmC,OAAO,SAAS,GACpD;UAEE;AACL,SAAK,QACH,KAAK,OAAO,KAAK,OAAO,YACxB,KAAK,OAAO,WACb;IAED,MAAM,SAAS,MAAM,QACnB,KAAK,KAAK,IAAI,EACd,KAAK,gBAAgB,cACtB;AACD,QAAI,OAAO,OACT,OAAM,IAAI,MACR,mCAAmC,OAAO,SAAS,GACpD;;;EAIR;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { UserConfig } from "powerlines/types/config";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
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
|
|
83
|
+
export { __ΩOxlintPluginContext as a, __ΩOxlintPluginUserConfig as c, OxlintPluginUserConfig as i, OxlintPluginOptions as n, __ΩOxlintPluginOptions as o, OxlintPluginResolvedConfig as r, __ΩOxlintPluginResolvedConfig as s, OxlintPluginContext as t };
|
|
84
|
+
//# sourceMappingURL=plugin-BsPGUUSA.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-BsPGUUSA.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;UAsBiB,mBAAA;;AAAjB;AAwEA;EASiB,cAAA,CAAA,EAAA,MAAA,GAAA,MAA2B,EAAA;EAMtC;;;;;EAN8C,UAAA,CAAA,EAAA,MAAA;EAAc;AAwBlE;;EAEI,IAAA,CAAA,EAAA,MAAA,EAAA;EACc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UApCD,sBAAA,SAA+B;;;;;aAKnC;;;UAII,0BAAA,SAAmC;;;;;YAKxC,KACN,kGAGA,SACE,KACE;;;KAaE,4CACc,6BACtB,8BACA,cAAc"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { UserConfig } from "powerlines/types/config";
|
|
2
|
+
import { PluginContext } from "powerlines/types/context";
|
|
3
|
+
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
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
|
|
83
|
+
export { __ΩOxlintPluginContext as a, __ΩOxlintPluginUserConfig as c, OxlintPluginUserConfig as i, OxlintPluginOptions as n, __ΩOxlintPluginOptions as o, OxlintPluginResolvedConfig as r, __ΩOxlintPluginResolvedConfig as s, OxlintPluginContext as t };
|
|
84
|
+
//# sourceMappingURL=plugin-n-BO5XLy.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-n-BO5XLy.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;UAsBiB,mBAAA;;AAAjB;AAwEA;EASiB,cAAA,CAAA,EAAA,MAAA,GAAA,MAA2B,EAAA;EAMtC;;;;;EAN8C,UAAA,CAAA,EAAA,MAAA;EAAc;AAwBlE;;EAEI,IAAA,CAAA,EAAA,MAAA,EAAA;EACc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UApCD,sBAAA,SAA+B;;;;;aAKnC;;;UAII,0BAAA,SAAmC;;;;;YAKxC,KACN,kGAGA,SACE,KACE;;;KAaE,4CACc,6BACtB,8BACA,cAAc"}
|
package/dist/types/index.cjs
CHANGED
package/dist/types/index.d.cts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { OxlintPluginContext,
|
|
1
|
+
import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-n-BO5XLy.cjs";
|
|
2
|
+
import "../index-D6CnpA_r.cjs";
|
|
2
3
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { OxlintPluginContext,
|
|
1
|
+
import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-BsPGUUSA.mjs";
|
|
2
|
+
import "../index-D-CYNcT9.mjs";
|
|
2
3
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
package/dist/types/index.mjs
CHANGED
package/dist/types/plugin.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('../plugin-DHXHjv16.cjs');
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,83 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
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
|
|
1
|
+
import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-n-BO5XLy.cjs";
|
|
83
2
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,83 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PluginContext } from "powerlines/types/context";
|
|
3
|
-
import { ResolvedConfig } from "powerlines/types/resolved";
|
|
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
|
|
1
|
+
import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "../plugin-BsPGUUSA.mjs";
|
|
83
2
|
export { OxlintPluginContext, OxlintPluginOptions, OxlintPluginResolvedConfig, OxlintPluginUserConfig, __ΩOxlintPluginContext, __ΩOxlintPluginOptions, __ΩOxlintPluginResolvedConfig, __ΩOxlintPluginUserConfig };
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
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.243",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for running Oxlint on the codebase.",
|
|
6
6
|
"repository": {
|
|
@@ -122,15 +122,15 @@
|
|
|
122
122
|
"defu": "^6.1.4",
|
|
123
123
|
"oxlint": "^1.42.0",
|
|
124
124
|
"oxlint-tsgolint": "^0.2.1",
|
|
125
|
-
"powerlines": "^0.38.
|
|
125
|
+
"powerlines": "^0.38.6"
|
|
126
126
|
},
|
|
127
127
|
"devDependencies": {
|
|
128
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
128
|
+
"@powerlines/plugin-plugin": "^0.12.190",
|
|
129
129
|
"@types/node": "^24.10.9"
|
|
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": "f90d675c44d4323d447a46c8a4c833420543cc0a"
|
|
136
136
|
}
|