Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed May 12, 2022
1 parent a80d08d commit 17f2d63
Show file tree
Hide file tree
Showing 4 changed files with 1,550 additions and 84 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"mocha": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:array-func/recommended"
],
"plugins": [
"mocha",
"prefer-arrow"
],
"rules": {
"mocha/no-exclusive-tests": "error"
},
"parserOptions": {
"ecmaVersion": 2017
}
}
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,10 @@ Handlebars.registerHelper('srcLink', function (value) {
}
});


Handlebars.registerHelper('debug', function (value, options) {
Handlebars.registerHelper('debug', function (value) {
return JSON.stringify(value);
});


function slugify(block) {
block.slug = slugger.slug(block.name);
Object.keys(block.members).forEach((m) => block.members[m].forEach(slugify));
Expand Down
Loading

0 comments on commit 17f2d63

Please sign in to comment.