Skip to content

Commit f9f03b3

Browse files
committed
update dependencies / linting settings
1 parent 4fcf731 commit f9f03b3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
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",
@@ -52,7 +52,7 @@
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",

tests/compat/tests.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)