Open zhuravlikjb opened 4 years ago
Just as I try to stay away from Expo in React world, they are finding new ways to inject themselves into my workflow.
Webstorm somehow thinks every app.json in a React project should conform to "json.schemastore.org/expo-37.0.0.json"
As a workaround, while this problem ages like fine wine, I've taken to specifying the $schema
directly in my app.json
files using the raw schema from the PR for IDEA-244881 thusly:
{
"$schema": "https://raw.githubusercontent.com/crcastle/schemastore/06174ef73fcaa1f9734e4aed8b7d40e6df586f76/src/schemas/json/app.json",
...
}
@mogsdad Good find! In the preferences menu, you can take that URL and stick it inside the JSON Schema Mappings
, and that solves the problem in an elegant way.
@mogsdad Good find! In the preferences menu, you can take that URL and stick it inside the
JSON Schema Mappings
, and that solves the problem in an elegant way.
Just remember that this way only solves the problem for one developer!
It works for all developers using a JetBrains IDE if you commit .idea/jsonSchemas.xml
.
https://www.schemastore.org/api/json/catalog.json
But: https://devcenter.heroku.com/articles/app-json-schema ....
See also: https://youtrack.jetbrains.com/issue/IDEA-244881