First, understand the structure of .bilirc by reading bili's documentation or source code to define the JSON schema. Then, follow the contribution guidelines at https://github.com/schemastore/schemastore to submit the schema. The schema should include properties for common bili configuration options.
Submit JSON schema to schemastore · egoist/bili#70 | Good First Issue