anandthakker / doiuse

:bomb: Lint CSS for browser support against caniuse database.
MIT License
1.24k stars 51 forks source link

Feature: .doiuserc config file #50

Closed marcobiedermann closed 7 years ago

marcobiedermann commented 8 years ago

It would be great, if you could add a .doiuserc config file to your projects in which all options are set.

LJNielsenDk commented 7 years ago

Using the config file and/or package.json methods of configuring https://github.com/ai/browserslist might be a better idea.

stevewillard commented 7 years ago

Using the browserlist config file has already been added/merged, but a release for it was never made 😢

62

anandthakker commented 7 years ago

☝️ Just published in 2.6.0 -- sorry for the delay!

thany commented 7 years ago

If I leave out the config object, since browsers was the only remaining option for me, I get this:

TypeError: Cannot read property 'browsers' of undefined

I can't help but assume browsers is the only option for a lot of folks. Leaving out the options alltogether seems the conventional thing to do if it would otherwise be a simple { }, but alas, it produces the above error.

ismay commented 7 years ago

A pr allowing users to omit the options object altogether would be welcome. Other than that, this has been resolved with 2.6.0. If not feel free to let us know!

niftylettuce commented 6 years ago

This needs to be re-opened. You should not get an error out of the box if you don't specify a browsers option. Related to https://github.com/anandthakker/doiuse/issues/63#issuecomment-368350669