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 = {
25
25
'no-compare-neg-zero' : ERROR ,
26
26
// disallow use of console
27
27
'no-console' : ERROR ,
28
+ // disallows expressions where the operation doesn't affect the value
29
+ 'no-constant-binary-expression' : ERROR ,
28
30
// disallow constant expressions in conditions
29
31
'no-constant-condition' : [ ERROR , { checkLoops : false } ] ,
30
32
// disallow use of debugger
Original file line number Diff line number Diff line change 43
43
"core-js-pure" : " file:./packages/core-js-pure" ,
44
44
"david" : " ^12.0.0" ,
45
45
"es-observable" : " git+https://github.com/tc39/proposal-observable.git#d3404f06bc70c7c578a5047dfb3dc813730e3319" ,
46
- "eslint" : " ^8.13 .0" ,
46
+ "eslint" : " ^8.14 .0" ,
47
47
"eslint-plugin-array-func" : " ^3.1.7" ,
48
48
"eslint-plugin-es-x" : " ^5.2.0" ,
49
49
"eslint-plugin-eslint-comments" : " ^3.2.0" ,
52
52
"eslint-plugin-n" : " ^15.1.0" ,
53
53
"eslint-plugin-promise" : " ^6.0.0" ,
54
54
"eslint-plugin-qunit" : " ^7.2.0" ,
55
- "eslint-plugin-regexp" : " ^1.6 .0" ,
55
+ "eslint-plugin-regexp" : " ^1.7 .0" ,
56
56
"eslint-plugin-sonarjs" : " ~0.13.0" ,
57
57
"eslint-plugin-unicorn" : " ^42.0.0" ,
58
58
"jsonc-eslint-parser" : " ^2.1.0" ,
Original file line number Diff line number Diff line change @@ -919,6 +919,7 @@ GLOBAL.tests = {
919
919
var re1 = / a / g;
920
920
var re2 = / a / g;
921
921
re2 [ Symbol . match ] = false ;
922
+ // eslint-disable-next-line no-constant-binary-expression -- required for testing
922
923
return new RegExp ( re1 ) !== re1
923
924
&& RegExp ( re1 ) === re1
924
925
&& RegExp ( re2 ) !== re2
You can’t perform that action at this time.
0 commit comments