8000 fix(rome_js_analyze): noRedundantUseStrict check only 'use strict' directive by nissy-dev · Pull Request #4591 · rome/tools · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 31, 2023. It is now read-only.

fix(rome_js_analyze): noRedundantUseStrict check only 'use strict' directive - #4591

Merged
nissy-dev merged 3 commits into
mainfrom
fix-false-positive-noRedundantUseStrict
Jun 18, 2023
Merged

nissy-dev merged 3 commits into
mainfrom
fix-false-positive-noRedundantUseStrict

Conversation

@nissy-dev
@nissy-dev nissy-dev commented Jun 18, 2023 •
Copy link
Copy Markdown
Contributor

Summary

React introduce new directives "use client" and "use server".
noRedundantUseStrict rule raise false positive error about these directives, so I fixed it.

see: playground

Test Plan

I added some snaphot tests.

Changelog

  • The PR requires a changelog line

Documentation

  • The PR requires documentation
  • I will create a new PR to update the documentation

@github-actions github-actions Bot added the A-Linter Area: linter label Jun 18, 2023
@netlify
netlify Bot commented Jun 18, 2023 •
Copy link
Copy Markdown

✅ Deploy Preview for docs-rometools canceled.

Name Link
🔨 Latest commit b88ea57
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/648f1729c7b83400087d3862

@nissy-dev nissy-dev changed the title fix: noRedundantUseStrict check only 'use strict' directive fix(rome_js_analyze): noRedundantUseStrict check only 'use strict' directive Jun 18, 2023
@Conaclos
Conaclos self-requested a review June 18, 2023 11:41
Comment thread CHANGELOG.md Resolved
@nissy-dev
nissy-dev merged commit 201172c into main Jun 18, 2023
@nissy-dev
nissy-dev deleted the fix-false-positive-noRedundantUseStrict branch June 18, 2023 14:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-Linter Area: linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0