formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

Ignore `babel.config.json` files #631

Closed hjylewis closed 4 years ago

hjylewis commented 4 years ago

Which package? @formatjs/cli

Describe the bug Not ignoring babel project wide config files (i.e. babel.config.json). More info here https://babeljs.io/docs/en/config-files.

To Reproduce Steps to reproduce the behavior:

  1. Create a project wide config file i.e. babel.config.json
  2. Run cli
  3. Observe how the babel.config.json file has not been properly ignored until the .babelrc files which ARE ignored.

Expected behavior The cli should ignore the babel.config.json file like it ignores the .babelrc files.

Additional context Passing false to the configFile option should fix this https://babeljs.io/docs/en/options#configfile. Similar to how the cli passes false to the babelrc option.

hjylewis commented 4 years ago

Thanks! @longlho