Comments (3)
I would be fine with that, I think Acorn was the "best" solution available when in started the project in 2020.
Before releasing it last month I was also looking at https://github.com/unjs/magicast / https://github.com/benjamn/recast, but figured I'd leave it for the initial version, since the most basic version of the LSP was already working just fine with Acorn.
But now that we have more requirements we should consider it.
from stimulus-parser.
Maybe we could also depend on the @typescript-eslint/parser
or @typescript-eslint/typescript-estree
package.
https://typescript-eslint.io/packages/parser/
https://typescript-eslint.io/packages/typescript-estree/
from stimulus-parser.
This should be resolved via #49
from stimulus-parser.
Related Issues (20)
- Support for `stimulus-decorators` HOT 2
- Support inferred Value Definition types
- Add `hasExplicitDefaultValue` to `ValueDefinition`
- Add `defaultValueLoc` getter to `ValueDefinition` HOT 1
- Support for `stimulus-use`
- Public class fields without a default value break the parser HOT 1
- Support dasherized controller filenames
- Error parsing private getters HOT 3
- Detect multiple Stimulus controllers in single file
- Support detecting controllers that don't end with the `_controller` suffix in the filename
- Support when controllers are imported with a different name compared to their actual filename
- External Stimulus components false positive HOT 1
- Doesn't find controllers imported via importmap HOT 5
- Function `analyzeStaticPropertiesExpressions` needs to take `object` into account
- Support Symfony's Stimulus Bridge
- Parse `ClassExpression` nodes as `ClassDeclarations`
- Parse kind of value definition
- Add nodes/locations to value definition parts HOT 1
- Add support for parsing TypeScript syntax
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stimulus-parser.