Skip to content

Commit

Permalink
fix(src): node >= v4.0.0 support (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed Aug 7, 2018
1 parent ce6626b commit cb13dd4
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -14,6 +14,8 @@ jobs:
node_js: 'lts/*'
- <<: *test
node_js: 6
- <<: *test
node_js: 4

script: npm run $SCRIPT

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -28,7 +28,7 @@
"eslint": "^5.0.0",
"eslint-plugin-import": "^2.0.0",
"eslint-plugin-prettier": "^2.0.0",
"jest": "^22.0.0",
"jest": "^21.0.0",
"prettier": "^1.0.0",
"standard-version": "^4.0.0"
},
Expand Down
6 changes: 6 additions & 0 deletions src/ValidationError.js
@@ -1,3 +1,9 @@
/* eslint-disable
strict
*/

'use strict';

class ValidationError extends Error {
constructor(errors, name) {
super();
Expand Down
6 changes: 6 additions & 0 deletions src/index.js
@@ -1,3 +1,9 @@
/* eslint-disable
strict
*/

'use strict';

const validateOptions = require('./validateOptions');

module.exports = validateOptions;
4 changes: 4 additions & 0 deletions src/validateOptions.js
@@ -1,6 +1,10 @@
/* eslint-disable
strict,
no-param-reassign
*/

'use strict';

const fs = require('fs');
const path = require('path');

Expand Down
4 changes: 4 additions & 0 deletions test/index.test.js
@@ -1,6 +1,10 @@
/* eslint-disable
strict,
no-shadow
*/

'use strict';

const validateOptions = require('../src');

test('Valid', () => {
Expand Down

0 comments on commit cb13dd4

Please sign in to comment.