summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2020-02-28 18:34:59 -0500
committerAnna Henningsen <anna@addaleax.net>2020-03-11 16:42:41 +0100
commitb4ca247ee1bf38f5080e59de951b6217a97590ae (patch)
tree74037b150d26a970f13b7e41ee11c3a067f5c2b2 /.eslintrc.js
parent6712e4a4279c04a87b0f9fc6c0dead4b12bd1c3d (diff)
downloadnode-new-b4ca247ee1bf38f5080e59de951b6217a97590ae.tar.gz
tools: enable default-case-last lint rule
PR-URL: https://github.com/nodejs/node/pull/31400 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 59d585b9d3..2e3b55b0df 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -85,6 +85,7 @@ module.exports = {
'comma-style': 'error',
'computed-property-spacing': 'error',
'constructor-super': 'error',
+ 'default-case-last': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'eol-last': 'error',