Skip to content

Commit

Permalink
Fix strict mode declarations
Browse files Browse the repository at this point in the history
There were a bunch of `'use-strict'` annotations which as far as
I know isn't a thing. This also turns on eslint checks for strict
mode to catch this in the future.
  • Loading branch information
gabegorelick authored and clayreimann committed May 25, 2020
1 parent 9e2527c commit 29a1dd4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
23 changes: 12 additions & 11 deletions .eslintrc.js
@@ -1,13 +1,14 @@
module.exports = {
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"no-extra-semi": "warn",
"semi": ["error", "always"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error"
}
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"no-extra-semi": "warn",
"semi": ["error", "always"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"strict": "error"
}
};
2 changes: 1 addition & 1 deletion index.js
@@ -1,4 +1,4 @@
'use-strict';
'use strict';

var xml = require('xml');
var Base = require('mocha').reporters.Base;
Expand Down
2 changes: 1 addition & 1 deletion test/mocha-junit-reporter-spec.js
@@ -1,5 +1,5 @@
/* eslint-env mocha */
'use-strict';
'use strict';

var Reporter = require('../index');
var Runner = require('./helpers/mock-runner');
Expand Down
2 changes: 2 additions & 0 deletions test/mock-results.js
@@ -1,3 +1,5 @@
'use strict';

var xml = require('xml');

module.exports = function(stats, options) {
Expand Down

0 comments on commit 29a1dd4

Please sign in to comment.