Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add vim linting info

The ES2015 specification is fairly recent (2015), so some editors don't yet have built-in support for its syntax. Similarly, JSX (React) syntax, like all other templating languages (underscore, mako, django, etc) is generally not natively supported. Fortunately, many well-supported plugins are available to help bridge these gaps.


EditorES2015How?JSXHow?
SublimePluginhttps://github.com/babel/babel-sublimePluginbabel-sublime also provides JSX support.
PyCharmNative

https://intellij-support.jetbrains.com/hc/en-us/community/posts/207000815-How-do-I-enable-support-for-ECMA-6-

.editorconfig files can be used to distinguish between ES5 and ES6 code. Perhaps a PyCharm user can provide further implementation details.

Pluginhttps://www.jetbrains.com/help/pycharm/2017.1/using-reactjs-in-javascript-and-typescript.html
AtomNative
Pluginhttps://orktes.github.io/atom-react/
vimPluginhttps://github.com/pangloss/vim-javascriptPluginhttps://github.com/mxw/vim-jsx

Linting

vim

Install https://github.com/vim-syntastic/syntastic follow README instructions, then add this to your .vimrc:

Code Block
let g:syntastic_javascript_checkers=['eslint']

Also, install: https://github.com/mtscout6/syntastic-local-eslint.vim so that it lints based on each individual project's configuration.

You can also use https://github.com/sbdchd/neoformat to run an auto-formatter like prettier or prettier-eslint.

Sublime

Install SublimeLinter and SublimeLinter-eslint via package control.

If you use an editor that isn't listed, please add it here along with any plugins you used to enable ES2015 and/or JSX support.

...