AtomLinter / linter-eslint

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

Invalid position given by 'prettier/prettier' #1435

Closed nikj44 closed 2 years ago

nikj44 commented 3 years ago

ESLint returned a point that did not exist in the document being edited. Rule: prettier/prettier Requested start point: 1:8 - 1:64

Debug information:

{
  "atomVersion": "1.57.0",
  "linterEslintVersion": "8.5.5",
  "linterEslintConfig": {
    "scopes": [
      "source.js",
      "source.jsx",
      "source.js.jsx",
      "source.flow",
      "source.babel",
      "source.js-semantic"
    ],
    "lintHtmlFiles": false,
    "autofix": {
      "fixOnSave": false,
      "ignoreFixableRulesWhileTyping": false,
      "rulesToDisableWhileFixing": []
    },
    "global": {
      "useGlobalEslint": false,
      "eslintrcPath": "",
      "globalNodePath": ""
    },
    "disabling": {
      "disableWhenNoEslintConfig": true,
      "rulesToSilenceWhileTyping": []
    },
    "advanced": {
      "disableEslintIgnore": false,
      "disableFSCache": false,
      "showRuleIdInMessage": true,
      "eslintRulesDirs": [],
      "localNodeModules": ""
    }
  },
  "eslintVersion": "7.14.0",
  "hoursSinceRestart": 1.5,
  "platform": "win32",
  "eslintType": "local project",
  "eslintPath": "E:\\reactnative_projects\\dengurmind\\node_modules\\eslint",
  "editorScopes": [
    "source.js",
    "keyword.control"
  ]
}
UziTech commented 3 years ago

Can you give a js file and eslint config that reproduces this?

UziTech commented 2 years ago

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