Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Espree #85

Closed
wants to merge 13 commits into from
Closed

Espree #85

wants to merge 13 commits into from

Conversation

brettz9
Copy link
Contributor

@brettz9 brettz9 commented Mar 1, 2020

Builds on #81, #82, #83, #84.

@brettz9 brettz9 force-pushed the espree branch 2 times, most recently from 884e7cd to 7f6743c Compare March 1, 2020 09:25
This was referenced Mar 1, 2020
Merged
@brettz9 brettz9 force-pushed the espree branch 2 times, most recently from a9d2d73 to 8a374b9 Compare March 4, 2020 00:06
- Fix: Multiple leading decimals were not being handled correctly (produced inner
     array followed by "." such that `21.` (e.g., at beginning of "21.35") would be
     procssed instead as `2,1.`)
- Enhancement: Throw for unknown operator
- Refactoring: Avoid unnecessary code to unescape `\\a` (`\a` has no special meaning)
- Maintenance: Add pegjs as 2 sp. in `.editorconfig`
- Testing: Expand to effective 100% coverage
- Testing: Switch from jstestr to mocha
- Testing: Get coverage for bad operator, class name, and selector type
@michaelficarra
Copy link
Member

I don't know if we should switch to espree without reason. Is there something espree supports that esprima doesn't that we want?

@brettz9
Copy link
Contributor Author

brettz9 commented Mar 6, 2020

The reason is just that it appears to be more actively maintained (see https://github.com/eslint/espree/#why-another-parser ).

There are a list of a few differences at https://github.com/eslint/espree/#known-incompatibilities .

My thinking was not about a perceived defect but merely that while espree aimed at compatibility, it might be better to ensure the project is working against the expectations of a more actively maintained project, and one which is used by the large eslint community. But this is not a big issue for me if you don't think it is warranted.

@michaelficarra
Copy link
Member

Let's hold off on this one for now, at least until we have an actual observable benefit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants