Skip to content

Commit 8f8fc94

Browse files
committed
1 parent 698b043 commit 8f8fc94

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

config/plugins.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ module.exports = {
174174
'error',
175175
'always'
176176
],
177-
// TODO: Enable these when XO targets Node.js 8
177+
// TODO: Enable these when XO targets Node.js 10
178178
// 'node/prefer-global/text-decoder': [
179179
// 'error',
180180
// 'always'
@@ -191,6 +191,7 @@ module.exports = {
191191
// 'error',
192192
// 'always'
193193
// ]
194+
// 'node/prefer-promises/dns': 'error',
194195

195196
'eslint-comments/disable-enable-pair': [
196197
'error',

lib/options-manager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ const ENGINE_RULES = {
9696
'always'
9797
]
9898
},
99+
'node/prefer-promises/dns': {
100+
'12.0.0': 'error'
101+
},
99102
'no-useless-catch': {
100103
'10.0.0': 'error'
101104
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"eslint-plugin-eslint-comments": "^3.0.1",
5959
"eslint-plugin-import": "^2.14.0",
6060
"eslint-plugin-no-use-extend-native": "^0.4.0",
61-
"eslint-plugin-node": "^8.0.0",
61+
"eslint-plugin-node": "^9.1.0",
6262
"eslint-plugin-prettier": "^3.0.0",
6363
"eslint-plugin-promise": "^4.0.0",
6464
"eslint-plugin-unicorn": "^7.0.0",

0 commit comments

Comments
 (0)