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

Results of weekly scheduled smoke test #2010

Closed
github-actions bot opened this issue Dec 11, 2022 · 0 comments · Fixed by #2011
Closed

Results of weekly scheduled smoke test #2010

github-actions bot opened this issue Dec 11, 2022 · 0 comments · Fixed by #2011
Assignees

Comments

@github-actions
Copy link

Detected 1 ESLint reports and/or crashes.
Scanned 3570 repositories.

Rules:

  • unicorn/prefer-string-replace-all
Click to expand

Rule: unicorn/prefer-string-replace-all

  • Message: Expected atom at position 35 定义 SVG 图标)+([^]*?)(( ^ Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/JeromeLin/zarm-web/site/components/Markdown/index.jsx:73 Rule: "unicorn/prefer-string-replace-all"
  • Path: JeromeLin/zarm-web/site/components/Markdown/index.jsx
  • Link
  71 |     components.clear();
  72 |     html = marked(
> 73 |       content.replace(
  74 |         /##\s+(?!自定义 Iconfont 图标|自定义 SVG 图标)+([^]*?)((?=##))/g,
  75 |         (match, p1) => {
  76 |           const id = parseInt(Math.random() * 1e9, 10).toString(36);
SyntaxError: Expected atom at position 35
    定义 SVG 图标)+([^]*?)((
              ^
Occurred while linting /github/workspace/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/JeromeLin/zarm-web/site/components/Markdown/index.jsx:73
Rule: "unicorn/prefer-string-replace-all"
    at bail (/github/workspace/node_modules/regjsparser/parser.js:1571:13)
    at parseTerm (/github/workspace/node_modules/regjsparser/parser.js:584:11)
    at parseAlternative (/github/workspace/node_modules/regjsparser/parser.js:548:21)
    at parseDisjunction (/github/workspace/node_modules/regjsparser/parser.js:528:16)
    at parse (/github/workspace/node_modules/regjsparser/parser.js:1597:18)
    at getPatternReplacement (/github/workspace/rules/prefer-string-replace-all.js:30:15)
    at [type="CallExpression"][optional!=true][arguments.length=2][arguments.0.type!="SpreadElement"][arguments.1.type!="SpreadElement"][callee.type="MemberExpression"][callee.computed!=true][callee.property.type="Identifier"][callee.optional!=true]:matches([callee.property.name="replace"], [callee.property.name="replaceAll"]) (/github/workspace/rules/prefer-string-replace-all.js:88:30)
    at /github/workspace/rules/utils/rule.js:39:18
    at ruleErrorHandler (/github/workspace/node_modules/eslint/lib/linter/linter.js:1115:28)
    at /github/workspace/node_modules/eslint/lib/linter/safe-emitter.js:45:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant