Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complaining about arrow functions even with "esversion": "6" #2966

Closed
MtDalPizzol opened this issue Jun 23, 2016 · 7 comments
Closed

Complaining about arrow functions even with "esversion": "6" #2966

MtDalPizzol opened this issue Jun 23, 2016 · 7 comments

Comments

@MtDalPizzol
Copy link

MtDalPizzol commented Jun 23, 2016

I'm using this:

Atom 1.7.3
linter 1.11.11
linter-jshint 2.1.0

My .jshintrc file only contains "esversion": "6" and it is located one level up my project's folder. I'm still getting the following message:

'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6')

Ideas?

@rwaldron
Copy link
Member

.jshint or .jshintrc?

@MtDalPizzol
Copy link
Author

.jshintrc. Sorry for that...

@jugglinmike
Copy link
Member

I believe the problem here is that the value of "esversion" must be a number, not a string. Can you change your .jshintrc file for read as follows, and let us know if that fixes the problem for you?

{
  "esversion": 6
}

@MtDalPizzol
Copy link
Author

Thanks @jugglinmike , that did the trick...

@jugglinmike
Copy link
Member

Glad to hear it!

For the record, I do not consider this a satisfactory state of affairs. JSHint should issue an error for invalid input, but also accept equivalent String values. I'm going to leave this issue "closed" because we already have one to track this problem: gh-2902.

@andela-cofor
Copy link

Hound CI Error 'arrow function syntax (=>)' is only available in ES6 (use 'esversion: 6'). I am using eslintrc

@nicolo-ribaudo
Copy link
Contributor

nicolo-ribaudo commented Mar 8, 2017

Did you mean .jshintrc? And can you reproduce the error on your PC or only on HoundCI?

zoras added a commit to madhusudhan1234/rubynepal.github.io that referenced this issue Sep 14, 2018
madhusudhan1234 pushed a commit to madhusudhan1234/rubynepal.github.io that referenced this issue Oct 1, 2018
zoras pushed a commit to RubyNepal/rubynepal.github.io that referenced this issue Nov 16, 2018
* Meetup Page is created
- [x] Meetup page markup and css added
- [x] meetup.yml is added and adjusted required data
- [x] Font is changed

* Meetups Page is created

* Meetups page design lil bit changed

* All data fill is completed

* React Js is used for meetup page
- [x] meetups page is removed we can switch meetup from current meetup page
- [x] Message is added if there is no any next or previous meetup
- [x] Avatar from twitter username is shown

* Remove js:lint from default rake test as we’re using es6 and react syntax now

* Disable jshit check on hound

* Use .jshitrc to specify es6 version

jshint/jshint#2966 (comment)

* Some issues fixed
- [x] prev and next icon hidden issue is fixed
- [x] size of arrow is increased
- [x] videos, slides and demo link are added
- [x] padding is reduce in seperator

* Keyboard key binding and Route paramater is completed
- [x] All the suggestions from Rohit dai is completed now

* .eslintrc is added

* Eslint file added: `.eslintrc.json`

* Deleted tweet cache file

* Use custom eslintrc for houndci

* Use single quote as per eslint rule

* Add guard check for eslint

* Houndci-bot Style/SymbolArray: Use %i or %I for an array of symbols.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants