@murky-web/oxc-config 0.2.0 → 0.2.1

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/.oxlintrc.jsonc CHANGED
@@ -12,10 +12,13 @@
12
12
  "./linting/typebuddy.jsonc",
13
13
  "./linting/simplelog.jsonc"
14
14
  ],
15
+ // Through plugins/*.mjs, not by package name: with an isolated install
16
+ // (bun workspaces, pnpm) the names do not resolve from the project's
17
+ // node_modules (plugins/README.md).
15
18
  "jsPlugins": [
16
- "@murky-web/oxlint-plugin",
17
- "@murky-web/oxlint-plugin-solid",
18
- "@murky-web/typebuddy/oxlint",
19
- "@murky-web/simplelog/oxlint"
19
+ "./plugins/murky.mjs",
20
+ "./plugins/solid.mjs",
21
+ "./plugins/typebuddy.mjs",
22
+ "./plugins/simplelog.mjs"
20
23
  ]
21
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@murky-web/oxc-config",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Shared oxfmt and oxlint configuration",
5
5
  "license": "ISC",
6
6
  "repository": {
@@ -13,6 +13,7 @@
13
13
  ".oxlintrc.base.jsonc",
14
14
  ".oxlintrc.jsonc",
15
15
  "linting",
16
+ "plugins",
16
17
  "README.md"
17
18
  ],
18
19
  "publishConfig": {
@@ -0,0 +1,12 @@
1
+ # Plugin entries
2
+
3
+ `.oxlintrc.jsonc` loads its JS plugins through these files instead of by
4
+ package name.
5
+
6
+ oxlint resolves a `jsPlugins` package name from the config file's path as the
7
+ project sees it: `node_modules/@murky-web/oxc-config/`. With an isolated install
8
+ (bun workspaces, pnpm) the plugins are dependencies of this package and sit next
9
+ to its real folder in the store, not in the project's `node_modules`, so the
10
+ name does not resolve there. A relative path resolves from the same place and
11
+ reaches these files; the runtime that loads them resolves their `import` from
12
+ their real location, where the plugins are.
@@ -0,0 +1,2 @@
1
+ // Loads @murky-web/oxlint-plugin for `.oxlintrc.jsonc` (see plugins/README.md).
2
+ export { default } from "@murky-web/oxlint-plugin";
@@ -0,0 +1,2 @@
1
+ // Loads @murky-web/simplelog/oxlint for `.oxlintrc.jsonc` (see plugins/README.md).
2
+ export { default } from "@murky-web/simplelog/oxlint";
@@ -0,0 +1,2 @@
1
+ // Loads @murky-web/oxlint-plugin-solid for `.oxlintrc.jsonc` (see plugins/README.md).
2
+ export { default } from "@murky-web/oxlint-plugin-solid";
@@ -0,0 +1,2 @@
1
+ // Loads @murky-web/typebuddy/oxlint for `.oxlintrc.jsonc` (see plugins/README.md).
2
+ export { default } from "@murky-web/typebuddy/oxlint";