Skip to content

Commit aafa799

Browse files
committed
Upgrade devDependencies: eslint 5->8, mocha 6->9, nyc 14->15
1 parent 1c91277 commit aafa799

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.eslintrc.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// The ESLint ecmaVersion argument is inconsistently used. Some rules will ignore it entirely, so if the rule has
22
// been set, it will still error even if it's not applicable to that version number. Since Google sets these
33
// rules, we have to turn them off ourselves.
4-
const DISABLED_ES6_OPTIONS = {
4+
var DISABLED_ES6_OPTIONS = {
55
'no-var': 'off',
66
'prefer-rest-params': 'off',
77
'prefer-spread': 'off',
88
// Not supported in ES3
99
'comma-dangle': ['error', 'never']
1010
};
1111

12-
const CUSTOM_RULES = {
12+
var CUSTOM_RULES = {
1313
'one-var': 'off',
1414
// We control our own objects and prototypes, so no need for this check
1515
'guard-for-in': 'off',
@@ -18,7 +18,7 @@ const CUSTOM_RULES = {
1818
'indent': ['error', 2, {'SwitchCase': 1}],
1919
// Less aggressive line length than Google, which is especially useful when we have a lot of callbacks in our code
2020
'max-len': ['error', {code: 120, tabWidth: 2, ignoreUrls: true}],
21-
// Google overrides the default ESLint behaviour here, which is slightly better for catching erroneously unused variables
21+
// Go back to default ESLint behaviour here, which is slightly better for catching erroneously unused variables
2222
'no-unused-vars': ['error', {vars: 'all', args: 'after-used'}],
2323
'require-jsdoc': 'off',
2424
'valid-jsdoc': 'off'
@@ -27,11 +27,11 @@ const CUSTOM_RULES = {
2727
module.exports = {
2828
extends: 'google',
2929
parserOptions: {
30-
ecmaVersion: 3
30+
ecmaVersion: 5
3131
},
3232
rules: Object.assign(
3333
{},
3434
DISABLED_ES6_OPTIONS,
3535
CUSTOM_RULES
36-
),
36+
)
3737
};

.mocharc.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
reporter: spec
2+
timeout: 1200
3+
check-leaks: true
4+
recursive: true

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
"devDependencies": {
2323
"chai": "^4.2.0",
2424
"coveralls": "^3.0.5",
25-
"eslint": "^5.16.0",
26-
"eslint-config-google": "^0.13.0",
27-
"mocha": "^6.1.4",
28-
"nyc": "^14.1.1"
25+
"eslint": "^8.1.0",
26+
"eslint-config-google": "^0.14.0",
27+
"mocha": "^9.1.3",
28+
"nyc": "^15.1.0"
2929
},
3030
"bugs": {
3131
"url": "https://github.com/derbyjs/racer/issues"

test/mocha.opts

-4
This file was deleted.

0 commit comments

Comments
 (0)