@powerlines/plugin-oxlint 0.7.62 → 0.7.64

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.
Files changed (51) hide show
  1. package/dist/helpers/generate-config.cjs +45 -1
  2. package/dist/helpers/generate-config.d.cts +12 -2
  3. package/dist/helpers/generate-config.d.mts +12 -2
  4. package/dist/helpers/generate-config.mjs +45 -1
  5. package/dist/helpers/index.cjs +1 -1
  6. package/dist/helpers/index.d.cts +1 -2
  7. package/dist/helpers/index.d.mts +1 -2
  8. package/dist/helpers/index.mjs +1 -1
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.d.cts +2 -2
  11. package/dist/index.d.mts +3 -2
  12. package/dist/index.mjs +1 -1
  13. package/dist/powerlines/src/types/babel.d.mts +2 -0
  14. package/dist/powerlines/src/types/build.d.cts +139 -0
  15. package/dist/powerlines/src/types/build.d.mts +139 -0
  16. package/dist/powerlines/src/types/commands.d.cts +8 -0
  17. package/dist/powerlines/src/types/commands.d.mts +9 -0
  18. package/dist/powerlines/src/types/config.d.cts +345 -0
  19. package/dist/powerlines/src/types/config.d.mts +345 -0
  20. package/dist/powerlines/src/types/context.d.cts +347 -0
  21. package/dist/powerlines/src/types/context.d.mts +349 -0
  22. package/dist/powerlines/src/types/fs.d.cts +458 -0
  23. package/dist/powerlines/src/types/fs.d.mts +458 -0
  24. package/dist/powerlines/src/types/hooks.d.mts +2 -0
  25. package/dist/powerlines/src/types/plugin.d.cts +232 -0
  26. package/dist/powerlines/src/types/plugin.d.mts +232 -0
  27. package/dist/powerlines/src/types/resolved.d.cts +81 -0
  28. package/dist/powerlines/src/types/resolved.d.mts +81 -0
  29. package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
  30. package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
  31. package/dist/types/index.cjs +0 -1
  32. package/dist/types/index.d.cts +1 -2
  33. package/dist/types/index.d.mts +1 -2
  34. package/dist/types/index.mjs +1 -1
  35. package/dist/types/plugin.cjs +0 -1
  36. package/dist/types/plugin.d.cts +82 -1
  37. package/dist/types/plugin.d.mts +82 -1
  38. package/dist/types/plugin.mjs +1 -1
  39. package/package.json +11 -11
  40. package/dist/generate-config-BDBLhrMm.d.cts +0 -13
  41. package/dist/generate-config-C-r5Jx4F.mjs +0 -45
  42. package/dist/generate-config-ClmGm8Rq.cjs +0 -45
  43. package/dist/generate-config-CsYKvWjE.d.mts +0 -13
  44. package/dist/index-D-CYNcT9.d.mts +0 -1
  45. package/dist/index-D6CnpA_r.d.cts +0 -1
  46. package/dist/plugin-CUo9w01f.d.cts +0 -1714
  47. package/dist/plugin-DHXHjv16.cjs +0 -0
  48. package/dist/plugin-DzeYlbKJ.mjs +0 -1
  49. package/dist/plugin-eW19BkU3.d.mts +0 -1714
  50. package/dist/types-BKeuN6sy.mjs +0 -1
  51. package/dist/types-DHkg7xmX.cjs +0 -0
@@ -1,2 +1,83 @@
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-eW19BkU3.mjs";
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 };
@@ -1 +1 @@
1
- import"../plugin-DzeYlbKJ.mjs";export{};
1
+ export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-oxlint",
3
- "version": "0.7.62",
3
+ "version": "0.7.64",
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.59",
104
- "@stryke/cli": "^0.12.19",
105
- "@stryke/convert": "^0.6.13",
106
- "@stryke/fs": "^0.33.9",
107
- "@stryke/path": "^0.22.0",
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
- "oxlint": "^1.31.0",
109
+ "oxlint": "^1.32.0",
110
110
  "oxlint-tsgolint": "^0.2.1",
111
- "powerlines": "^0.30.9"
111
+ "powerlines": "^0.30.11"
112
112
  },
113
113
  "devDependencies": {
114
- "@powerlines/nx": "^0.10.58",
115
- "@storm-software/tsup": "^0.2.57",
114
+ "@powerlines/nx": "^0.10.60",
115
+ "@storm-software/tsup": "^0.2.58",
116
116
  "@types/node": "^24.10.1"
117
117
  },
118
118
  "publishConfig": { "access": "public" },
119
- "gitHead": "00fa339177561d404892937d2c24fe2a5b3df4e7"
119
+ "gitHead": "1613e8b201d74470d5c3275e2049374c231287af"
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 { };