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

feat(rome_js_analyzer): add noWith rule #4025

Merged
merged 9 commits into from
Dec 12, 2022
Merged

feat(rome_js_analyzer): add noWith rule #4025

merged 9 commits into from
Dec 12, 2022

Conversation

ktfth
Copy link
Contributor

@ktfth ktfth commented Dec 10, 2022

Summary

Closes #3993

This PR implements the following:

  • no with statements in non-strict mode

Added an rule with instructions to follow based on eslint definition to not use with statements

Test Plan

I created an invalid case with the code to be matched by the analyzer and has no need for a valid case

as part of the linter rules checker an analyzer was added
checking for basic bahavior with a with statement as mentioned on
the eslint reference
@netlify
Copy link

netlify bot commented Dec 10, 2022

Deploy Preview for docs-rometools ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit c0e7957
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/6397382ea393b300087b5f5d
😎 Deploy Preview https://deploy-preview-4025--docs-rometools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ktfth ktfth mentioned this pull request Dec 10, 2022
content formatted for no with statements
one case for test on no with statements
renamed all entities involved on the no with rule
added test case
improve message diagnosis
checked all the requirements before submit changes
removed codegen for aria because of a failure on check
added resource to support no with statements rule
@ktfth ktfth marked this pull request as ready for review December 11, 2022 15:21
@ktfth ktfth requested review from leops, ematipico, xunilrj and a team as code owners December 11, 2022 15:21
@ematipico ematipico changed the title feat(linter): added no with statement feat(rome_js_analyzer): add noWith rule Dec 11, 2022
Copy link
Contributor

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please restore our PR template? We try to keep it slim, so there's no need to delete it.

I left some feedback. The rule wasn't actually triggered, I left some suggestion to fix it.

@ktfth ktfth requested review from ematipico and removed request for xunilrj and leops December 12, 2022 14:47
@ematipico ematipico merged commit 7dfcd34 into rome:main Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

noWith, no-with
2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载