@powerlines/plugin-oxlint 0.7.124 → 0.7.126
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 +58 -0
- package/dist/generate-config-BZjB8irN.cjs +63 -0
- package/dist/generate-config-D4g78kIf.d.mts +13 -0
- package/dist/generate-config-DZfJM276.d.cts +13 -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 +2 -2
- package/dist/index.d.mts +2 -3
- package/dist/index.mjs +2 -0
- package/dist/plugin-9T2rrnPY.d.mts +1827 -0
- package/dist/plugin-DH0uh5wS.d.cts +1827 -0
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-DNsqegEV.mjs +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
- package/dist/powerlines/src/types/babel.d.mts +0 -2
- package/dist/powerlines/src/types/build.d.cts +0 -145
- package/dist/powerlines/src/types/build.d.mts +0 -145
- package/dist/powerlines/src/types/commands.d.cts +0 -8
- package/dist/powerlines/src/types/commands.d.mts +0 -9
- package/dist/powerlines/src/types/config.d.cts +0 -369
- package/dist/powerlines/src/types/config.d.mts +0 -369
- package/dist/powerlines/src/types/context.d.cts +0 -403
- package/dist/powerlines/src/types/context.d.mts +0 -405
- package/dist/powerlines/src/types/fs.d.cts +0 -486
- package/dist/powerlines/src/types/fs.d.mts +0 -486
- package/dist/powerlines/src/types/hooks.d.mts +0 -2
- package/dist/powerlines/src/types/plugin.d.cts +0 -231
- package/dist/powerlines/src/types/plugin.d.mts +0 -231
- package/dist/powerlines/src/types/resolved.d.cts +0 -81
- package/dist/powerlines/src/types/resolved.d.mts +0 -81
- package/dist/powerlines/src/types/tsconfig.d.cts +0 -69
- package/dist/powerlines/src/types/tsconfig.d.mts +0 -69
|
@@ -0,0 +1,58 @@
|
|
|
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 };
|
|
@@ -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,13 @@
|
|
|
1
|
+
import { n as OxlintPluginOptions } from "./plugin-9T2rrnPY.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 };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { n as OxlintPluginOptions } from "./plugin-DH0uh5wS.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,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-DH0uh5wS.cjs";
|
|
2
|
+
import { t as generateConfig } from "../generate-config-DZfJM276.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-9T2rrnPY.mjs";
|
|
2
|
+
import { t as generateConfig } from "../generate-config-D4g78kIf.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 __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
3
5
|
let __stryke_cli_execute = require("@stryke/cli/execute");
|
|
4
6
|
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "./
|
|
2
|
-
import
|
|
1
|
+
import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, l as Plugin, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "./plugin-DH0uh5wS.cjs";
|
|
2
|
+
import "./index-D6CnpA_r.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
5
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Plugin } from "./
|
|
2
|
-
import
|
|
3
|
-
import "./types/index.mjs";
|
|
1
|
+
import { a as __ΩOxlintPluginContext, c as __ΩOxlintPluginUserConfig, i as OxlintPluginUserConfig, l as Plugin, n as OxlintPluginOptions, o as __ΩOxlintPluginOptions, r as OxlintPluginResolvedConfig, s as __ΩOxlintPluginResolvedConfig, t as OxlintPluginContext } from "./plugin-9T2rrnPY.mjs";
|
|
2
|
+
import "./index-D-CYNcT9.mjs";
|
|
4
3
|
|
|
5
4
|
//#region src/index.d.ts
|
|
6
5
|
|
package/dist/index.mjs
CHANGED