mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
Merge pull request #128 from resin-io/feat/jshint-unused
Throw warnings for unused and undefined variables
This commit is contained in:
commit
e76834f83d
@ -44,6 +44,8 @@
|
|||||||
"strict" : true, // Require `use strict` pragma in every file.
|
"strict" : true, // Require `use strict` pragma in every file.
|
||||||
"trailing" : true, // Prohibit trailing whitespaces.
|
"trailing" : true, // Prohibit trailing whitespaces.
|
||||||
"maxlen" : 130, // Limit line length.
|
"maxlen" : 130, // Limit line length.
|
||||||
|
"unused" : true, // Prohibit unused variables.
|
||||||
|
"undef" : true, // Prohibit undefined variables.
|
||||||
|
|
||||||
// == Relaxing Options ================================================
|
// == Relaxing Options ================================================
|
||||||
//
|
//
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const _ = require('lodash');
|
|
||||||
const electron = require('electron');
|
const electron = require('electron');
|
||||||
const isElevated = require('is-elevated');
|
const isElevated = require('is-elevated');
|
||||||
const sudoPrompt = require('sudo-prompt');
|
const sudoPrompt = require('sudo-prompt');
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
const m = require('mochainon');
|
const m = require('mochainon');
|
||||||
const ReadableStream = require('stream').Readable;
|
const ReadableStream = require('stream').Readable;
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const umount = require('umount');
|
|
||||||
const writer = require('../../lib/src/writer');
|
const writer = require('../../lib/src/writer');
|
||||||
|
|
||||||
describe('Writer:', function() {
|
describe('Writer:', function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user