mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.42k stars 411 forks source link

Match js and jsx to apply className #387

Closed phsantiago closed 5 years ago

phsantiago commented 7 years ago

"The distinction between .js and .jsx files was useful before Babel, but it’s not that useful anymore.

There are other syntax extensions (e.g. Flow). What would you call a JS file that uses Flow? .flow.js? What about JSX file that uses Flow? .flow.jsx? What about some other experimental syntax? .flow.stage-1.jsx?

Most editors are configurable so you can tell them to use a JSX-capable syntax scheme for .js files. Since JSX (or Flow) are strict supersets of JS, I don’t see this as an issue." https://github.com/facebookincubator/create-react-app/issues/87#issuecomment-234627904

mattn commented 7 years ago

js is not filetype for javascript.

mattn commented 7 years ago

See https://github.com/mattn/emmet-vim/issues/350

mattn commented 5 years ago

This should be fixed in latest commit.