Skip to content

Error when lint staging files with $ in its name #962

Closed as not planned
Closed as not planned
@thefrana

Description

Description

When I try eslint path/to/file/$something.foo it tries to resolve $something as an variable (I'm on Linux) and it becomes only path/to/file/.foo since variable does not exist. Is there any way how to resolve this issue? Specifically I'm using ESLint with lint-staged. I cannot properly escape the filename. Right now I am exporting variable with export something='$something', but that is far from ideal.

Do you have some workaround?

Steps to reproduce

Have some file with $ in its name and run lint-staged on it.

Environment

  • OS: Manjaro Gnome
  • Node.js: 14.16.0
  • lint-staged: 10.5.4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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