@agoric/eslint-config 0.4.1-dev-81ac381.0 → 0.4.1-dev-c3009d4.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.
Files changed (2) hide show
  1. package/eslint-config.cjs +19 -0
  2. package/package.json +2 -2
package/eslint-config.cjs CHANGED
@@ -1,4 +1,16 @@
1
1
  /* eslint-env node */
2
+
3
+ const orchestrationFlowRestrictions = [
4
+ {
5
+ selector: "Identifier[name='heapVowE']",
6
+ message: 'Eventual send is not yet supported within an orchestration flow',
7
+ },
8
+ {
9
+ selector: "Identifier[name='E']",
10
+ message: 'Eventual send is not yet supported within an orchestration flow',
11
+ },
12
+ ];
13
+
2
14
  module.exports = {
3
15
  extends: [
4
16
  'airbnb-base',
@@ -95,5 +107,12 @@ module.exports = {
95
107
  'no-unused-vars': 'off',
96
108
  },
97
109
  },
110
+ {
111
+ // Orchestration flows
112
+ files: ['**/*.flows.js'],
113
+ rules: {
114
+ 'no-restricted-syntax': ['error', ...orchestrationFlowRestrictions],
115
+ },
116
+ },
98
117
  ],
99
118
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/eslint-config",
3
- "version": "0.4.1-dev-81ac381.0+81ac381",
3
+ "version": "0.4.1-dev-c3009d4.0+c3009d4",
4
4
  "description": "Rules used by the @agoric packages",
5
5
  "main": "./eslint-config.cjs",
6
6
  "repository": {
@@ -38,5 +38,5 @@
38
38
  "prettier": "^3.0.3",
39
39
  "typescript-eslint": "^7.13.1"
40
40
  },
41
- "gitHead": "81ac38153db929618831ac19f57c019769d3cbef"
41
+ "gitHead": "c3009d4f42964b2810efe09d38e14bde66c9e9b6"
42
42
  }