diff options
author | Gus Caplan <me@gus.host> | 2018-07-07 23:32:23 -0500 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2018-07-12 16:11:11 -0500 |
commit | 8cae9b2ff808198b4451d9de634320fa5750c4cd (patch) | |
tree | 40b8264e77fefec5a9dba3c0d646483b8260cf3a /.eslintrc.js | |
parent | 1849a2b2e98c093e27d781bd5040f76a22e8f977 (diff) | |
download | android-node-v8-8cae9b2ff808198b4451d9de634320fa5750c4cd.tar.gz android-node-v8-8cae9b2ff808198b4451d9de634320fa5750c4cd.tar.bz2 android-node-v8-8cae9b2ff808198b4451d9de634320fa5750c4cd.zip |
tools: add no-duplicate-requires rule
PR-URL: https://github.com/nodejs/node/pull/21712
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 742f9ea6d3..98568dd9bc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -98,6 +98,7 @@ module.exports = { 'no-dupe-class-members': 'error', 'no-dupe-keys': 'error', 'no-duplicate-case': 'error', + 'no-duplicate-imports': 'error', 'no-empty-character-class': 'error', 'no-ex-assign': 'error', 'no-extra-boolean-cast': 'error', @@ -246,6 +247,7 @@ module.exports = { // Custom rules from eslint-plugin-node-core 'node-core/no-unescaped-regexp-dot': 'error', + 'node-core/no-duplicate-requires': 'error', }, globals: { Atomics: false, |