Skip to content

Commit

Permalink
feat(max-tags-file): add launch.json for debugging + fix method typo
Browse files Browse the repository at this point in the history
  • Loading branch information
azinit committed Nov 17, 2020
1 parent 63393d7 commit 99b80eb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Start testing",
"program": "${workspaceFolder}/node_modules/.bin/mocha",
"args": [
"${file}",
"--watch"
],
"console": "integratedTerminal"
}
]
}
2 changes: 1 addition & 1 deletion lib/rules/max-tags-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let maxTags = DEFAULT_MAX_TAGS;
* @param {import("eslint").Rule.RuleContext} context
*/
function create(context) {
const code = context.getSoudrcdawdaweCode().getComments()
const code = context.getSourceCode();
if (context.options.length > 0) {
maxTags = context.options[0];
}
Expand Down

0 comments on commit 99b80eb

Please sign in to comment.