config file json js ts support
See original GitHub issueWould you consider to support
browserslist.config.json
and even
browserslist.config.js
browserslist.config.ts
as config files?
I am currently gathering some information and opinions about config files and conventions and wrote a short article about the the inconsistency that is going on at the moment and a proposal as a possible solution. What are your thoughts on this?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Documentation - What is a tsconfig.json - TypeScript
The tsconfig.json file specifies the root files and the compiler options required to compile the project. JavaScript projects can use a jsconfig.json file...
Read more >jsconfig.json Reference - Visual Studio Code
The jsconfig.json file specifies the root files and the options for the features provided by the JavaScript language service.
Read more >Is it possible to include a json file when using TypeScript with ...
One workaround is to make the json file a normal js file, require/import it normally, and add "allowJs" : true to "compilerOptions" in...
Read more >Configuration options in tsconfig.js file | TypeScript Tutorial
00:00 Overview of tsconfig. json file 01:55 ' help ' CLI option 03:00 ... with 'strict' compiler option enabled 07:04 Debug TS code...
Read more >How to Set Up Environment Variables using JSON files with ...
In today's JavaScript world, it's possible to read JSON Modules as follows: import config from '../../config.json' ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I see. I am very glad to hear that it would be at least a considerable. In my opinion the support for the
JSON
format on it’s own would already be a huge deal. As described in my article I am not a big fan of usingpackage.json
for configuration data, allowing a self containedbrowserslist.config.json
would make a big difference and has some real use cases:package.json
file and useJSON
as a standard config format (as in tsconfig.json)Hey folks, any updates on that? TBH this is really a pain in the ass in case of monorepo, when you want to share a bunch of configs for different tools, but you have to implement a
separate
package specifically forBL
shareable config. Looks like a some hack.Totally agree on that, so seems like for other languages default
browserslistrc
fits perfectly, but for a such heavily relied package asBrowserslist
in front-end community it would be extremely helpful to support some implicit common practice, like giving the ability to set up configuration injs
file, etc.