AtomLinter / linter-eslint

ESLint plugin for Atom Linter
https://atom.io/packages/linter-eslint
584 stars 141 forks source link

Invalid position given by 'func-call-spacing' #1449

Closed JDong3 closed 2 years ago

JDong3 commented 3 years ago

ESLint returned a point that did not exist in the document being edited. Rule: func-call-spacing Requested start point: 2:53 - 3:0

function a() {
    return function () {};
}

a()
();

Debug information:

{
  "atomVersion": "1.58.0",
  "linterEslintVersion": "8.6.6",
  "linterEslintConfig": {
    "autofix": {
      "fixOnSave": true,
      "ignoreFixableRulesWhileTyping": true,
      "rulesToDisableWhileFixing": []
    },
    "scopes": [
      "source.js",
      "source.jsx",
      "source.js.jsx",
      "source.flow",
      "source.babel",
      "source.js-semantic"
    ],
    "lintHtmlFiles": false,
    "global": {
      "useGlobalEslint": false,
      "eslintrcPath": "",
      "globalNodePath": ""
    },
    "disabling": {
      "disableWhenNoEslintConfig": true,
      "rulesToSilenceWhileTyping": []
    },
    "advanced": {
      "disableEslintIgnore": false,
      "disableFSCache": false,
      "showRuleIdInMessage": true,
      "eslintRulesDirs": [],
      "localNodeModules": ""
    }
  },
  "eslintVersion": "7.32.0",
  "hoursSinceRestart": 22,
  "platform": "win32",
  "eslintType": "local project",
  "eslintPath": "C:\\Users\\HP_\\project\\ctrade-v2\\node_modules\\eslint",
  "editorScopes": [
    "source.js",
    "punctuation.definition.parameters.begin.bracket.round"
  ]
}
JDong3 commented 3 years ago

Umm, the error message on the linter asked me to submit an issue, so I did. The code example does actually run if you're wondering.

UziTech commented 2 years ago

For eslint v8+ you should use linter-eslint-node.