Skip to content

Commit

Permalink
Require Node.js 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Feb 12, 2020
1 parent 152ab8f commit 28608a4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ language: node_js
node_js:
- '12'
- '10'
- '8'
5 changes: 2 additions & 3 deletions esnext.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ module.exports = {
enforceForRenamedProperties: false
}
],
// TODO: Enable these when targeting Node.js 10
// 'no-useless-catch': 'error',
// 'prefer-named-capture-group': 'error'
'no-useless-catch': 'error',
'prefer-named-capture-group': 'error'
}
};
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ module.exports = {
'error',
'always',
{
// You can also ignore this rule by wrapping the first word in quotes
// You can also ignore this rule by wrapping the first word in quotes.
ignorePattern: /pragma|ignore|prettier-ignore/.source,
ignoreInlineComments: true,
ignoreConsecutiveComments: true
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"scripts": {
"test": "ava"
Expand Down Expand Up @@ -60,6 +60,6 @@
"temp-write": "^4.0.0"
},
"peerDependencies": {
"eslint": ">=6.7.0"
"eslint": ">=6.8.0"
}
}

0 comments on commit 28608a4

Please sign in to comment.