Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Invalid position given by 'semi' #1315

Closed
brawner opened this issue Jan 8, 2020 · 2 comments
Closed

Invalid position given by 'semi' #1315

brawner opened this issue Jan 8, 2020 · 2 comments

Comments

@brawner
Copy link

brawner commented Jan 8, 2020

Encountered this issue when deriving from airbnb-base. Code was just missing a semicolon as shown below.

ESLint returned a point that did not exist in the document being edited.
Rule: semi
Requested start point: 6:24 - 6:26

/* eslint-disable no-alert, no-console, no-var, linebreak-style, prefer-arrow-callback,
   prefer-template, no-restricted-syntax, quote-props, prefer-destructuring */

var fnName = function () {
  var prefix = ''
  console.log(prefix);
};

.eslintrc.js

module.exports = {
  env: {
    browser: true,
    es6: true,
    node: true,
  },
  extends: [
    'airbnb-base',
  ],
  globals: {
    Atomics: 'readonly',
    SharedArrayBuffer: 'readonly',
  },
  parserOptions: {
    ecmaVersion: 2018,
  },
  rules: {
  },
};

Debug information:

{
  "atomVersion": "1.42.0",
  "linterEslintVersion": "8.5.5",
  "linterEslintConfig": {
    "autofix": {
      "fixOnSave": false,
      "ignoreFixableRulesWhileTyping": false,
      "rulesToDisableWhileFixing": []
    },
    "global": {
      "eslintrcPath": "\"C:/Users/Stephen Brawmner/.atom/packages/linter-eslint/airbnb.eslintrc\"",
      "globalNodePath": "\"C:/Users/Stephen Brawner/AppData/Roaming/npm\"",
      "useGlobalEslint": false
    },
    "scopes": [
      "source.js",
      "source.jsx",
      "source.js.jsx",
      "source.flow",
      "source.babel",
      "source.js-semantic"
    ],
    "lintHtmlFiles": false,
    "disabling": {
      "disableWhenNoEslintConfig": true,
      "rulesToSilenceWhileTyping": []
    },
    "advanced": {
      "disableEslintIgnore": false,
      "disableFSCache": false,
      "showRuleIdInMessage": true,
      "eslintRulesDirs": [],
      "localNodeModules": ""
    }
  },
  "eslintVersion": "6.8.0",
  "hoursSinceRestart": 0.8,
  "platform": "win32",
  "eslintType": "local project",
  "eslintPath": "C:\\Users\\Stephen Brawner\\workspace\\ci\\windows_docker_resources\\node_modules\\eslint",
  "editorScopes": [
    "source.js",
    "comment.block"
  ]
}
@npdev453
Copy link

dup
#1312 (comment)

@Arcanemagus
Copy link
Member

Duplicate of #1312

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants