Skip to content

Commit 29a1dd4

Browse files
gabegorelickclayreimann
authored andcommitted
Fix strict mode declarations
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.
1 parent 9e2527c commit 29a1dd4

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.eslintrc.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
module.exports = {
2-
"env": {
3-
"browser": true,
4-
"node": true
5-
},
6-
"extends": "eslint:recommended",
7-
"rules": {
8-
"no-extra-semi": "warn",
9-
"semi": ["error", "always"],
10-
"space-in-parens": ["error", "never"],
11-
"space-infix-ops": "error"
12-
}
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
"extends": "eslint:recommended",
7+
"rules": {
8+
"no-extra-semi": "warn",
9+
"semi": ["error", "always"],
10+
"space-in-parens": ["error", "never"],
11+
"space-infix-ops": "error",
12+
"strict": "error"
13+
}
1314
};

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
'use-strict';
1+
'use strict';
22

33
var xml = require('xml');
44
var Base = require('mocha').reporters.Base;

test/mocha-junit-reporter-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-env mocha */
2-
'use-strict';
2+
'use strict';
33

44
var Reporter = require('../index');
55
var Runner = require('./helpers/mock-runner');

test/mock-results.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict';
2+
13
var xml = require('xml');
24

35
module.exports = function(stats, options) {

0 commit comments

Comments
 (0)