@agoric/eslint-config 0.4.1-dev-2b7c650.0 → 0.4.1-mainnet1B-dev-c0e1089.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/CHANGELOG.md +264 -0
- package/package.json +13 -12
- package/eslint-config.cjs +0 -98
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
## [0.4.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.25...@agoric/eslint-config@0.4.0) (2023-05-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **eslint-config:** disable no-continue ([c89afca](https://github.com/Agoric/agoric-sdk/commit/c89afca17dbb6a750a1caa12a0daff91138d475b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### [0.3.25](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.24...@agoric/eslint-config@0.3.25) (2022-09-20)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### [0.3.24](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.23...@agoric/eslint-config@0.3.24) (2022-04-18)
|
|
24
|
+
|
|
25
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### [0.3.23](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.22...@agoric/eslint-config@0.3.23) (2022-02-21)
|
|
32
|
+
|
|
33
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### [0.3.22](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.21...@agoric/eslint-config@0.3.22) (2021-12-02)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Bug Fixes
|
|
43
|
+
|
|
44
|
+
* **eslint-config:** loosen no-extraneous-dependencies patterns ([71be149](https://github.com/Agoric/agoric-sdk/commit/71be149522823ec41900bcf96a0b39f75b38bfd9))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### [0.3.21](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.20...@agoric/eslint-config@0.3.21) (2021-10-13)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
* **eslint-config:** adapt new JSDoc rules ([91fd093](https://github.com/Agoric/agoric-sdk/commit/91fd093bf95f80e19cde520c920b89c50dbf9782))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### [0.3.20](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.19...@agoric/eslint-config@0.3.20) (2021-09-23)
|
|
58
|
+
|
|
59
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### [0.3.19](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.18...@agoric/eslint-config@0.3.19) (2021-09-15)
|
|
66
|
+
|
|
67
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### [0.3.18](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.17...@agoric/eslint-config@0.3.18) (2021-08-18)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### [0.3.17](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.16...@agoric/eslint-config@0.3.17) (2021-08-17)
|
|
82
|
+
|
|
83
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### [0.3.16](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.13...@agoric/eslint-config@0.3.16) (2021-08-15)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### Bug Fixes
|
|
93
|
+
|
|
94
|
+
* gut `packages/eslint-config` to use `[@jessie](https://github.com/jessie).js` and `[@endo](https://github.com/endo)` ([68a4f7d](https://github.com/Agoric/agoric-sdk/commit/68a4f7d8cbc70bc3d87f7581c7235f8730c32709))
|
|
95
|
+
|
|
96
|
+
### 0.26.10 (2021-07-28)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
### [0.3.15](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.13...@agoric/eslint-config@0.3.15) (2021-08-14)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Bug Fixes
|
|
104
|
+
|
|
105
|
+
* gut `packages/eslint-config` to use `[@jessie](https://github.com/jessie).js` and `[@endo](https://github.com/endo)` ([68a4f7d](https://github.com/Agoric/agoric-sdk/commit/68a4f7d8cbc70bc3d87f7581c7235f8730c32709))
|
|
106
|
+
|
|
107
|
+
### 0.26.10 (2021-07-28)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### [0.3.14](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.13...@agoric/eslint-config@0.3.14) (2021-07-28)
|
|
112
|
+
|
|
113
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### [0.3.13](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.12...@agoric/eslint-config@0.3.13) (2021-07-01)
|
|
120
|
+
|
|
121
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
### [0.3.12](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.11...@agoric/eslint-config@0.3.12) (2021-06-28)
|
|
128
|
+
|
|
129
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
### [0.3.11](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.10...@agoric/eslint-config@0.3.11) (2021-06-25)
|
|
136
|
+
|
|
137
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
### [0.3.10](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.9...@agoric/eslint-config@0.3.10) (2021-06-24)
|
|
144
|
+
|
|
145
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### [0.3.9](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.8...@agoric/eslint-config@0.3.9) (2021-06-23)
|
|
152
|
+
|
|
153
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### [0.3.8](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.7...@agoric/eslint-config@0.3.8) (2021-06-16)
|
|
160
|
+
|
|
161
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### [0.3.7](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.6...@agoric/eslint-config@0.3.7) (2021-06-15)
|
|
168
|
+
|
|
169
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
## [0.3.6](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.5...@agoric/eslint-config@0.3.6) (2021-05-10)
|
|
176
|
+
|
|
177
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
## [0.3.5](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.4...@agoric/eslint-config@0.3.5) (2021-05-05)
|
|
184
|
+
|
|
185
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
## [0.3.4](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.3...@agoric/eslint-config@0.3.4) (2021-05-05)
|
|
192
|
+
|
|
193
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
## [0.3.3](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.2...@agoric/eslint-config@0.3.3) (2021-04-07)
|
|
200
|
+
|
|
201
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
## [0.3.2](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.1...@agoric/eslint-config@0.3.2) (2021-04-06)
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
### Bug Fixes
|
|
211
|
+
|
|
212
|
+
* update eslint version ([#2804](https://github.com/Agoric/agoric-sdk/issues/2804)) ([3fc6c5e](https://github.com/Agoric/agoric-sdk/commit/3fc6c5e593f7cdcf5f908365c29cc469e309229d))
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
## [0.3.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.3.0...@agoric/eslint-config@0.3.1) (2021-03-24)
|
|
219
|
+
|
|
220
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
# [0.3.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.2.1...@agoric/eslint-config@0.3.0) (2021-03-16)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### Bug Fixes
|
|
230
|
+
|
|
231
|
+
* make separate 'test:xs' target, remove XS from 'test' target ([b9c1a69](https://github.com/Agoric/agoric-sdk/commit/b9c1a6987093fc8e09e8aba7acd2a1618413bac8)), closes [#2647](https://github.com/Agoric/agoric-sdk/issues/2647)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
### Features
|
|
235
|
+
|
|
236
|
+
* eslint 'use jessie'; detection and first cut at rules ([9ea9909](https://github.com/Agoric/agoric-sdk/commit/9ea99097336ade6bb5645b06a1714e38c7185864))
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
## [0.2.1](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.2.0...@agoric/eslint-config@0.2.1) (2021-02-22)
|
|
243
|
+
|
|
244
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
# [0.2.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.1.1...@agoric/eslint-config@0.2.0) (2021-02-16)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
### Features
|
|
254
|
+
|
|
255
|
+
* make @agoric/eslint-plugin deal with assert.fail as throw ([f23adee](https://github.com/Agoric/agoric-sdk/commit/f23adee512aec50788d9c9efed1cea9d774dfe8f))
|
|
256
|
+
* modified eslint config to forbid the use of for...in loops ([#2423](https://github.com/Agoric/agoric-sdk/issues/2423)) ([1eb65d4](https://github.com/Agoric/agoric-sdk/commit/1eb65d4af52a40e229ec1eefaff0200d3ab6aba0))
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
## 0.1.1 (2020-12-10)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package @agoric/eslint-config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/eslint-config",
|
|
3
|
-
"version": "0.4.1-dev-
|
|
3
|
+
"version": "0.4.1-mainnet1B-dev-c0e1089.0+c0e1089",
|
|
4
4
|
"description": "Rules used by the @agoric packages",
|
|
5
5
|
"main": "./eslint-config.cjs",
|
|
6
6
|
"repository": {
|
|
@@ -22,22 +22,23 @@
|
|
|
22
22
|
"lint": "exit 0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
|
-
"eslint-config
|
|
25
|
+
"eslint-config.json"
|
|
26
26
|
],
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@endo/eslint-plugin": "
|
|
29
|
-
"@jessie.js/eslint-plugin": "^0.
|
|
30
|
-
"@typescript-eslint/
|
|
31
|
-
"
|
|
32
|
-
"eslint": "^8.47.0",
|
|
28
|
+
"@endo/eslint-plugin": "0.4.4",
|
|
29
|
+
"@jessie.js/eslint-plugin": "^0.3.0",
|
|
30
|
+
"@typescript-eslint/parser": "^5.55.0",
|
|
31
|
+
"eslint": "^8.36.0",
|
|
33
32
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
34
33
|
"eslint-config-jessie": "^0.0.6",
|
|
35
|
-
"eslint-config-prettier": "^
|
|
36
|
-
"eslint-plugin-github": "^4.10.0",
|
|
34
|
+
"eslint-config-prettier": "^8.8.0",
|
|
37
35
|
"eslint-plugin-import": "^2.25.3",
|
|
38
36
|
"eslint-plugin-jsdoc": "^40.1.0",
|
|
39
|
-
"eslint-plugin-
|
|
40
|
-
"prettier": "^
|
|
37
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
38
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
39
|
+
"eslint-plugin-react": "^7.28.0",
|
|
40
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
41
|
+
"prettier": "^2.8.1"
|
|
41
42
|
},
|
|
42
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c0e10895096f10703536fec603ebf1e2c2f948bc"
|
|
43
44
|
}
|
package/eslint-config.cjs
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/* eslint-env node */
|
|
2
|
-
module.exports = {
|
|
3
|
-
extends: [
|
|
4
|
-
'airbnb-base',
|
|
5
|
-
'plugin:@endo/recommended',
|
|
6
|
-
'plugin:jsdoc/recommended',
|
|
7
|
-
'prettier',
|
|
8
|
-
],
|
|
9
|
-
plugins: ['import', 'github'],
|
|
10
|
-
rules: {
|
|
11
|
-
'arrow-body-style': 'off',
|
|
12
|
-
'arrow-parens': 'off',
|
|
13
|
-
'no-continue': 'off',
|
|
14
|
-
'no-await-in-loop': 'off',
|
|
15
|
-
'implicit-arrow-linebreak': 'off',
|
|
16
|
-
'function-paren-newline': 'off',
|
|
17
|
-
strict: 'off',
|
|
18
|
-
'prefer-destructuring': 'off',
|
|
19
|
-
'prefer-regex-literals': 'off',
|
|
20
|
-
'no-else-return': 'off',
|
|
21
|
-
'no-console': 'off',
|
|
22
|
-
'no-unused-vars': [
|
|
23
|
-
'error',
|
|
24
|
-
{
|
|
25
|
-
argsIgnorePattern: '^_',
|
|
26
|
-
varsIgnorePattern: '^_',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
'no-inner-declarations': 'off',
|
|
30
|
-
'no-loop-func': 'off',
|
|
31
|
-
'no-param-reassign': 'off',
|
|
32
|
-
'no-promise-executor-return': 'off', // common to return setTimeout(), we know the value won't be accessible
|
|
33
|
-
'no-restricted-syntax': ['off'],
|
|
34
|
-
'no-return-assign': 'off',
|
|
35
|
-
'no-unused-expressions': 'off',
|
|
36
|
-
'prefer-arrow-callback': 'off',
|
|
37
|
-
'default-param-last': 'off', // unaware of TS type annotations
|
|
38
|
-
'consistent-return': 'off', // unaware of throws. TS detects more reliably.
|
|
39
|
-
'no-fallthrough': 'warn', // unaware of throws.
|
|
40
|
-
|
|
41
|
-
'spaced-comment': [
|
|
42
|
-
'error',
|
|
43
|
-
'always',
|
|
44
|
-
{
|
|
45
|
-
line: {
|
|
46
|
-
// 'region' for code folding and '/' for TS '///' directive
|
|
47
|
-
markers: ['#region', '#endregion', 'region', 'endregion', '/'],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
|
|
52
|
-
'github/array-foreach': 'warn',
|
|
53
|
-
|
|
54
|
-
// Work around https://github.com/import-js/eslint-plugin-import/issues/1810
|
|
55
|
-
'import/no-unresolved': ['error', { ignore: ['ava'] }],
|
|
56
|
-
'import/prefer-default-export': 'off',
|
|
57
|
-
|
|
58
|
-
'jsdoc/no-multi-asterisks': ['warn', { allowWhitespace: true }],
|
|
59
|
-
'jsdoc/no-undefined-types': 'off',
|
|
60
|
-
'jsdoc/require-jsdoc': 'off',
|
|
61
|
-
'jsdoc/require-property-description': 'off',
|
|
62
|
-
'jsdoc/require-param-description': 'off',
|
|
63
|
-
'jsdoc/require-returns': 'off',
|
|
64
|
-
'jsdoc/require-returns-check': 'off', // TS checks
|
|
65
|
-
'jsdoc/require-returns-description': 'off',
|
|
66
|
-
'jsdoc/require-yields': 'off',
|
|
67
|
-
'jsdoc/tag-lines': 'off',
|
|
68
|
-
'jsdoc/valid-types': 'off',
|
|
69
|
-
// Not severe but the default 'warning' clutters output and it's easy to fix
|
|
70
|
-
'jsdoc/check-param-names': 'error',
|
|
71
|
-
'jsdoc/check-syntax': 'error',
|
|
72
|
-
|
|
73
|
-
'import/extensions': ['warn', 'ignorePackages'],
|
|
74
|
-
'import/no-extraneous-dependencies': [
|
|
75
|
-
'error',
|
|
76
|
-
{
|
|
77
|
-
devDependencies: [
|
|
78
|
-
'**/*.config.js',
|
|
79
|
-
'**/*.config.*.js',
|
|
80
|
-
// leading wildcard to work in CLI (package path) and IDE (repo path)
|
|
81
|
-
'**/test/**',
|
|
82
|
-
'**/demo*/**/*js',
|
|
83
|
-
'**/scripts/**/*js',
|
|
84
|
-
],
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
overrides: [
|
|
89
|
-
{
|
|
90
|
-
files: ['**/*.ts'],
|
|
91
|
-
rules: {
|
|
92
|
-
// Handled better by tsc
|
|
93
|
-
'import/no-unresolved': 'off',
|
|
94
|
-
'no-unused-vars': 'off',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
};
|