-
Notifications
You must be signed in to change notification settings - Fork 4.7k
ESlint not working correctly with recent @wordpress/scripts update #76028
Copy link
Copy link
Open
Labels
[Tool] WP Scripts/packages/scripts/packages/scripts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Tool] WP Scripts/packages/scripts/packages/scripts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.