@junoflow/eslint-plugin 0.6.0 → 0.10.0

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/README.md CHANGED
@@ -80,6 +80,7 @@ import juno from '@junoflow/eslint-plugin';
80
80
 
81
81
  juno.configs.flow; // the flow rules, by severity
82
82
  juno.configs.integration; // the integration rules
83
+ juno.configs.app; // the app handler rules
83
84
  juno.configs.bundle; // what may run against esbuild output
84
85
  ```
85
86
 
package/index.js CHANGED
@@ -990,7 +990,7 @@ const noEventCast = {
990
990
  // see the *source*, where it is still an import statement. Same rule, same
991
991
  // message, both ends.
992
992
  const MESSAGE =
993
- "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";
993
+ 'Must not import from juno:sdk — it is the runtime shim, not a types package. A flow imports its types from types/flow-env.d.ts, an integration from types/integration-env.d.ts';
994
994
 
995
995
  const noJunoSdkImport = {
996
996
  meta: {
@@ -1182,6 +1182,7 @@ module.exports = {
1182
1182
  configs: {
1183
1183
  flow: rulesets.flow,
1184
1184
  integration: rulesets.integration,
1185
+ app: rulesets.app,
1185
1186
  bundle: rulesets.bundle,
1186
1187
  },
1187
1188
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junoflow/eslint-plugin",
3
- "version": "0.6.0",
3
+ "version": "0.10.0",
4
4
  "description": "ESLint rules for Juno flows and integrations",
5
5
  "license": "MIT",
6
6
  "repository": {
package/rulesets.json CHANGED
@@ -23,6 +23,12 @@
23
23
  "juno/no-process-exit": "error",
24
24
  "juno/require-signal-in-listener": "warn"
25
25
  },
26
+ "app": {
27
+ "juno/no-juno-sdk-import": "error",
28
+ "juno/no-credential-leak": "error",
29
+ "juno/no-process-exit": "error",
30
+ "juno/no-module-state": "warn"
31
+ },
26
32
  "bundle": {
27
33
  "juno/no-juno-sdk-import": "error"
28
34
  }