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

feat(rome_js_analyze): noVar #3765

Merged
merged 1 commit into from
Nov 22, 2022
Merged

feat(rome_js_analyze): noVar #3765

merged 1 commit into from
Nov 22, 2022

Conversation

Conaclos
Copy link
Contributor

Summary

Implement eslint's no-var.

Test Plan

Test included.

@Conaclos Conaclos requested a review from a team November 16, 2022 15:31
@netlify
Copy link

netlify bot commented Nov 16, 2022

Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 0126c14
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/637ccd27b31ccd00080cdc6f

Copy link
Contributor

@MichaReiser MichaReiser left a comment

Choose a reason for hiding this comment

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

Thanks for this contribution.

crates/rome_js_analyze/tests/specs/nursery/noVar.js Outdated Show resolved Hide resolved
crates/rome_js_analyze/src/analyzers/nursery/no_var.rs Outdated Show resolved Hide resolved
@Conaclos Conaclos changed the title feat(rome_js_analyze): noVar feat(rome_js_analyze): noVar Nov 19, 2022
@Conaclos Conaclos requested review from MichaReiser and jeysal and removed request for xunilrj, ematipico, leops, MichaReiser and jeysal November 19, 2022 11:18
Copy link
Contributor

@jeysal jeysal left a comment

Choose a reason for hiding this comment

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

Nice and clean

@ematipico ematipico added the A-Linter Area: linter label Nov 21, 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.

Would you mind adding some test cases that contain comments around the tokens that are replaced?

@Conaclos Conaclos requested review from ematipico and leops and removed request for ematipico and leops November 21, 2022 15:57
@Conaclos
Copy link
Contributor Author

I rebased the branch. It is ready for merge :)

@ematipico
Copy link
Contributor

I rebased the branch. It is ready for merge :)

CI still failing... probably need to run cargo codegen-configuration

@Conaclos
Copy link
Contributor Author

Conaclos commented Nov 22, 2022

@ematipico

CI still failing... probably need to run cargo codegen-configuration

Fixed.

@ematipico ematipico merged commit dc423cc into rome:main Nov 22, 2022
jeysal added a commit to jeysal/rometools that referenced this pull request Nov 24, 2022
* upstream/main: (73 commits)
  fix(semantic_analyzers): style/noShoutyConstants does not recognize multiple uses of a constant. (rome#3789)
  feat(rome_js_analyze): useDefaultSwitchClauseLast (rome#3791)
  chore: run rustfmt and typo fix (rome#3840)
  feat(rome_js_analyze): use exhaustive deps support properties (rome#3581)
  website(docs): Fix text formatting (rome#3828)
  feat(rome_js_analyze): `noVoidTypeReturn` (rome#3806)
  feat(rome_cli): expose the `--verbose` flag to the CLI (rome#3812)
  fix(rome_diagnostics): allow diagnostic locations to be created without a resource (rome#3834)
  feat(rome_js_analyze): add noExtraNonNullAssertion rule (rome#3797)
  fix(rome_lsp): lsp friendly catch unwind (rome#3740)
  feat(rome_js_semantic): model improvements (rome#3825)
  feat(rome_json_parser): JSON Lexer (rome#3809)
  feat(rome_js_analyze): implement `noDistractingElements` (rome#3820)
  fix(rome_js_formatter): shothanded named import line break with default import (rome#3826)
  feat(rome_js_analyze): `noConstructorReturn` (rome#3805)
  feat(website): change enabledNurseryRules to All/Recommended select (rome#3810)
  feat(rome_js_analyze): noSetterReturn
  feat(rome_js_analyze): noConstructorReturn
  feat(rome_analyze): suppress rule via code actions (rome#3572)
  feat(rome_js_analyze): `noVar` (rome#3765)
  ...
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.

5 participants