@junoflow/eslint-plugin 0.6.0 → 0.9.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 +1 -0
- package/index.js +2 -1
- package/package.json +1 -1
- package/rulesets.json +6 -0
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
|
-
|
|
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
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
|
}
|