@junoflow/eslint-plugin 0.1.0 → 0.1.2

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 (3) hide show
  1. package/README.md +2 -4
  2. package/index.js +2 -2
  3. package/package.json +2 -8
package/README.md CHANGED
@@ -1,9 +1,7 @@
1
1
  # @junoflow/eslint-plugin
2
2
 
3
3
  The lint rules [Juno](https://github.com/boivie/juno) applies to flows and
4
- integrations. This package is the **single source**: the Juno server embeds this
5
- exact file and runs these exact rules during verification, so a project that
6
- lints clean locally does not fail with a 422 on deploy.
4
+ integrations.
7
5
 
8
6
  ```bash
9
7
  npm install --save-dev @junoflow/eslint-plugin eslint
@@ -19,7 +17,7 @@ Most integration authors do not install it directly —
19
17
  | ------------------------- | ---------- | -------------------------------------------------------------------------------------- |
20
18
  | `juno/no-dynamic-step-id` | flows | `step.run(id)` where `id` is not a static string literal, or contains the reserved `#` |
21
19
  | `juno/no-sleep-in-step` | flows | `sleep()` / `waitForEvent()` inside a `step.run()` callback |
22
- | `juno/no-juno-sdk-import` | both | importing from `juno:sdk` — every type is an ambient global |
20
+ | `juno/no-juno-sdk-import` | both | importing from `juno:sdk` — it is the runtime shim, not a types package |
23
21
  | `juno/require-in-step` | flows | `log()` / `now()` / `fetch()` outside a step. Defined, enabled nowhere |
24
22
 
25
23
  ## One asymmetry, on purpose
package/index.js CHANGED
@@ -144,14 +144,14 @@ const requireInStep = {
144
144
  // see the *source*, where it is still an import statement. Same rule, same
145
145
  // message, both ends.
146
146
  const MESSAGE =
147
- 'Must not import from juno:sdk — all types are ambient globals declared in flow-api.d.ts / integration-api.d.ts';
147
+ "Must not import from juno:sdk — it is the runtime shim, not a types package. A flow's types are ambient globals from flow-api.d.ts; an integration imports its own types/integration-env.d.ts";
148
148
 
149
149
  const noJunoSdkImport = {
150
150
  meta: {
151
151
  type: 'problem',
152
152
  docs: {
153
153
  description:
154
- 'Must not import from juno:sdk — all types are ambient globals',
154
+ 'Must not import from juno:sdk — it is the runtime shim, not a types package',
155
155
  },
156
156
  schema: [],
157
157
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@junoflow/eslint-plugin",
3
- "version": "0.1.0",
4
- "description": "ESLint rules for Juno flows and integrations — the same rules the server runs during verification.",
3
+ "version": "0.1.2",
4
+ "description": "ESLint rules for Juno flows and integrations",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -14,12 +14,6 @@
14
14
  "index.js",
15
15
  "README.md"
16
16
  ],
17
- "keywords": [
18
- "eslint",
19
- "eslintplugin",
20
- "juno",
21
- "junoflow"
22
- ],
23
17
  "peerDependencies": {
24
18
  "eslint": ">=9"
25
19
  },