Skip to content

Commit 8cd7049

Browse files
committed
Update linting
1 parent 70f757f commit 8cd7049

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.eslintrc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"extends": "semistandard",
3-
"root": true,
4-
"rules": {
5-
"no-var": 2
6-
}
2+
"extends": "@voxpelli",
3+
"root": true
74
}

lib/slug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const SLUGIFY_TRAILING_LEADING_HYPHEN = /^-|-$/g;
4545
* @param {string} str - the string to create a slug of
4646
* @param {string} [mode] - how string is slugified. Can be set to "default", "pretty" or "raw"
4747
* @param {boolean} [cased] - whether to keep the character casing or not
48-
* @return {string} the slugified string
48+
* @returns {string} the slugified string
4949
* @see {@link https://github.com/jekyll/jekyll/blob/9278eb8fcec85b17573c6658d7d67ef6ea6ffb92/lib/jekyll/utils.rb#L177|Mimicked Jekyll Code}
5050
*/
5151
const slugify = function (str, mode = 'default', cased = false) {

lib/url.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ const generateUrl = function (template, jekyllResource) {
7676
* used as URL.
7777
* @see {@link https://github.com/jekyll/jekyll/blob/cc82d442223bdaee36a2aceada64008a0106d82b/lib/jekyll/url.rb|Mimicked Jekyll Code}
7878
*/
79-
function JekyllUrl (options) {
79+
const JekyllUrl = function (options) {
8080
this.template = options.template;
8181
this.placeholders = options.placeholders;
8282
this.permalink = options.permalink;
8383

8484
if (!this.template) {
8585
throw new Error('One of template or permalink must be supplied.');
8686
}
87-
}
87+
};
8888

8989
/**
9090
* Generates the relative URL of the resource

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@
3232
"@types/chai": "^4.2.0",
3333
"@types/mocha": "^5.2.7",
3434
"@types/node": "^12.7.1",
35+
"@voxpelli/eslint-config": "^4.0.0",
3536
"chai": "^4.2.0",
3637
"coveralls": "^3.0.5",
3738
"dependency-check": "^4.1.0",
3839
"documentation": "^12.1.1",
39-
"eslint": "^6.1.0",
40-
"eslint-config-semistandard": "^14.0.0",
41-
"eslint-config-standard": "^13.0.1",
40+
"eslint": "^6.8.0",
41+
"eslint-config-standard": "^14.1.0",
4242
"eslint-plugin-import": "^2.18.2",
43-
"eslint-plugin-node": "^9.1.0",
43+
"eslint-plugin-jsdoc": "^21.0.0",
44+
"eslint-plugin-node": "^11.0.0",
4445
"eslint-plugin-promise": "^4.2.1",
4546
"eslint-plugin-standard": "^4.0.0",
4647
"husky": "^3.0.3",

0 commit comments

Comments
 (0)