Skip to content

Commit cb13dd4

Browse files
fix(src): node >= v4.0.0 support (#32)
1 parent ce6626b commit cb13dd4

File tree

6 files changed

+23
-1
lines changed

6 files changed

+23
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
node_js: 'lts/*'
1515
- <<: *test
1616
node_js: 6
17+
- <<: *test
18+
node_js: 4
1719

1820
script: npm run $SCRIPT
1921

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"eslint": "^5.0.0",
2929
"eslint-plugin-import": "^2.0.0",
3030
"eslint-plugin-prettier": "^2.0.0",
31-
"jest": "^22.0.0",
31+
"jest": "^21.0.0",
3232
"prettier": "^1.0.0",
3333
"standard-version": "^4.0.0"
3434
},

src/ValidationError.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* eslint-disable
2+
strict
3+
*/
4+
5+
'use strict';
6+
17
class ValidationError extends Error {
28
constructor(errors, name) {
39
super();

src/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* eslint-disable
2+
strict
3+
*/
4+
5+
'use strict';
6+
17
const validateOptions = require('./validateOptions');
28

39
module.exports = validateOptions;

src/validateOptions.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/* eslint-disable
2+
strict,
23
no-param-reassign
34
*/
5+
6+
'use strict';
7+
48
const fs = require('fs');
59
const path = require('path');
610

test/index.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
/* eslint-disable
2+
strict,
23
no-shadow
34
*/
5+
6+
'use strict';
7+
48
const validateOptions = require('../src');
59

610
test('Valid', () => {

0 commit comments

Comments
 (0)