-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore: Upgrade @wordpress/scripts to the latest version #87
Conversation
@ntwb - I would appreciate your help here. This fixes those errors:
So there needs to be some issue with how config files are processed when loaded from Related PR in ESLint: eslint/eslint#11554. Update 1: I know what happens, this line causes issues: as this translates into:
when referencing the config inside Update 2: A hack inside ESLint codebase in the line shared above solves the issue: const basePath = filePath && ! filePath.includes( 'node_modules' ) ? path.dirname(filePath) : cwd; I think we will have to open PR against ESLint to see whether it can be fixed upstream. Update 3: A similar issues opened in ESLint eslint/eslint#12032 |
I filed a new issue in ESLint: eslint/eslint#12278. |
Wanna jump directly to v5 of the package? |
Yes, v5 would be the best way to go. This one was blocked by ESLint bug which prevents us from using ESLint config from npm package directly for overrides applied to work with all files which contain tests. We can skip that part though and update ESNext examples to start using new asset file together with |
With b74542f this PR uses the latest version of @wordpress/scripts. I plan also to integrate |
Replaced with #89. |
npm run lint-js
still doesn't work.I'm seeing: