File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ const base = {
2525 'no-compare-neg-zero' : ERROR ,
2626 // disallow use of console
2727 'no-console' : ERROR ,
28+ // disallows expressions where the operation doesn't affect the value
29+ 'no-constant-binary-expression' : ERROR ,
2830 // disallow constant expressions in conditions
2931 'no-constant-condition' : [ ERROR , { checkLoops : false } ] ,
3032 // disallow use of debugger
Original file line number Diff line number Diff line change 4343 "core-js-pure" : " file:./packages/core-js-pure" ,
4444 "david" : " ^12.0.0" ,
4545 "es-observable" : " git+https://github.com/tc39/proposal-observable.git#d3404f06bc70c7c578a5047dfb3dc813730e3319" ,
46- "eslint" : " ^8.13 .0" ,
46+ "eslint" : " ^8.14 .0" ,
4747 "eslint-plugin-array-func" : " ^3.1.7" ,
4848 "eslint-plugin-es-x" : " ^5.2.0" ,
4949 "eslint-plugin-eslint-comments" : " ^3.2.0" ,
5252 "eslint-plugin-n" : " ^15.1.0" ,
5353 "eslint-plugin-promise" : " ^6.0.0" ,
5454 "eslint-plugin-qunit" : " ^7.2.0" ,
55- "eslint-plugin-regexp" : " ^1.6 .0" ,
55+ "eslint-plugin-regexp" : " ^1.7 .0" ,
5656 "eslint-plugin-sonarjs" : " ~0.13.0" ,
5757 "eslint-plugin-unicorn" : " ^42.0.0" ,
5858 "jsonc-eslint-parser" : " ^2.1.0" ,
Original file line number Diff line number Diff line change @@ -919,6 +919,7 @@ GLOBAL.tests = {
919919 var re1 = / a / g;
920920 var re2 = / a / g;
921921 re2 [ Symbol . match ] = false ;
922+ // eslint-disable-next-line no-constant-binary-expression -- required for testing
922923 return new RegExp ( re1 ) !== re1
923924 && RegExp ( re1 ) === re1
924925 && RegExp ( re2 ) !== re2
You can’t perform that action at this time.
0 commit comments