Skip to content
This repository has been 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
merged 3 commits into from
Jun 18, 2023

Conversation

nissy-dev
Copy link
Contributor

@nissy-dev nissy-dev commented Jun 18, 2023

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
Copy link

netlify bot commented Jun 18, 2023

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
CHANGELOG.md Show resolved Hide 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