Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
refactor: require at least node@6 (drop node@4 support)
Browse files Browse the repository at this point in the history
Please upgrade node in case you are affected by this. node@6 is the current LTS version

(https://github.com/nodejs/Release#release-schedule).

BREAKING CHANGE: Dropped support of outdated node versions. This package requires at least node@6

now.
  • Loading branch information
dferber90 committed May 9, 2018
1 parent 23f68c2 commit afff9dd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ notifications:
node_js:
- 8
- 6
- 4
- 10
before_install:
- npm i -g npm@^6.0.0
Expand Down
4 changes: 3 additions & 1 deletion lib/rules/template-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* See LICENSE file in root directory for full license.
*/

const values = require('../util/values');

const templateProps = new Set([
'onCreated',
'onRendered',
Expand Down Expand Up @@ -41,7 +43,7 @@ const getErrorMessage = expected =>

module.exports = {
meta: {
schema: [{ enum: Object.values(NAMING_CONVENTIONS) }],
schema: [{ enum: values(NAMING_CONVENTIONS) }],
},
create: context => ({
MemberExpression: node => {
Expand Down
1 change: 1 addition & 0 deletions lib/util/values.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = obj => Object.keys(obj).map(key => obj[key]);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"eslint": ">= 3.7.0 < 5"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"keywords": [
"eslint",
Expand Down

0 comments on commit afff9dd

Please sign in to comment.