Skip to content

Commit a0a6241

Browse files
Loosened no-unused-vars
1 parent 9755e7a commit a0a6241

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

lib/javascript-rules.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ module.exports = {
130130
{
131131
vars: "all", // check "all" variables (as opposed to just "local" variables)
132132
args: "after-used", // check any arguments that come "after-used" arguments
133+
ignoreRestSiblings: true, // ignore siblings of ...rest params
134+
argsIgnorePattern: "^_", // Ignore variables and params that begin with an underscore
133135
},
134136
],
135137

lib/typescript-rules.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ module.exports = {
405405
{
406406
vars: "all", // check "all" variables (as opposed to just "local" variables)
407407
args: "after-used", // check any arguments that come "after-used" arguments
408+
ignoreRestSiblings: true, // ignore siblings of ...rest params
409+
argsIgnorePattern: "^_", // Ignore variables and params that begin with an underscore
408410
},
409411
],
410412

lib/universal-rules.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ module.exports = {
106106
"func-style": [
107107
"error",
108108
"declaration",
109+
{
110+
allowArrowFunctions: true,
111+
}
109112
],
110113

111114
/**

0 commit comments

Comments
 (0)