In Atom 1.18 every time I open the editor my .babelrc file defaults to the
JSON file type, which makes syntax highlighting look way off. And I have to keep changing it back to the
How to fix (temporarily):
Have to reset it every time I close and open the .babelrc file.
Now I realize this is a file that will be rarely touched, but would be helpful to know how to fix this for other file type.
There is a very specific way to set this up in the config.cson
"*": core: customFileTypes: "source.js.jsx": [ "js" "es6" "es" "babel" "babelrc" "jsx" ]
Answered By – Leon Gaban
Answer Checked By – Timothy Miller (AngularFixing Admin)