1
0
mirror of https://github.com/svg/svgo.git synced 2025-04-19 10:22:15 +03:00

5 Commits

Author SHA1 Message Date
Bogdan Chadkin
71e47370bd
Format lib with prettier (#1386)
Note: review with hidden whitespaces
2021-02-28 10:56:16 +03:00
Bogdan Chadkin
a855b40ec5 Fail when specified config is wrong or json is specified 2021-02-22 23:50:42 +03:00
Bogdan Chadkin
a7cc20bb43
Setup recommended eslint preset (#1345)
This is usually enough to prevent silly mistakes.
Formatting will be done by prettier after merging pull requests.
2021-02-19 15:26:07 +03:00
Bogdan Chadkin
330e78b479
Fix reporting of config errors (#1342)
Errors are swallowed while resolving.
2021-02-19 12:11:35 +03:00
Bogdan Chadkin
a6f14018ee
Implement loadConfig utility (#1328)
Ref https://github.com/svg/svgo/issues/1327

Config file now can only be js. `svgo.config.js` is searched by default.
Otherwise any js module specified in `--config` cli flag.

Config loader is exposed in entry point as `loadConfig(configFile, cwd)`.
2021-02-16 19:11:13 +03:00