execjosh / atom-file-types

Specify additional file types for languages.
https://atom.io/packages/file-types
MIT License
52 stars 15 forks source link

What would be the rule for a .babelrc + json file ? #55

Closed ChrisRast closed 7 years ago

ChrisRast commented 7 years ago

Hi, I was just wondering how I could apply JSON file type to all ".{something}rc" files. (Except from manually chosing it each time.)

For example:

Are they recognized as babelrc type, or without type ? Thank you for your help.

execjosh commented 7 years ago

At present, you could use a RegExp Matcher. Does that work for your needs?

ChrisRast commented 7 years ago

Hi, I finally answer! Yes, it works. Here is the piece of cson I wrote:

  "file-types":
    ".(.*)rc": "source.json"

Thank you for this package. Have a good day!