Today I start working as a developer on a ReactJS application for my first time.
However, I'm having trouble even getting off the ground as I can't get SublimeText3 to properly recognize all the es6 syntax and JSX in this application's code.
Some relevant parameters of what I'm trying to do:
- The javascript file extensions are all .jsx so keep that in mind
- I'm trying to use SublimeLinter-jsxhint since SublimeLinter is my favorite linter out there.
What I've tried so far....
- Installed SublimeLinter-jsxhint
- Followed the SublimeLinter-jsxhint instructions to install jsxhint globally
npm install -g jsxhint - Installed 'Babel' Package, also called babel-sublime
- Restarted my computer and Sublime
According to SublimeLinter-jsxhint docs that is all the steps I'm supposed to be required for the linter to work.... however errors are thrown all over my code with ES6 only syntax.
AFTER MORE RESEARCH
The step it looks like I might be messing up on is this:
Linter configuration
In order for
jsxhintto be executed by SublimeLinter, you must ensure that its path is available to SublimeLinter. Before going any further, please read and follow the steps in “Finding a linter executable” through “Validating your PATH” in the documentation.Once
jsxhintis installed and configured, you can proceed to install the SublimeLinter-jsxhint plugin if it is not yet installed.
So perhaps jsxhint cannot be executed by SublimeLinter because its path is unavailable to SublimeLinter.
How should I do to fix this?
Thanks for the help.