lint: Enforce "no-unused-vars" for catch statements
Now that we treat unused catch bindings as unused variables, update the eslint rule to enforce it. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3684>
This commit is contained in:
parent
60aa4319d9
commit
358cd14e0e
@ -12,6 +12,12 @@ rules:
|
|||||||
- mode: minimum
|
- mode: minimum
|
||||||
beforeColon: false
|
beforeColon: false
|
||||||
afterColon: true
|
afterColon: true
|
||||||
|
no-unused-vars:
|
||||||
|
- error
|
||||||
|
# Vars use a suffix _ instead of a prefix because of file-scope private vars
|
||||||
|
- varsIgnorePattern: (^unused|_$)
|
||||||
|
argsIgnorePattern: ^(unused|_)
|
||||||
|
caughtErrors: all
|
||||||
prefer-arrow-callback: error
|
prefer-arrow-callback: error
|
||||||
jsdoc/require-param-description: off
|
jsdoc/require-param-description: off
|
||||||
jsdoc/require-jsdoc:
|
jsdoc/require-jsdoc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user