Skip to content

Commit

Permalink
'use strict' fixes #170
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Sep 13, 2017
1 parent ef0b204 commit 930187b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"semi": ["warn", "always"],
"space-before-blocks": ["warn", "always"],
"space-before-function-paren": ["warn", "never"],
"space-in-parens": ["warn", "never"]
"space-in-parens": ["warn", "never"],
"strict": ["warn", "global"]
}
}
2 changes: 2 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

'use strict';

var mime = require('./mime.js');
var file = process.argv[2];
var type = mime.getType(file);
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
'use strict';

const Mime = require('./Mime');
module.exports = new Mime(require('./types/standard'), require('./types/other'));
2 changes: 2 additions & 0 deletions lite.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
'use strict';

const Mime = require('./Mime');
module.exports = new Mime(require('./types/standard'));
2 changes: 2 additions & 0 deletions src/build.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env node

'use strict';

const fs = require('fs');
const path = require('path');

Expand Down
2 changes: 2 additions & 0 deletions src/test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

var mime = require('..');
var mimeTypes = require('../node_modules/mime-types');
var assert = require('assert');
Expand Down

0 comments on commit 930187b

Please sign in to comment.