-
Notifications
You must be signed in to change notification settings - Fork 36
How do I change to ES6 so far as this is concerned? #237
Comments
You need to properly configure your If you have |
where is this file!? Looking through my computer, there are over 40 files named .jshintrc. |
what words do I put in what file? If I had it properly configured, I wouldn't be here asking questions. |
@excenter You should start by reading the Configuration section of the In general you place a Neither of the Hopefully that helps lead you in the right direction, but it isn't the goal of this package to be a tutorial on |
Thank you! @Arcanemagus |
@excenter when you say root developer folder, do you mean your individual project root every time? I'm still getting the W104 error in atom after that. |
In a folder parent to the working directory (the starred ones) |
Not intuitive at all, but it worked. At least now I can stop wrapping every javascript file in that hideous function form of use strict. |
just put /*jshint esversion: 6 */ at the top of your js file |
@broros Your solution works great, don't know why this is downvoted, I upvoted it. |
This worked for me, without adding "/*jshint esversion: 6 */ " on top of each JS file.
|
@1greenapplee which file did you write this in^ |
.jshintrc |
I've added esversion and global esversion to the .jshintrc and I'm still getting linted for using const. Any ideas? I really don't want to create a new config file for every project I want to lint properly... |
I've been using this for a while, but where I'm at we use ES6, and have a gulp task to write an ES5 version until there's enough browser support.
I have 2 parallel requests:
I've read #202 and it doesn't help, it just shrugs off the setting to somewhere else and doesn't explain where it goes to.
The text was updated successfully, but these errors were encountered: