Skip to content

Commit

Permalink
lint: fix eslint no-unused-vars rule
Browse files Browse the repository at this point in the history
We use rest siblings a lot, including those with specifically excluded
list of some variables, e.g. to ensure that there are no unknown options.
  • Loading branch information
ChALkeR committed Jul 19, 2020
1 parent 22a0162 commit 533f6b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"no-proto": 2,
"no-prototype-builtins": 2,
"no-shadow": 2,
"no-unused-vars": [2, { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"no-unused-vars": [2, { "vars": "all", "args": "after-used", "ignoreRestSiblings": true }],
"prefer-const": 2,
"prefer-object-spread": 2,
"prefer-template": 2,
Expand Down
2 changes: 1 addition & 1 deletion src/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const compileSchema = (schema, root, opts, scope, basePathRoot = '') => {
removeAdditional = false, // supports additionalProperties: false and additionalItems: false
includeErrors = false,
allErrors = false,
dryRun = false,
dryRun, // unused, just for rest siblings
allowUnusedKeywords = opts.mode === 'lax',
allowUnreachable = opts.mode === 'lax',
requireValidation = opts.mode === 'strong',
Expand Down

0 comments on commit 533f6b6

Please sign in to comment.