Skip to content

Commit

Permalink
Upgrade: eslint-utils 1.4.2 (#12131)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Aug 20, 2019
1 parent e82388b commit 8c021b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -50,7 +50,7 @@
"debug": "^4.0.1",
"doctrine": "^3.0.0",
"eslint-scope": "^5.0.0",
"eslint-utils": "^1.4.0",
"eslint-utils": "^1.4.2",
"eslint-visitor-keys": "^1.1.0",
"espree": "^6.1.0",
"esquery": "^1.0.1",
Expand Down
4 changes: 2 additions & 2 deletions tests/lib/rules/require-unicode-regexp.js
Expand Up @@ -30,7 +30,7 @@ ruleTester.run("require-unicode-regexp", rule, {
"new RegExp('', 'gimuy')",
"const flags = 'u'; new RegExp('', flags)",
"const flags = 'g'; new RegExp('', flags + 'u')",
"const flags = 'gimu'; new RegExp('foo', flags.slice(1))",
"const flags = 'gimu'; new RegExp('foo', flags[3])",
"new RegExp('', flags)",
"function f(flags) { return new RegExp('', flags) }",
"function f(RegExp) { return new RegExp('foo') }"
Expand Down Expand Up @@ -73,7 +73,7 @@ ruleTester.run("require-unicode-regexp", rule, {
errors: [{ messageId: "requireUFlag" }]
},
{
code: "const flags = 'gimu'; new RegExp('foo', flags.slice(0, -1))",
code: "const flags = 'gimu'; new RegExp('foo', flags[0])",
errors: [{ messageId: "requireUFlag" }]
},
{
Expand Down

0 comments on commit 8c021b5

Please sign in to comment.