victorporof / Sublime-JSHint

JSHint Gutter for Sublime Text 2 and 3 via node.js
https://github.com/victorporof/Sublime-JSHint
682 stars 71 forks source link

Getting error "0:0 Bad option: 'private'." #66

Closed EloB closed 10 years ago

EloB commented 10 years ago

I'm getting a weird error on all files. Even the most simple.

/* jshint node:true */

module.export = function(grunt) {
    'use strict';

    grunt.initConfig({

    });
};

Also with this

// jshint node:true

module.export = function(grunt) {
    'use strict';

    grunt.initConfig({

    });
};
EloB commented 10 years ago

I've got the lastest Node and Sublime text 3. Also reinstalled both jshint and this plugin.

victorporof commented 10 years ago

How does your jshintrc file look like?

EloB commented 10 years ago
{
  // Details: https://github.com/victorporof/Sublime-JSHint#using-your-own-jshintrc-options
  // Example: https://github.com/jshint/jshint/blob/master/examples/.jshintrc
  // Documentation: http://www.jshint.com/docs/
  "browser": true,
  "esnext": true,
  "globals": {},
  "globalstrict": true,
  "quotmark": true,
  "smarttabs": true,
  "trailing": true,
  "undef": true,
  "unused": true
}
EloB commented 10 years ago

I found out what triggers the error.

https://gist.github.com/EloB/9156278

EloB commented 10 years ago

Why does it think that my package.json file is the .jshintrc file?

victorporof commented 10 years ago

Please test this again with the latest update and let me know if it's still an issue. Thank you!