npm install -D eslint-plugin-no-dupe-val Usage Add no-dupe-val to the plugins section of your .eslintrc: { "plugins": [ "no-dupe-val" ] } Turn off the no-dupe-val rule: { "rules": { "no-dupe-val": 0 } }