Skip to content

Commit a949863

Browse files
authored
Merge pull request #32 from dihar/fix-no-unused-vars
fixes #31
2 parents 97bcb01 + 12eb25a commit a949863

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

es5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = {
8484
// Variables
8585
// http://eslint.org/docs/rules/#variables
8686
// ---------------------------------------
87-
'no-unused-vars': ['error', {args: 'all', argsIgnorePattern: '^_'}], // check that all args are used¬
87+
'no-unused-vars': ['error', {args: 'after-used', argsIgnorePattern: '^_'}], // check that all args are used¬
8888
'no-delete-var': 'error', // eslint:recommended
8989
'no-label-var': 'error',
9090
'no-shadow': 'error',

test/es5/unused-params.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ var bar = function (param2) {
44
return param2;
55
};
66

7+
var bar1 = function (param1, param2) {
8+
return param2;
9+
};
10+
711
var foo = function () {
812
bar();
13+
bar1();
914
};
1015

1116
var myObject = {

0 commit comments

Comments
 (0)