AtomMaterialUI / iconGenerator

Icon Collection used within the Atom Material Icons plugins (for JetBrains, Chrome and Firefox)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Babel config associations

jdreesen opened this issue · comments

Babel (config) is currently associated with:

  • .babelrc
  • .babelrc.js
  • .languagebabel
  • .babel
  • babel.json
  • babel.config.json

See:


According to https://babeljs.io/docs/en/config-files#supported-file-extensions Babel supports the followig config file names:

  • .babelrc
  • .babelrc.json
  • .babelrc.js
  • .babelrc.cjs
  • .babelrc.mjs
  • babel.config.json
  • babel.config.js
  • babel.config.cjs
  • babel.config.mjs

I would create a PR but I'm not sure where to add it.
Is it https://github.com/mallowigi/iconGenerator/blob/master/icon_associations.json
or https://github.com/mallowigi/iconGenerator/blob/master/icon_associations.xml
or maybe https://github.com/mallowigi/iconGenerator/blob/master/config_original.cson ?

from the docs:

^babel(.[\w-]+)?.json$
^.(babelrc(.js)?|languagebabel|babel)$

so .babelrc, .babelrc.js, babel.config.json are supported

The only missing are .babelrc.json, .babelrc.cjs, .babelrc.mjs, babel.config.js, babel.config.cjs, babel.config.mjs

About the mjs and cjs files, I explicitely removed it for now as I don't know the frequency of people using cjs or mjs extensions, I haven't encountered them insofar. I'll think about it.

from the docs:

^babel(.[\w-]+)?.json$
^.(babelrc(.js)?|languagebabel|babel)$

so .babelrc, .babelrc.js, babel.config.json are supported

The only missing are .babelrc.json, .babelrc.cjs, .babelrc.mjs, babel.config.js, babel.config.cjs, babel.config.mjs

That's correct.

About the mjs and cjs files, I explicitely removed it for now as I don't know the frequency of people using cjs or mjs extensions, I haven't encountered them insofar. I'll think about it.

You may be right.
The docs say:

babel.config.js and .babelrc.js behave like the .mjs equivalents when your package.json file contains the "type": "module" option, otherwise they are exactly the same as the .cjs files.

So probably most people just use the .js files.


It would be great if .babelrc.json and babel.config.js could be added for now.