Skip to content

Commit

Permalink
fix: eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxken committed Jul 16, 2019
1 parent ce7b848 commit 10ce28a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
8 changes: 0 additions & 8 deletions .snyk

This file was deleted.

9 changes: 5 additions & 4 deletions bin/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env node
"use strict";

// Require Node.js Dependencies
const { readFile, writeFile, unlink, readdir, copyFile, mkdir, appendFile } = require("fs").promises;
Expand Down Expand Up @@ -30,9 +31,9 @@ const { DEV_DEPENDENCIES, NAPI_DEPENDENCIES } = require("../src/dependencies.jso

/**
* @async
* @func downloadNAPIHeader
* @desc Download and extract NAPI Headers
* @param {!String} includeDir include directory absolute path
* @function downloadNAPIHeader
* @description Download and extract NAPI Headers
* @param {!string} includeDir include directory absolute path
* @returns {Promise<void>}
*/
async function downloadNAPIHeader(includeDir) {
Expand All @@ -56,7 +57,7 @@ async function downloadNAPIHeader(includeDir) {
/**
* @async
* @function main
* @desc Main Generator CLI
* @description Main Generator CLI
* @returns {Promise<void>}
*/
async function main() {
Expand Down
2 changes: 2 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

module.exports = {
extends: ["@commitlint/config-conventional"]
};
20 changes: 11 additions & 9 deletions src/utils.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

// Require Node.js Dependencies
const { createReadStream, createWriteStream, promises: { readdir } } = require("fs");
const { promisify } = require("util");
Expand All @@ -13,9 +15,9 @@ const pipeline = promisify(stream.pipeline);
/**
* @async
* @function transfertFiles
* @desc Transfer all files in a given directory to a new given directory (the target).
* @param {!String} currDir current Directory where file are stored
* @param {!String} targetDir target Directory where files should be transfered
* @description Transfer all files in a given directory to a new given directory (the target).
* @param {!string} currDir current Directory where file are stored
* @param {!string} targetDir target Directory where files should be transfered
* @returns {Promise<void>}
*/
async function transfertFiles(currDir, targetDir) {
Expand All @@ -30,9 +32,9 @@ async function transfertFiles(currDir, targetDir) {
}

/**
* @func filterPackageName
* @param {!String} name package name
* @returns {String}
* @function filterPackageName
* @param {!string} name package name
* @returns {string}
*/
function filterPackageName(name) {
return name
Expand All @@ -45,9 +47,9 @@ function filterPackageName(name) {

/**
* @function upperCase
* @desc Uppercase first letter of word
* @param {!String} word string to uppercase
* @returns {String}
* @description Uppercase first letter of word
* @param {!string} word string to uppercase
* @returns {string}
*/
function upperCase(word) {
return word.charAt(0).toUpperCase() + word.slice(1);
Expand Down
2 changes: 2 additions & 0 deletions template/defaultFiles/commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"use strict";

module.exports = {
extends: ["@commitlint/config-conventional"]
};

0 comments on commit 10ce28a

Please sign in to comment.