Permalink
Browse files

'use strict' fixes #170

  • Loading branch information...
broofa committed Sep 13, 2017
1 parent ef0b204 commit 930187b8017a4c07322653481cc801e485701fde
Showing with 12 additions and 1 deletion.
  1. +2 −1 .eslintrc.json
  2. +2 −0 cli.js
  3. +2 −0 index.js
  4. +2 −0 lite.js
  5. +2 −0 src/build.js
  6. +2 −0 src/test.js
View
@@ -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"]
}
}
View
2 cli.js
@@ -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);
View
@@ -1,2 +1,4 @@
'use strict';
const Mime = require('./Mime');
module.exports = new Mime(require('./types/standard'), require('./types/other'));
View
@@ -1,2 +1,4 @@
'use strict';
const Mime = require('./Mime');
module.exports = new Mime(require('./types/standard'));
View
@@ -1,5 +1,7 @@
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const path = require('path');
View
@@ -1,3 +1,5 @@
'use strict';
var mime = require('..');
var mimeTypes = require('../node_modules/mime-types');
var assert = require('assert');

0 comments on commit 930187b

Please sign in to comment.