@agoric/eslint-config 0.4.1-u16.0 → 0.4.1-u17.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/eslint-config.cjs +27 -0
- package/package.json +4 -4
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,20 @@ module.exports = {
|
|
|
95
107
|
'no-unused-vars': 'off',
|
|
96
108
|
},
|
|
97
109
|
},
|
|
110
|
+
{
|
|
111
|
+
// Zoe contract module
|
|
112
|
+
files: ['**/*.contract.js'],
|
|
113
|
+
rules: {
|
|
114
|
+
'@endo/harden-exports': 'error',
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
// Orchestration flows
|
|
119
|
+
files: ['**/*.flows.js'],
|
|
120
|
+
rules: {
|
|
121
|
+
'no-restricted-syntax': ['error', ...orchestrationFlowRestrictions],
|
|
122
|
+
'@endo/harden-exports': 'error',
|
|
123
|
+
},
|
|
124
|
+
},
|
|
98
125
|
],
|
|
99
126
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/eslint-config",
|
|
3
|
-
"version": "0.4.1-
|
|
3
|
+
"version": "0.4.1-u17.0",
|
|
4
4
|
"description": "Rules used by the @agoric packages",
|
|
5
5
|
"main": "./eslint-config.cjs",
|
|
6
6
|
"repository": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"eslint-config.*"
|
|
26
26
|
],
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@endo/eslint-plugin": "^2.1
|
|
28
|
+
"@endo/eslint-plugin": "^2.2.1",
|
|
29
29
|
"@jessie.js/eslint-plugin": "^0.4.1",
|
|
30
30
|
"eslint": "^8.57.0",
|
|
31
31
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"eslint-plugin-jsdoc": "^46.4.3",
|
|
37
37
|
"eslint-plugin-prettier": "^5.0.0",
|
|
38
38
|
"prettier": "^3.0.3",
|
|
39
|
-
"typescript-eslint": "^7.
|
|
39
|
+
"typescript-eslint": "^7.13.1"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "515c4c0efccfc91b97da30037c10fc4b076851e2"
|
|
42
42
|
}
|