8000 feat(rome_js_analyze): noNonoctalDecimalEscape by unvalley · Pull Request #4618 · 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.

feat(rome_js_analyze): noNonoctalDecimalEscape - #4618

Merged
unvalley merged 19 commits into
rome:mainfrom
unvalley:no-nonoctal-decimal-escape
Jun 30, 2023
Merged

unvalley merged 19 commits into
rome:mainfrom
unvalley:no-nonoctal-decimal-escape

Conversation

@unvalley
@unvalley unvalley commented Jun 25, 2023 •
Copy link
Copy Markdown
Contributor

Summary

Closes #3989

Implement noNonoctalDecimalEscape

Test Plan

  • cargo test -p rome_js_analyze -- no_nonoctal_decimal_escape
    • used ESLint test cases
  • just r

@netlify
netlify Bot commented Jun 25, 2023 •
Copy link
Copy Markdown

✅ Deploy Preview for docs-rometools canceled.

Built without sensitive environment variables

Name Link
🔨 Latest commit 5d4de90
🔍 Latest deploy log https://app.netlify.com/sites/docs-rometools/deploys/649ea54b5babac0008d20bb0

@github-actions github-actions Bot added A-Diagnostic Area: errors and diagnostics A-Linter Area: linter A-Project Area: project configuration and loading labels Jun 25, 2023
@unvalley
unvalley marked this pull request as ready for review June 26, 2023 00:59
@unvalley
unvalley requested a review from ematipico June 26, 2023 02:23
@ematipico
ematipico requested a review from Conaclos June 26, 2023 07:08
@ematipico ematipico left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Amazing work @unvalley ! I left few suggestions to polish the code :)

Comment thread crates/rome_js_analyze/Cargo.toml Outdated
serde = { version = "1.0.136", features = ["derive"] }
serde_json = { version = "1.0.74" }
smallvec = { workspace = true }
regex = "1.8.4"
@ematipico ematipico Jun 26, 2023 •
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

regex is a big crate (size and compile time), and we have tried to avoid it for a long time 😅

Now, I am not saying that we shouldn't. How difficult is implementing this rule without regex? I think it's difficult; then I believe it's time to include it.

Would you mind adding regex to the root Cargo.toml? We will need this crate in other places.

@unvalley unvalley Jun 26, 2023 •
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

regex is a big crate (size and compile time), and we have tried to avoid it for a long time 😅

I got it and I agree with that.
Firstly, let me try to replace it without regex.
If that seems to take quite a while, I'll change the install location of the crate.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread CHANGELOG.md Resolved
@github-actions github-actions Bot added the A-Core Area: core label Jun 28, 2023
@unvalley
Copy link
Copy Markdown
Contributor Author

@ematipico @Conaclos Thank you for the review. I addressed reviewed points. Please take a look.

@unvalley
unvalley requested review from Conaclos and ematipico June 29, 2023 01:45
@ematipico ematipico left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me. Left few suggestions, feel free to merge it whenever you want :)

Comment thread Cargo.lock
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I belive these changes should be discarded. Not sure why they are here.

…al_escape.rs

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
@Conaclos Conaclos left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good :)

@unvalley
unvalley merged commit e4747ee into rome:main Jun 30, 2023
@unvalley
unvalley deleted the no-nonoctal-decimal-escape branch June 30, 2023 13:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-Core Area: core A-Diagnostic Area: errors and diagnostics A-Linter Area: linter A-Project Area: project configuration and loading

Projects

None yet

Development

Successfully merging this pull request may close these issues.

noNonoctalDecimalEscape, no-nonoctal-decimal-escape

3 participants

0