Skip to content

[Linter] Error running ESLint Error: require(...).getLocationFromRangeIndex is not a function(…) #11

@nwaywood

Description

@nwaywood

ESLint is failing to run for me with eslint-plugin-prettier rules activated (i.e. with "rules": { "prettier/prettier": "error" } set).

This is the stacktrace from atom:

image

As it says in the stacktrace, the error comes from this file on line 30 where it calls require('eslint/lib/ast-utils').getLocationFromRangeIndex(...).

Upon inspection of eslint/lib/ast-utils I see that the function no longer exists. The function was removed in this commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions