Skip to content

ESLint lintCommand support for running npm scripts #574

@parker-badgeinc

Description

@parker-badgeinc

Is your feature request related to a problem? Please describe.

It seems like we should be able to run any arbitrary shell command within the lintCommand.

Describe the solution you'd like

I recently converted all my JS modules to live within a PNPM workspace, and I now have a single flat eslint config at the root level of the workspace. This plugin runs on my frontend code, which lives in workspace/apps/frontend. It seems like I should be able to set lintCommand: 'pnpm -w lint' to run the workspace's lint npm script.

Describe alternatives you've considered

I've tried setting a relative path for root: '../..'. I've tried setting lintCommand: 'eslint -c ../../eslint.config.js'.

Additional context

No response

Validations

  • Read the docs.
  • Read the Contributing Guidelines.
  • Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions