eslint-config-isaacscript 1.0.55 → 1.0.58

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 +16 -2
  2. package/package.json +1 -1
package/base.js CHANGED
@@ -73,6 +73,13 @@ module.exports = {
73
73
  // Prefer the "[]string" syntax over "Array<string>"
74
74
  "@typescript-eslint/array-type": ["warn", { default: "array-simple" }],
75
75
 
76
+ // Documentation:
77
+ // https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
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",
82
+
76
83
  // Documentation:
77
84
  // https://eslint.org/docs/rules/lines-between-class-members
78
85
  // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/lines-between-class-members.md
@@ -127,9 +134,16 @@ module.exports = {
127
134
  // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
128
135
  // Defined at:
129
136
  // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
130
- // 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
131
139
  // This matches the behavior of the TypeScript compiler flag "--noUnusedLocals"
132
- "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
140
+ "@typescript-eslint/no-unused-vars": [
141
+ "warn",
142
+ {
143
+ args: "all",
144
+ argsIgnorePattern: "^_",
145
+ },
146
+ ],
133
147
 
134
148
  // Documentation:
135
149
  // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-isaacscript",
3
- "version": "1.0.55",
3
+ "version": "1.0.58",
4
4
  "description": "An ESLint config for IsaacScript projects.",
5
5
  "repository": {
6
6
  "type": "git",