Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade: eslint-utils 1.4.2 #12131

Merged
merged 1 commit into from Aug 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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