Skip to content

Commit 1396a28

Browse files
committed
Autofix
1 parent a6bb438 commit 1396a28

File tree

8 files changed

+221
-205
lines changed

8 files changed

+221
-205
lines changed

bin/main.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
*/
66
'use strict'
77

8-
// TODO: remove.
9-
/* eslint-disable no-process-exit, no-process-env */
10-
118
// ------------------------------------------------------------------------------
129
// Requirements
1310
// ------------------------------------------------------------------------------
@@ -182,5 +179,3 @@ module.exports = function main (source, outDir, args) {
182179
})
183180
}
184181
}
185-
186-
/* eslint-enable no-process-exit, no-process-env */

lib/copy-sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = function copySync (source, outputDir, options) {
4646
)
4747
}
4848

49-
options = normalizeOptions(source, outputDir, options) // eslint-disable-line no-param-reassign
49+
options = normalizeOptions(source, outputDir, options)
5050

5151
// Clean
5252
let cleaned = []

lib/copy.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,10 @@ const removeFile = require('./utils/remove-file')
3737
* @returns {Promise<void>} The promise which will go fulfilled after done.
3838
*/
3939
module.exports = async function copy (source, outputDir, options, callback) {
40-
/* eslint-disable no-param-reassign */
4140
if (typeof options === 'function') {
4241
callback = options
4342
options = undefined
4443
}
45-
/* eslint-enable no-param-reassign */
4644

4745
assert(typeof source === 'string', "'source' should be a string.")
4846
assert(source.trim().length >= 1, "'source' should not be empty.")
@@ -58,7 +56,6 @@ module.exports = async function copy (source, outputDir, options, callback) {
5856
)
5957
}
6058

61-
// eslint-disable-next-line no-param-reassign
6259
options = normalizeOptions(source, outputDir, options)
6360

6461
// Clean

lib/watch.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ module.exports = function watch (source, outputDir, options) {
4444
assert(typeof options === 'object', "'options' should be an object.")
4545
}
4646

47-
// eslint-disable-next-line no-param-reassign
4847
options = normalizeOptions(source, outputDir, options)
4948

5049
const watcher = new Watcher(options)

0 commit comments

Comments
 (0)