eslint-config-isaacscript 1.0.56 → 1.0.59

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/base.js +30 -3
  2. package/package.json +1 -1
package/base.js CHANGED
@@ -75,7 +75,10 @@ module.exports = {
75
75
 
76
76
  // Documentation:
77
77
  // https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
78
- "@typescript-eslint/explicit-module-boundary-types": "on",
78
+ // Not defined in the parent configs
79
+ // Specifying explicit return types can help prevent bugs, but only require it on exported
80
+ // functions
81
+ "@typescript-eslint/explicit-module-boundary-types": "warn",
79
82
 
80
83
  // Documentation:
81
84
  // https://eslint.org/docs/rules/lines-between-class-members
@@ -131,9 +134,16 @@ module.exports = {
131
134
  // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
132
135
  // Defined at:
133
136
  // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
134
- // We want to ignore function arguments that start with an underscore
137
+ // We want to lint unused arguments (the default is "after-used")
138
+ // We also want to ignore function arguments that start with an underscore
135
139
  // This matches the behavior of the TypeScript compiler flag "--noUnusedLocals"
136
- "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
140
+ "@typescript-eslint/no-unused-vars": [
141
+ "warn",
142
+ {
143
+ args: "all",
144
+ argsIgnorePattern: "^_",
145
+ },
146
+ ],
137
147
 
138
148
  // Documentation:
139
149
  // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md
@@ -235,6 +245,23 @@ module.exports = {
235
245
  },
236
246
  ],
237
247
 
248
+ // Documentation:
249
+ // https://github.com/gajus/eslint-plugin-jsdoc#user-content-eslint-plugin-jsdoc-rules-match-description
250
+ // Not defined in parent configs
251
+ // Needed for catching superfluous leading and trailing newlines as documented here:
252
+ // https://github.com/gajus/eslint-plugin-jsdoc/issues/847
253
+ "jsdoc/match-description": [
254
+ "warn",
255
+ {
256
+ matchDescription: "^\\S[\\s\\S]*\\S$",
257
+ contexts: [
258
+ {
259
+ comment: "JsdocBlock[endLine!=0]:not(:has(JsdocTag))",
260
+ },
261
+ ],
262
+ },
263
+ ],
264
+
238
265
  // Documentation:
239
266
  // https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-jsdoc
240
267
  // Defined at:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "1.0.56",
3
+ "version": "1.0.59",
4
4
  "description": "An ESLint config for IsaacScript projects.",
5
5
  "repository": {
6
6
  "type": "git",