Skip to content

Commit

Permalink
update dependencies / linting settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 23, 2022
1 parent 4fcf731 commit f9f03b3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Expand Up @@ -25,6 +25,8 @@ const base = {
'no-compare-neg-zero': ERROR,
// disallow use of console
'no-console': ERROR,
// disallows expressions where the operation doesn't affect the value
'no-constant-binary-expression': ERROR,
// disallow constant expressions in conditions
'no-constant-condition': [ERROR, { checkLoops: false }],
// disallow use of debugger
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -43,7 +43,7 @@
"core-js-pure": "file:./packages/core-js-pure",
"david": "^12.0.0",
"es-observable": "git+https://github.com/tc39/proposal-observable.git#d3404f06bc70c7c578a5047dfb3dc813730e3319",
"eslint": "^8.13.0",
"eslint": "^8.14.0",
"eslint-plugin-array-func": "^3.1.7",
"eslint-plugin-es-x": "^5.2.0",
"eslint-plugin-eslint-comments": "^3.2.0",
Expand All @@ -52,7 +52,7 @@
"eslint-plugin-n": "^15.1.0",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-qunit": "^7.2.0",
"eslint-plugin-regexp": "^1.6.0",
"eslint-plugin-regexp": "^1.7.0",
"eslint-plugin-sonarjs": "~0.13.0",
"eslint-plugin-unicorn": "^42.0.0",
"jsonc-eslint-parser": "^2.1.0",
Expand Down
1 change: 1 addition & 0 deletions tests/compat/tests.js
Expand Up @@ -919,6 +919,7 @@ GLOBAL.tests = {
var re1 = /a/g;
var re2 = /a/g;
re2[Symbol.match] = false;
// eslint-disable-next-line no-constant-binary-expression -- required for testing
return new RegExp(re1) !== re1
&& RegExp(re1) === re1
&& RegExp(re2) !== re2
Expand Down

0 comments on commit f9f03b3

Please sign in to comment.