@agoric/eslint-config 0.4.1-u11wf.0 → 0.4.1-u16.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.
@@ -0,0 +1,99 @@
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
+ // it doesn't support exports maps https://github.com/import-js/eslint-plugin-import/issues/1810
55
+ // and most of our code is covered by tsc which does
56
+ 'import/no-unresolved': 'off',
57
+ 'import/prefer-default-export': 'off',
58
+
59
+ 'jsdoc/no-multi-asterisks': ['warn', { allowWhitespace: true }],
60
+ 'jsdoc/no-undefined-types': 'off',
61
+ 'jsdoc/require-jsdoc': 'off',
62
+ 'jsdoc/require-property-description': 'off',
63
+ 'jsdoc/require-param-description': 'off',
64
+ 'jsdoc/require-returns': 'off',
65
+ 'jsdoc/require-returns-check': 'off', // TS checks
66
+ 'jsdoc/require-returns-description': 'off',
67
+ 'jsdoc/require-yields': 'off',
68
+ 'jsdoc/tag-lines': 'off',
69
+ 'jsdoc/valid-types': 'off',
70
+ // Not severe but the default 'warning' clutters output and it's easy to fix
71
+ 'jsdoc/check-param-names': 'error',
72
+ 'jsdoc/check-syntax': 'error',
73
+
74
+ 'import/extensions': ['warn', 'ignorePackages'],
75
+ 'import/no-extraneous-dependencies': [
76
+ 'error',
77
+ {
78
+ devDependencies: [
79
+ '**/*.config.js',
80
+ '**/*.config.*.js',
81
+ // leading wildcard to work in CLI (package path) and IDE (repo path)
82
+ '**/test/**',
83
+ '**/demo*/**',
84
+ '**/scripts/**',
85
+ ],
86
+ },
87
+ ],
88
+ },
89
+ overrides: [
90
+ {
91
+ files: ['**/*.ts'],
92
+ rules: {
93
+ // Handled better by tsc
94
+ 'import/no-unresolved': 'off',
95
+ 'no-unused-vars': 'off',
96
+ },
97
+ },
98
+ ],
99
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/eslint-config",
3
- "version": "0.4.1-u11wf.0",
3
+ "version": "0.4.1-u16.0",
4
4
  "description": "Rules used by the @agoric packages",
5
5
  "main": "./eslint-config.cjs",
6
6
  "repository": {
@@ -22,23 +22,21 @@
22
22
  "lint": "exit 0"
23
23
  },
24
24
  "files": [
25
- "eslint-config.json"
25
+ "eslint-config.*"
26
26
  ],
27
27
  "peerDependencies": {
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",
28
+ "@endo/eslint-plugin": "^2.1.3",
29
+ "@jessie.js/eslint-plugin": "^0.4.1",
30
+ "eslint": "^8.57.0",
32
31
  "eslint-config-airbnb-base": "^15.0.0",
33
32
  "eslint-config-jessie": "^0.0.6",
34
- "eslint-config-prettier": "^8.8.0",
33
+ "eslint-config-prettier": "^9.0.0",
34
+ "eslint-plugin-github": "^4.10.0",
35
35
  "eslint-plugin-import": "^2.25.3",
36
- "eslint-plugin-jsdoc": "^40.1.0",
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"
36
+ "eslint-plugin-jsdoc": "^46.4.3",
37
+ "eslint-plugin-prettier": "^5.0.0",
38
+ "prettier": "^3.0.3",
39
+ "typescript-eslint": "^7.2.0"
42
40
  },
43
- "gitHead": "faf9ba6ab8b2b69bf25f435f262f0b5bd2f2bc97"
41
+ "gitHead": "bbdf652c3f413381cb352a8a360db1063974fafd"
44
42
  }
package/CHANGELOG.md DELETED
@@ -1,272 +0,0 @@
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.1-u11wf.0](https://github.com/Agoric/agoric-sdk/compare/@agoric/eslint-config@0.4.0...@agoric/eslint-config@0.4.1-u11wf.0) (2023-09-23)
7
-
8
- **Note:** Version bump only for package @agoric/eslint-config
9
-
10
-
11
-
12
-
13
-
14
- ## [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)
15
-
16
-
17
- ### Features
18
-
19
- * **eslint-config:** disable no-continue ([c89afca](https://github.com/Agoric/agoric-sdk/commit/c89afca17dbb6a750a1caa12a0daff91138d475b))
20
-
21
-
22
-
23
- ### [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)
24
-
25
- **Note:** Version bump only for package @agoric/eslint-config
26
-
27
-
28
-
29
-
30
-
31
- ### [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)
32
-
33
- **Note:** Version bump only for package @agoric/eslint-config
34
-
35
-
36
-
37
-
38
-
39
- ### [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)
40
-
41
- **Note:** Version bump only for package @agoric/eslint-config
42
-
43
-
44
-
45
-
46
-
47
- ### [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)
48
-
49
-
50
- ### Bug Fixes
51
-
52
- * **eslint-config:** loosen no-extraneous-dependencies patterns ([71be149](https://github.com/Agoric/agoric-sdk/commit/71be149522823ec41900bcf96a0b39f75b38bfd9))
53
-
54
-
55
-
56
- ### [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)
57
-
58
-
59
- ### Bug Fixes
60
-
61
- * **eslint-config:** adapt new JSDoc rules ([91fd093](https://github.com/Agoric/agoric-sdk/commit/91fd093bf95f80e19cde520c920b89c50dbf9782))
62
-
63
-
64
-
65
- ### [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)
66
-
67
- **Note:** Version bump only for package @agoric/eslint-config
68
-
69
-
70
-
71
-
72
-
73
- ### [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)
74
-
75
- **Note:** Version bump only for package @agoric/eslint-config
76
-
77
-
78
-
79
-
80
-
81
- ### [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)
82
-
83
- **Note:** Version bump only for package @agoric/eslint-config
84
-
85
-
86
-
87
-
88
-
89
- ### [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)
90
-
91
- **Note:** Version bump only for package @agoric/eslint-config
92
-
93
-
94
-
95
-
96
-
97
- ### [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)
98
-
99
-
100
- ### Bug Fixes
101
-
102
- * 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))
103
-
104
- ### 0.26.10 (2021-07-28)
105
-
106
-
107
-
108
- ### [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)
109
-
110
-
111
- ### Bug Fixes
112
-
113
- * 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))
114
-
115
- ### 0.26.10 (2021-07-28)
116
-
117
-
118
-
119
- ### [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)
120
-
121
- **Note:** Version bump only for package @agoric/eslint-config
122
-
123
-
124
-
125
-
126
-
127
- ### [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)
128
-
129
- **Note:** Version bump only for package @agoric/eslint-config
130
-
131
-
132
-
133
-
134
-
135
- ### [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)
136
-
137
- **Note:** Version bump only for package @agoric/eslint-config
138
-
139
-
140
-
141
-
142
-
143
- ### [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)
144
-
145
- **Note:** Version bump only for package @agoric/eslint-config
146
-
147
-
148
-
149
-
150
-
151
- ### [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)
152
-
153
- **Note:** Version bump only for package @agoric/eslint-config
154
-
155
-
156
-
157
-
158
-
159
- ### [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)
160
-
161
- **Note:** Version bump only for package @agoric/eslint-config
162
-
163
-
164
-
165
-
166
-
167
- ### [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)
168
-
169
- **Note:** Version bump only for package @agoric/eslint-config
170
-
171
-
172
-
173
-
174
-
175
- ### [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)
176
-
177
- **Note:** Version bump only for package @agoric/eslint-config
178
-
179
-
180
-
181
-
182
-
183
- ## [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)
184
-
185
- **Note:** Version bump only for package @agoric/eslint-config
186
-
187
-
188
-
189
-
190
-
191
- ## [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)
192
-
193
- **Note:** Version bump only for package @agoric/eslint-config
194
-
195
-
196
-
197
-
198
-
199
- ## [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)
200
-
201
- **Note:** Version bump only for package @agoric/eslint-config
202
-
203
-
204
-
205
-
206
-
207
- ## [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)
208
-
209
- **Note:** Version bump only for package @agoric/eslint-config
210
-
211
-
212
-
213
-
214
-
215
- ## [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)
216
-
217
-
218
- ### Bug Fixes
219
-
220
- * update eslint version ([#2804](https://github.com/Agoric/agoric-sdk/issues/2804)) ([3fc6c5e](https://github.com/Agoric/agoric-sdk/commit/3fc6c5e593f7cdcf5f908365c29cc469e309229d))
221
-
222
-
223
-
224
-
225
-
226
- ## [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)
227
-
228
- **Note:** Version bump only for package @agoric/eslint-config
229
-
230
-
231
-
232
-
233
-
234
- # [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)
235
-
236
-
237
- ### Bug Fixes
238
-
239
- * 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)
240
-
241
-
242
- ### Features
243
-
244
- * eslint 'use jessie'; detection and first cut at rules ([9ea9909](https://github.com/Agoric/agoric-sdk/commit/9ea99097336ade6bb5645b06a1714e38c7185864))
245
-
246
-
247
-
248
-
249
-
250
- ## [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)
251
-
252
- **Note:** Version bump only for package @agoric/eslint-config
253
-
254
-
255
-
256
-
257
-
258
- # [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)
259
-
260
-
261
- ### Features
262
-
263
- * make @agoric/eslint-plugin deal with assert.fail as throw ([f23adee](https://github.com/Agoric/agoric-sdk/commit/f23adee512aec50788d9c9efed1cea9d774dfe8f))
264
- * 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))
265
-
266
-
267
-
268
-
269
-
270
- ## 0.1.1 (2020-12-10)
271
-
272
- **Note:** Version bump only for package @agoric/eslint-config