iancmyers / atom-eslint

Lint your JavaScript files in Atom with ESLint
MIT License
8 stars 1 forks source link

Uncaught TypeError: Cannot read property 'globals' of undefined #13

Open pgoldrbx opened 9 years ago

pgoldrbx commented 9 years ago
  1. Load any .js file
  2. Error appears when lint occurs

Atom Version: 0.165.0 System: Mac OS X 10.9.5 Thrown From: eslint package, v0.15.0

Stack Trace

Uncaught TypeError: Cannot read property 'globals' of undefined

At /Users/<username>/.atom/packages/eslint/node_modules/eslint/lib/eslint.js:122

TypeError: Cannot read property 'globals' of undefined
  at /Users/<username>/.atom/packages/eslint/node_modules/eslint/lib/eslint.js:122:49
  at Array.forEach (native)
  at addDeclaredGlobals (/Users/<username>/.atom/packages/eslint/node_modules/eslint/lib/eslint.js:121:33)
  at EventEmitter.module.exports.api.verify (/Users/<username>/.atom/packages/eslint/node_modules/eslint/lib/eslint.js:345:13)
  at ESLintGutterView.module.exports.ESLintGutterView.lint (/Users/<username>/.atom/packages/eslint/lib/eslint-gutter-view.coffee:40:24)
  at Immediate._onImmediate (/Users/<username>/.atom/packages/eslint/lib/eslint-gutter-view.coffee:1:1)
  at processImmediate [as _immediateCallback] (timers.js:374:17)

Commands

Config

{
  "core": {
    "audioBeep": false,
    "projectHome": "/Users/<username>/dev",
    "disabledPackages": [
      "linter-jshint",
      "atom-lint",
      "linter-scss-lint",
      "atom-jshint"
    ]
  }
}

Installed Packages

# User
compare-files, v0.2.6
eslint, v0.15.0
file-icons, v1.4.2
file-types, v0.3.0
git-log, v0.2.0
indentation-indicator, v0.3.0
linter, v0.9.0
linter-eslint, v0.2.4
linter-jsonlint, v0.1.2
linter-jsxhint, v0.0.9
pretty-json, v0.3.1
react, v0.7.0
terminal-panel, v1.7.0

# Dev
No dev packages

/cc @atom/core