Skip to content

Commit 3741a88

Browse files
Add "no-unused-vars" eslint rule
1 parent b7d6a42 commit 3741a88

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/librustdoc/html/static/.eslintrc.js

+7
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,12 @@ module.exports = {
5555
"max-len": ["error", { "code": 100, "tabWidth": 4 }],
5656
"eol-last": ["error", "always"],
5757
"arrow-parens": ["error", "as-needed"],
58+
"no-unused-vars": [
59+
"error",
60+
{
61+
"argsIgnorePattern": "^_",
62+
"varsIgnorePattern": "^_"
63+
}
64+
],
5865
}
5966
};

0 commit comments

Comments
 (0)