Skip to content

ESlint not working correctly with recent @wordpress/scripts update #76028

@Lovor01

Description

@Lovor01

Description

ESLint plugin no longer works correctly for me, it does not recognize wordpress dependencies (probably related to #74630), but also does not recognize spacing and other wordpress-specific rules and falls back to prettier/prettier rules. I believe this is connected with recent updates of eslint version (8.3.0 -> 8.57.1), see #74316 , I updated @wordpress/scripts from version 31.1.0 to 31.5.0 and it stopped working.

Step-by-step reproduction instructions

Install @wordpress/scripts@31.1.0 and set up config as described in docs for @wordpress/eslint-plugin. See if it works properly. Update @wordpress/scripts@31.5.0 and see if there is difference in linting.

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Tool] WP Scripts/packages/scripts[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions