Skip to content

Commit b402179

Browse files
committed
fix: warnings on lint
1 parent 2144a1b commit b402179

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

packages/info/configParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const CONFIG_SCHEMA = {
2626
plugins: 'Array',
2727
};
2828

29-
function modifyConfig(config, key) {
29+
function modifyConfig(config, key): void {
3030
switch (CONFIG_SCHEMA[key]) {
3131
case 'Array':
3232
config[key].forEach((element, idx) => {

smoketests/watch/watch.array.smoketest.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
12
'use strict';
23

34
const assert = require('assert');
@@ -20,15 +21,21 @@ const testEntryFiles = [
2021
},
2122
];
2223

23-
// Make a copy of each file
24+
/**
25+
* Make a copy of each file
26+
* @returns {void}
27+
*/
2428
async function setup() {
2529
await testEntryFiles.forEach(async file => {
2630
// eslint-disable-next-line
2731
file.cpFP = await copyFileAsync(__dirname, file.name);
2832
});
2933
}
3034

31-
// Remove symlinks, restore file
35+
/**
36+
* Remove symlinks, restore file
37+
* @returns {void}
38+
*/
3239
async function teardown() {
3340
testEntryFiles.forEach(file => {
3441
try {

smoketests/watch/watch.single.smoketest.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/explicit-function-return-type */
12
'use strict';
23

34
const assert = require('assert');
@@ -15,15 +16,21 @@ const testEntryFiles = [
1516
},
1617
];
1718

18-
// Make a copy of each file
19+
/**
20+
* Make a copy of each file
21+
* @returns {void}
22+
*/
1923
async function setup() {
2024
await testEntryFiles.forEach(async file => {
2125
// eslint-disable-next-line
2226
file.cpFP = await copyFileAsync(__dirname, file.name);
2327
});
2428
}
2529

26-
// Remove symlinks, restore file
30+
/**
31+
* Remove symlinks, restore file
32+
* @returns {void}
33+
*/
2734
async function teardown() {
2835
await testEntryFiles.forEach(async file => {
2936
try {

0 commit comments

Comments
 (0)