Skip to content

Commit 82f605e

Browse files
committed
Configure unusused-var ignorePattern
1 parent 8284b9c commit 82f605e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.eslintrc.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,13 @@ module.exports = {
33
"airbnb-base",
44
"plugin:you-dont-need-lodash-underscore/compatible"
55
],
6-
rules: { "newline-per-chained-call": [2] }
6+
rules: {
7+
"newline-per-chained-call": [2],
8+
"no-unused-vars": [
9+
2,
10+
{
11+
"argsIgnorePattern": "^_"
12+
}
13+
]
14+
}
715
};

features/step_definitions/steps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ When('I send a POST request to {string} with:', (route, body, callback) => {
6969
});
7070
});
7171

72-
Then('there is an access token in the response:', () => {
72+
Then('there is an access token in the response:', (_docString) => {
7373
expect(httpResponse.accessToken).to.be.a('string');
7474
expect(httpResponse.accessToken.length).to.eq(342);
7575
});

0 commit comments

Comments
 (0)