eslint-config-isaacscript 1.0.57 → 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.
- package/base.js +9 -2
- package/package.json +1 -1
package/base.js
CHANGED
|
@@ -134,9 +134,16 @@ module.exports = {
|
|
|
134
134
|
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
|
|
135
135
|
// Defined at:
|
|
136
136
|
// https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/variables.js
|
|
137
|
-
// We want to
|
|
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
|
|
138
139
|
// This matches the behavior of the TypeScript compiler flag "--noUnusedLocals"
|
|
139
|
-
"@typescript-eslint/no-unused-vars": [
|
|
140
|
+
"@typescript-eslint/no-unused-vars": [
|
|
141
|
+
"warn",
|
|
142
|
+
{
|
|
143
|
+
args: "all",
|
|
144
|
+
argsIgnorePattern: "^_",
|
|
145
|
+
},
|
|
146
|
+
],
|
|
140
147
|
|
|
141
148
|
// Documentation:
|
|
142
149
|
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-use-before-define.md
|