Support standard cosmiconfig file names
See original GitHub issueAt the moment size-limit
does not support standard cosmiconfig file names:
https://github.com/ai/size-limit/blob/0.22.0/cli.js#L188
.sizelimitrc.json
or .size-limitrc.json
, or even .size-limit.json
would be nicer than .size-limit
, because editors could tell the file is JSON for syntax highlighting and Prettier formatting. Compare a .size-limit
file opened next to a .lintstagedrc.json
file in VS Code:
I’ve recently changed my mind about including all config in package.json
(as it bloats the published file). Of the ~6 config files I just created in a project for various tools size-limit
was the only one I had to look up the documentation to work out the right filename.
Supporting standard cosmiconfig file names doesn’t have to be a breaking change; .size-limit
could remain an option.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Released in 1.0
Fixed 684eb6a