eslint-config-isaacscript 1.0.71 → 1.0.72

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/jsdoc.js +86 -13
  2. package/package.json +1 -1
package/jsdoc.js CHANGED
@@ -6,6 +6,12 @@ module.exports = {
6
6
  "jsdoc",
7
7
  ],
8
8
 
9
+ /**
10
+ * Instead of using the recommended config, we specifically turn on every rule that is useful.
11
+ *
12
+ * We must specify `context: "any"` for every rule because by default, the JSDoc rules will only
13
+ * affect a subset of AST node types.
14
+ */
9
15
  rules: {
10
16
  // - jsdoc/check-access - Not needed in TypeScript.
11
17
  // - jsdoc/check-alignment - Overlaps with `isaacscript/limit-jsdoc-comments`.
@@ -19,7 +25,12 @@ module.exports = {
19
25
  *
20
26
  * Ensures that parameter names in JSDoc match those in the function declaration.
21
27
  */
22
- "jsdoc/check-param-names": "warn",
28
+ "jsdoc/check-param-names": [
29
+ "warn",
30
+ {
31
+ context: "any",
32
+ },
33
+ ],
23
34
 
24
35
  // - jsdoc/check-property-names - Not needed in TypeScript.
25
36
  // - jsdoc/check-syntax - Not needed in TypeScript.
@@ -32,6 +43,7 @@ module.exports = {
32
43
  "jsdoc/check-tag-names": [
33
44
  "warn",
34
45
  {
46
+ context: "any",
35
47
  definedTags: [
36
48
  // Used by the TypeScript compiler:
37
49
  // https://www.typescriptlang.org/tsconfig#stripInternal
@@ -57,21 +69,36 @@ module.exports = {
57
69
  *
58
70
  * Validates the content of some uncommon JSDoc tags.
59
71
  */
60
- "jsdoc/check-values": "warn",
72
+ "jsdoc/check-values": [
73
+ "warn",
74
+ {
75
+ context: "any",
76
+ },
77
+ ],
61
78
 
62
79
  /**
63
80
  * Documentation: https://github.com/gajus/eslint-plugin-jsdoc#check-values
64
81
  *
65
82
  * Validates that specific tags are never empty.
66
83
  */
67
- "jsdoc/empty-tags": "warn",
84
+ "jsdoc/empty-tags": [
85
+ "warn",
86
+ {
87
+ context: "any",
88
+ },
89
+ ],
68
90
 
69
91
  /**
70
92
  * Documentation: https://github.com/gajus/eslint-plugin-jsdoc#implements-on-classes
71
93
  *
72
94
  * Reports issues with incorrect usage of `@implements`.
73
95
  */
74
- "jsdoc/implements-on-classes": "warn",
96
+ "jsdoc/implements-on-classes": [
97
+ "warn",
98
+ {
99
+ context: "any",
100
+ },
101
+ ],
75
102
 
76
103
  // - jsdoc/match-description - Overlaps with `isaacscript/jsdoc-full-sentences`.
77
104
  // - jsdoc/match-name - Only needed for projects with specific JSDoc requirements.
@@ -89,7 +116,12 @@ module.exports = {
89
116
  *
90
117
  * Disallows types being used on `@param` or `@returns`.
91
118
  */
92
- "jsdoc/no-types": "warn",
119
+ "jsdoc/no-types": [
120
+ "warn",
121
+ {
122
+ context: "any",
123
+ },
124
+ ],
93
125
 
94
126
  // - jsdoc/no-undefined-types - Not needed in TypeScript.
95
127
 
@@ -98,7 +130,12 @@ module.exports = {
98
130
  *
99
131
  * Requires that each JSDoc line starts with an `*`.
100
132
  */
101
- "jsdoc/require-asterisk-prefix": "warn",
133
+ "jsdoc/require-asterisk-prefix": [
134
+ "warn",
135
+ {
136
+ context: "any",
137
+ },
138
+ ],
102
139
 
103
140
  // - jsdoc/require-description-complete-sentence - Overlaps with
104
141
  // `isaacscript/jsdoc-complete-sentences`.
@@ -112,7 +149,13 @@ module.exports = {
112
149
  *
113
150
  * Disallow hyphens before parameter descriptions, as it is non-standard syntax.
114
151
  */
115
- "jsdoc/require-hyphen-before-param-description": ["warn", "never"],
152
+ "jsdoc/require-hyphen-before-param-description": [
153
+ "warn",
154
+ "never",
155
+ {
156
+ context: "any",
157
+ },
158
+ ],
116
159
 
117
160
  // - jsdoc/require-jsdoc - It's overboard for every function to have a JSDoc comment.
118
161
 
@@ -122,7 +165,12 @@ module.exports = {
122
165
  *
123
166
  * Requires that each `@param` tag has a description.
124
167
  */
125
- "jsdoc/require-param-description": "warn",
168
+ "jsdoc/require-param-description": [
169
+ "warn",
170
+ {
171
+ context: "any",
172
+ },
173
+ ],
126
174
 
127
175
  /**
128
176
  * Documentation:
@@ -130,7 +178,12 @@ module.exports = {
130
178
  *
131
179
  * Requires that each `@param` tag has a name.
132
180
  */
133
- "jsdoc/require-param-name": "warn",
181
+ "jsdoc/require-param-name": [
182
+ "warn",
183
+ {
184
+ context: "any",
185
+ },
186
+ ],
134
187
 
135
188
  // - jsdoc/require-param-type - Not needed in TypeScript.
136
189
  // - jsdoc/require-param - It's overboard for every function to document every parameter.
@@ -142,7 +195,12 @@ module.exports = {
142
195
  *
143
196
  * Requires that each `@property` tag has a description.
144
197
  */
145
- "jsdoc/require-property-description": "warn",
198
+ "jsdoc/require-property-description": [
199
+ "warn",
200
+ {
201
+ context: "any",
202
+ },
203
+ ],
146
204
 
147
205
  /**
148
206
  * Documentation:
@@ -150,7 +208,12 @@ module.exports = {
150
208
  *
151
209
  * Requires that each `@property` tag has a name.
152
210
  */
153
- "jsdoc/require-property-name": "warn",
211
+ "jsdoc/require-property-name": [
212
+ "warn",
213
+ {
214
+ context: "any",
215
+ },
216
+ ],
154
217
 
155
218
  // - jsdoc/require-property-type - Not needed in TypeScript.
156
219
  // - jsdoc/require-returns-check - It's overboard for every function to document every return
@@ -162,7 +225,12 @@ module.exports = {
162
225
  *
163
226
  * Requires that each `@returns` tag has a description.
164
227
  */
165
- "jsdoc/require-returns-description": "warn",
228
+ "jsdoc/require-returns-description": [
229
+ "warn",
230
+ {
231
+ context: "any",
232
+ },
233
+ ],
166
234
 
167
235
  // - jsdoc/require-returns-type - Not needed in TypeScript.
168
236
  // - jsdoc/require-returns - It's overboard for every function to document every return value.
@@ -178,7 +246,12 @@ module.exports = {
178
246
  *
179
247
  * Enforces no lines between tags.
180
248
  */
181
- "jsdoc/tag-lines": "warn",
249
+ "jsdoc/tag-lines": [
250
+ "warn",
251
+ {
252
+ context: "any",
253
+ },
254
+ ],
182
255
 
183
256
  // - jsdoc/valid-types - Not needed in TypeScript.
184
257
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
4
4
  "description": "An ESLint config for IsaacScript projects.",
5
5
  "repository": {
6
6
  "type": "git",