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

directives not recognized in .jshintrc file #181

Open
pickledham opened this issue Jun 9, 2016 · 3 comments
Open

directives not recognized in .jshintrc file #181

pickledham opened this issue Jun 9, 2016 · 3 comments

Comments

@pickledham
Copy link

pickledham commented Jun 9, 2016

Software

  • using brackets@1.6 and with .jshintrc file in the root of the project folder.

Problem

  • Linter window shows something weird with a few unrecognized directives. it shows only a single character 'o' for each directive it does not recognize

Steps to reproduce problem:

  • start linting a blank .js file. no text, nothing, noda 
    
  • add the following to the .jshintrc file
    
  • - "esversion": 6,
  • - "funscope": false,
  • - "module": true,
  • - "singlegroups": true,
  • - "varstmt": true

Question:

  • Have these directives been deprecated?
  • Does the linter need to be updated?

Possible Solution:

  •  would be to have the linter simply ignore any directives that it doesn't understand
    
@MiguelCastillo
Copy link
Owner

wow - I have never seen anyone provide me with such great details about an issue! You are awesome.

As far as the issue goes - I would like to reproduce the issue to see what's going on. Can you reproduce the issue if you have an already created JS and a .eslintrc file? If so, it would be awesome to get a hold of that.

@pickledham
Copy link
Author

tried removing all linting config files and trying the one at a time.
Seems to totally ignore .jslintrc and .eslintrc files. Only file the
linter looks for is .jshintrc

just for reference and to clear my sanity here is a snippet of my
brackets.json file
" ------------------ Code linting -------------------------------":
"comment",
"linting.enabled": true,
"linting.collapsed": true,
"mikaeljorhult.bracketsPHPLintTools.php-available": false,
"interactive-linter.delay": 500,
"interactive-linter.webworker": true,
"interactive-linter.javascript": [
"jsx"
],
"interactive-linter.coffeescript": null,

Thank you for being so polite and willing to help. I like to provide as
much detail as possible because the more info you have the easier it is
to solve the problem. BTW, I just love your interactive linter so much I
can't write code without it. Great job!

Daryl
djberry@hiwaay.net

On 6/10/2016 2:57 PM, Miguel Castillo wrote:

wow - I have never seen anyone provide me with such great details
about an issue! You are awesome.

As far as the issue goes - I would like to reproduce the issue to see
what's going on. Can you reproduce the issue if you have an already
created JS and a .eslintrc file? If so, it would be awesome to get a
hold of that.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#181 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AL3J2-dv54vxRh64dT9dfyX2OpBXJQCXks5qKcHHgaJpZM4IyCih.

@davidbarredo
Copy link

I have the same problem adding the "esversion": 6 to the .jshintrc file.

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

3 participants