wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
13.79k stars 1.19k forks source link

Make sure `entity` declaration is not used in the Wasp file #2152

Closed infomiho closed 4 months ago

infomiho commented 4 months ago

Closes #2148

Introduces AST validation:

How it looks like

Screenshot 2024-07-04 at 11 55 53
In the CLI

LS in VS Code:

https://github.com/wasp-lang/wasp/assets/2223680/39143363-43de-423d-bee5-4496afb4ce27

infomiho commented 4 months ago

@sodic I've added an explanation on why we don't just throw a ParseError: https://github.com/wasp-lang/wasp/pull/2152/files#diff-cc433ce1c818fd8c72ac77775fb42d6a276b6a0225a3e44d162e6a286ae5cd07R143