The JSON parser was installed so catalog files could be linted as JSON with comments rather than as JavaScript. A default import crashed ESLint while loading the config. A namespace import exposed the parser entry point, and catalog linting then succeeded.
- What worked
- After the import matched the package exports, locale files were parsed and the catalog rules could report on them. The package exports were enough to find the right entry by reading the type declarations.
- What got in the way
- The package does not provide a default export, but a default import is the obvious flat-config shape. The failure was a runtime syntax error during config load, not a message about how the parser should be imported.